Every now and then I start to dust off <https://github.com/Niminem/Py2Nim> for 
that very reason and to try solving that very problem.

The idea I have is to combine a logic engine with LLMs to create a reliable 
(and practical) Python-to-Nim transpiler. Recursively add types to the python 
code, walk and translate all the dependencies, then the 
repository/project/module itself, output the code as idiomatic Nim code.

Ambitious I know but I do get that itch every so often when I run into 
scenarios where I don't have a library readily available. Wrapping C/C++ 
libraries are a pain in the ass for me, and using the Nimpy bridge is (to me) 
like a temporary hack.

The lack of libraries suuuuuuuuuucks.

Would be super cool to just help guide a program that will port a full python 
project over to nim.

Reply via email to