News for hackers. Stuff that matters.
Re:NimConf 2021 by crispyalmond on Wednesday June 23, 2021 @11:47AM (#27605887)
Re:NimConf 2021 by bckr on Wednesday June 23, 2021 @12:25PM (#27606336)
From the Readme, Nimpy is a language integration tool that lets you call Python from Nim. It also links to Nimporter which allows you to import Nim code as a Python package.

What I'm describing would be the inverse of Nimporter, allowing you to import Python code as a Nim library (without making Python calls). That way, you get the performance of Nim but the years of Python package development. "Transpiler" might be a better word?

I've never worked on anything so difficult so I'm really just spitballing. But... wouldn't it be cool? :)

Re:NimConf 2021 by crispyalmond on Wednesday June 23, 2021 @02:37PM (#27608305)
Ah yes, I misread your intent. That would be very nice to have. There is this breakdown of features[0] present in Nim compared to Python which might be helpful when doing this.

[0] https://github.com/nim-lang/Nim/wiki/Nim-for-Python-Programm...