Generate Python extensions using Nim language

by eagledotRLon 4/15/22, 11:35 AMwith 15 comments
by Qemon 4/15/22, 3:55 PM

I suspect Nim has a good shot at getting popular, by piggybacking on Python syntax, the same way several other languages (e.g. Java, JavaScript) got popular by piggybacking on C syntax. Python just became number 1 on TIOBE index. Once part of the generation of developers just starting now, Python-first, needs to learn a systems programming language, Nim provides a path of least resistance for migration, close to the syntax they will be already used to.

by kdheepakon 4/15/22, 3:04 PM

I've used https://github.com/yglukhov/nimpy and I have to say the package, the author and the nim community were all phenomenal in helping me implement nim code that works as a Python package.

by elcritchon 4/15/22, 6:36 PM

Also of interest for people might be Genny. It’s a Nim library to automate creating language bindings for other languages. Currently it supports Python, Node, and C.

https://github.com/treeform/genny

by cb321on 4/15/22, 1:16 PM

Maybe also of interest is a nascent package for R calling Nim (or vice versa): https://github.com/SciNim/rnim

by poulpy123on 4/15/22, 8:23 PM

I'm toying a bit with nim these days, and I find it quite pleasant. it is a pity that it did not find the same success as go or rust

by spindleon 4/15/22, 10:22 PM

This makes me want to write Python extensions using Nim using Spry - http://sprylang.se