Hacker Newsnew | past | comments | ask | show | jobs | submitlogin
Nimporter 1.0 released (seamlessly import Nim code from Python) (reddit.com)
95 points by kbd on April 12, 2020 | hide | past | favorite | 6 comments


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.


I can't wait to give this a try!




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: