6 comments

[ 3.4 ms ] story [ 28.5 ms ] thread
Nim is the ultimate glue language. JS, python, c, c++, obj-c, even glsl... It's cool.
I want to second this sentiment. Wow.
How about the other way around, e.g. importing stuff like NumPy and SciPy or PyTorch from Nim? Is that possible?
Yes, 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.