Nuitka: An extremely compatible Python compiler
1–10 of 88 posts
Re: Nuitka: An extremely compatible Python compiler
#2* https://news.ycombinator.com/item?id=8771925 (2014, 135 comments)
* https://news.ycombinator.com/item?id=10994267 (2016, 52 comments)
* https://news.ycombinator.com/item?id=15354613 (2017, 60 comments)
Re: Nuitka: An extremely compatible Python compiler
#3I first found it back in 2015 when I worked at a company where we built a python based desktop application as a part of our industrial control system. Nuitka provided better performance then pyinstaller/cx_freeze while it was still simple to work with. Back then there were still a few incompatibilities but I've followed the project throughout the years and it's mature like a fine wine since.
Re: Nuitka: An extremely compatible Python compiler
#4Re: Nuitka: An extremely compatible Python compiler
#5[0]: https://nuitka.net/doc/developer-manual.html#ssa-form-for-nu...
Re: Nuitka: An extremely compatible Python compiler
#6Also is this actually faster than just python? I tried it out with some bad expensive looping using lists with python3.9 and it was 100ms slower (1.3sec vs 1.4sec).
Just in general why should I be using Nuitka?
Re: Nuitka: An extremely compatible Python compiler
#7How is this more compatible than just python? Since it requires libpython so you anyway need to have python installed on the target machine? Also is this actually faster than just python? I tried it out with some bad expensive looping using lists with python3.9 and it was 100ms slower (1.3sec vs 1.4sec). Just in general why should I be using Nuitka?
> In the future Nuitka will be able to use type inferencing based on whole program analysis. It will apply that information in order to perform as many calculations as possible in C, using C native types, without accessing libpython.
I believe the difference with PyPy is that PyPy tries to do this using just-in-time compilation and nuitka uses ahead-of-time compilation.
Re: Nuitka: An extremely compatible Python compiler
#8Re: Nuitka: An extremely compatible Python compiler
#9Re: Nuitka: An extremely compatible Python compiler
#10Tangentially related question: could Nuitka target WebAssembly, given that according to their overview page, they translate Python into C? Usually when it comes to Python -> WebAssembly, the biggest problem is the lack of GC in the WebAssembly spec (as far as I understand), and I'm wondering if this would be an issue for Nuitka as well...
One problem is that this GC doesn’t interact with the browser’s GC in any way. So you have painful memory management interactions when (for example) a DOM event handler references a WebAssembly object which in turn holds a reference to a browser object, possibly with cycles (so simple reference counting isn’t enough).
You can fall back to manual memory management here, but that’s painful to use. To make this work seamlessly, you need a way to trace references across both heaps in one swoop. Last I checked, there was standardization work underway to enable that.