I guess the article is more trying to make a statement along the lines of "here's how you benefit if you know python and pretend that means you know CPP too", (which seems like a fairly valid way to suck people into learning CPP to me)
I guess the article is more trying to make a statement along the lines of "here's how you benefit if you know python and pretend that means you know CPP too", (which seems like a fairly valid way to suck people into learning CPP to me)
https://github.com/adsharma/py2many
I didn't write the python -> C++ transpiler, but added a few features to common and added basic support in 6 other languages.
It should be possible to generate the C++ from python.
https://github.com/adsharma/py2many/tree/main/tests/expected
is a good place to understand what types of code this system can transpile.
Most languages are using templates/generics/auto etc. I added some type inference capabilities to common code and updated dart to take advantage of it.
Should be possible for other languages as well.
btrees python -> C++/rust seems feasible as a point of comparison.
Hard problem: translating library calls from one language to another. I'm thinking of some type of a plugin system that app developers can provide mappings.