2 ms·
This looks really cool. I kind of liked the idea of Nim from the get-go (I'm a Python guy first and foremost), and liked the idea of a "fast compiled Python", b
by rich_sasha 5y ago
This looks really cool. I kind of liked the idea of Nim from the get-go (I'm a Python guy first and foremost), and liked the idea of a "fast compiled Python", but never enough to make the leap.
Maybe I can write my loops in this and dip my toes this way? Good stuff, I'll be keen to see how it evolves.
- PMunch 5y agoFor the specific case of Python executing Nim code you might be interested in [nimporter](https://github.com/Pebaz/nimporter https://github.com/Pebaz/nimporter) instead. Genny would definitely work for you as well, but it seems to be more geared towards creating libraries in Nim that can be imported by multiple languages.
- rich_sasha 5y agoAh this looks beyond amazing, thanks! Python always struggled with the “2 language problem” - you want something flexible and malleable to code in most of the time (-> usually slow) and something fast in small doses (-> usually rigid and compiled). C/C++ is good but requires heavy scaffolding. Fortran has AFAIK good support, but it’s Fortran. There used to be an unholy and very useful utility called “scipy.weave” that lets you run inline C++, I think it was a coding abomination and now is gone. The recommended way is using Cython, but I find it generally neither nice nor fast. Nim could seriously be it for me.