Re:Nuitka: a Python compiler written in Python
by mherrmann on Thursday June 17, 2021 @08:25AM
(#27538833)
fbs author here; The Pro version of fbs [1] now supports Python > 3.6 and recent Qt versions.
Re:Nuitka: a Python compiler written in Python
by diogenesjunior on Thursday June 17, 2021 @08:56AM
(#27539060)
What I love about HN. You can discuss almost anything and the project's creator pops up in the thread.
Re:Nuitka: a Python compiler written in Python
by gota on Thursday June 17, 2021 @11:07AM
(#27540380)
Hey - first of all, looks great and I'll definitely look into it. Good job!
Question - do you have any comparisons on the size of the resulting distributed executable compared to Nuitka, pyinstaller?
This is the issue I've faced. Nontrivial programs (that, say, import pandas, numpy, selenium) are huge, implying a ~250MB+ download for the user - and then maybe up to 1GB in disk when its all unpacked.
Re:Nuitka: a Python compiler written in Python
by nyanpasu64 on Thursday June 17, 2021 @04:10PM
(#27544018)
The OpenBLAS version of NumPy (from pip rather than conda), plus PyQt5, can fit in around 100 megabytes uncompressed on disk for a Win64 binary. However I no longer recommend writing number crunching apps in Python, since you don't have thread-based parallelism due to the GIL, and have to awkwardly shuffle data across processes. (Last time I tried multiprocessing, some data can only be sent to workers on Linux using fork-based worker spawning, and not on Windows which lacks fork and requires pickling.)
Re:Nuitka: a Python compiler written in Python
by doubleunplussed on Thursday June 17, 2021 @07:51PM
(#27545774)
If the number crunching is numpy-heavy, multiple threads absolutely can use real thread-based parallelism. C extensions like numpy release the GIL and so can run in parallel.
Re:Nuitka: a Python compiler written in Python
by mherrmann on Thursday June 17, 2021 @11:13AM
(#27540443)
Thanks! Regarding your question: fbs uses PyInstaller under the hood, so the binaries should be pretty similar in size.
Re:Nuitka: a Python compiler written in Python
by gota on Thursday June 17, 2021 @11:10AM
(#27540416)
BTW the error tracking described in the Manual sounds great. Are you affiliated to Sentry in any way?
Re:Nuitka: a Python compiler written in Python
by mherrmann on Thursday June 17, 2021 @11:14AM
(#27540459)
No affiliation whatsoever. If you want to use Sentry for almost free, you can use my (old) scripts for deploying it to a $5 / month VPS: https://github.com/mherrmann/sentry-self-hosted
Re:Nuitka: a Python compiler written in Python
by Cadwhisker on Thursday June 17, 2021 @09:37AM
(#27539423)
Ah, great news. Thanks for making FBS; it is incredibly liberating to find a tool that lets us write Python GUI apps and have them appear as if they were made by XCode or Visual Studio.
Re:Nuitka: a Python compiler written in Python
by mherrmann on Thursday June 17, 2021 @09:45AM
(#27539489)
Happy if you find it useful!
Re:Nuitka: a Python compiler written in Python
by pomfpomfpomf3 on Thursday June 17, 2021 @03:06PM
(#27543259)
I'm using fbs in an open source (GPLv2+) project, is there a way to upgrade or am I stuck with old python?
Re:Nuitka: a Python compiler written in Python
by sireat on Thursday June 17, 2021 @10:12AM
(#27539771)
Nice option for building Python+Qt applications!
Buying the Pro version still leaves one to deal with Qt licensing does it not?
Re:Nuitka: a Python compiler written in Python
by mherrmann on Thursday June 17, 2021 @10:24AM
(#27539898)
Yes. But usually you can use it under the LGPL and thus for free.
Re:Nuitka: a Python compiler written in Python
by victor106 on Thursday June 17, 2021 @10:43AM
(#27540104)
Tried to use this recently. I don’t understand the decision to limit the free version to versions < 3.6. It would be beneficial for you and your users if you at least have a free trial for versions above 3.6.
Re:Nuitka: a Python compiler written in Python
by mherrmann on Thursday June 17, 2021 @11:26AM
(#27540625)
I track my time and have spent 570 hours since 2018 working on fbs. The vast majority of this (526h) was for the free version you are complaining about, the nice documentation etc. You are criticizing me for not giving you everything I do for free?
Re:Nuitka: a Python compiler written in Python
by winchester6788 on Thursday June 17, 2021 @03:53PM
(#27543847)
Just wanted to drop in and appreciate your work.
It's documented very well, extremely easy to use and the pro version is priced very well.
Re:Nuitka: a Python compiler written in Python
by victor106 on Thursday June 17, 2021 @11:40AM
(#27540815)
sorry, i don't mean it as criticism and I am not asking you to give it away for free.
I was suggesting that, for you to make more $$$ from it, its better to provide a free trial period for the said version.
Re:Nuitka: a Python compiler written in Python
by nicolasrusso on Friday June 18, 2021 @08:13AM
(#27549523)
Beeware sounds really interesting. I've often wondered if there are any things like it out there that can help me build complex GUIs (e.g. user interfaces with interactive 3D stuff), and an interface that doesn't look like its from the 90s. I'll look into Beeware more in depth, hopefully it can handle stuff like that.
* FBS (FMan's Build System) - worked well for a while, but we couldn't upgrade Qt past a certain version and he version we used was only happy with Python 3.6.
* Beeware - our current solution. Very, very happy with this; works smoothly, lets us use the latest Python and Qt versions and lets us make professional-looking installers that we can distribute.