5 ms·
Now that we have type hints and statically typing in Python, I hope to see an open source Python compiler, that improves performance and produces single file bi
by Rotareti 8y ago
Now that we have type hints and statically typing in Python, I hope to see an open source Python compiler, that improves performance and produces single file binaries.
- MikeTheGreat 8y agoNo idea if this improves performance (and it's definitely not a compiler), but Pyz produces single files from your Python code: https://pypi.org/project/pyz/ https://pypi.org/project/pyz/
- sjellis 8y agoNuitka has been around for a few years: https://nuitka.net/ https://nuitka.net/ AIUI, this was basically a one-person effort for a long time, but the project is now growing.
- adaszko 8y agoI wish there was one too, but programmer-oriented types are not the same thing as machine-oriented types. Compiling to fast code requires the latter one: types like u32, not Dict[String, int]. Current Python typing efforts tend to focus on programmer-oriented types.
- gpshead 8y agoLook up PyOxidizer. But also look at MyPy's internal MyPyC if you want something that uses type information for some speedups.