3 ms·
shameless plug: https://github.com/adsharma/py2many https://github.com/adsharma/py2many I didn't write the python -> C++ transpiler, but added a few features
by adsharma 6y ago
shameless plug:
https://github.com/adsharma/py2many 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.
- Rochus 6y agoInteresting. Do you have performance data (e.g. all CLBG Python benchmarks transpiled to C++ and run)? What's the speed-up?
- adsharma 6y agoI haven't focused on performance yet. Thanks for the pointer! Gives me a concrete target to go after. https://github.com/adsharma/py2many/tree/main/tests/expected 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.