5 ms·
For the specific case of Python executing Nim code you might be interested in [nimporter](https://github.com/Pebaz/nimporter https://github.com/Pebaz/nimporter)
by PMunch 5y ago
For 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.