Have you ever wished for a Python compiler at work?
Asked by
~under_construction
I'm currently developing a Python compiler and I'm interested in real-life scenarios where having a single executable from Python scripts would have made a significant impact. While I've heard of tools like PyInstaller and Nuitka, they don't always seem reliable for industrial applications. Can anyone share their experiences or thoughts on this?
Answers
While I don't see much benefit beyond what you've mentioned, Cython is a great option to consider. Plus, you might also explore JIT compilation with tools like Numba or PyPy for improving performance.
Reply to this answer
With the rise of container technology in the last decade, I haven't faced many issues with Python deployments. Containers have kind of solved the distribution problem, so I donโt see a huge need for a compiler in many cases.
Reply to this answer
I've successfully used PyInstaller to distribute internal tools at my previous job in a major telecom. The challenging part was getting the code signed off by IT so that regular users could run it. That hurdle would exist whether it was simply a script or a fully compiled binary.
Reply to this answer
I personally think Nuitka does a fantastic job! It's been working well for me in various projects.
Reply to this answer
The term "compile" might stir up some debate, but itโs interesting how .pyc files are treated as compiled. Just be prepared for some mixed reactions when you bring it up!
Reply to this answer
Iโm keeping an eye on SPy, a fascinating new project that allows for static compilation while still keeping a lot of Python's dynamic features. Check it out on GitHub for more info.
Reply to this answer
Add your answer
Answers are reviewed before publication.
Related Discussions