6 ms·
Nimporter 1.0 released (seamlessly import Nim code from Python)
- DangitBobby 7y agoI can't wait to give this a try!
- treeform 7y agoNim is the ultimate glue language. JS, python, c, c++, obj-c, even glsl... It's cool.
- ianandrich 7y agoI want to second this sentiment. Wow.
- amelius 7y agoHow about the other way around, e.g. importing stuff like NumPy and SciPy or PyTorch from Nim? Is that possible?
- mlinksva 7y agoHaven't tried but https://github.com/yglukhov/nimpy#calling-python-from-nim https://github.com/yglukhov/nimpy#calling-python-from-nim
- beagle3 7y agoYes, using nimpy (which nimporter builds on); IIRC, it has other nice features like being Python version agnostic (same Nim executable can import modules from py2.7, py3.4 and py3.7 for example without needing to recompile, though not at the same time). But you might be better off with NimTorch and Arraymancer which though not yet complete, provide similar functionality and ergonomics at superior performance.