Python-to-Julia (and more) translator - py2many

I thought it was intriguing:

Preliminary support exists for Julia, Kotlin, Nim, Go and Dart.

py2many can also emit Python 3 code that includes inferred type annotations, and revisions to the syntax intended to simplify parsing of the code.

I wouldn’t say Julia is “CLike” (at least syntax-wise, while semantically a superset, also supporting Libc.mallog and free, while not much used that way).

I don’t know how good this translator is for Julia (or other languages), it really can’t compile to Julia and the code be fast (it’s not possible in general, see Julia docs), so neither for other languages. But it might be fast enough.


It seems like it would be challenging to incorporate the correct structure and idioms into the translator.