News for hackers. Stuff that matters.
Re:Show HN: Prometeo – a Python-to-C transpiler for high-per... by adsharma on Thursday November 18, 2021 @11:50AM (#29267550)
This is awesome! The direction of using a subset of python, while leveraging the user base and static typing to accomplish some other everyday task in a different language is very legit IMO.

I took a cursory look at:

https://github.com/zanellia/prometeo/blob/master/prometeo/cg...

It seems quite similar in spirit to

https://github.com/adsharma/py2many/blob/main/pyrs/transpile...

I'm not spending much time on py2many last few months (started a new job). Let me know if any of it sounds useful - especially the ability to transpile to 7-8 languages including Julia, C++ and Rust.

Re:Show HN: Prometeo – a Python-to-C transpiler for high-per... by zanellia on Thursday November 18, 2021 @12:10PM (#29267781)
Pretty cool! How do you manage multiple target languages with a single AST parser? Do you use an intermediate AST?
Re:Show HN: Prometeo – a Python-to-C transpiler for high-per... by adsharma on Sunday November 21, 2021 @02:34AM (#29294774)
No intermediate AST. To understand the various stages of transpilation and separation of language specific and independent rewriters, this file is a good starting point:

https://github.com/adsharma/py2many/blob/main/py2many/cli.py...

Re:Show HN: Prometeo – a Python-to-C transpiler for high-per... by pure_simplicity on Saturday November 20, 2021 @08:25AM (#29287854)
That's a good question to put in the discussion tab on their GitHub repo, that way others that are interested can find it too :)