Hacker News new | past | comments | ask | show | jobs | submit login

Is a PyQt app really more lightweight than Electron?

To be fair, Qt is a lot trickier than Electron - you've mentioned slots and signals which are not something you'd encounter every day (at least in webdev world).

Edit: I also don't buy any argument that relies on "intellectual laziness". There's enough elitism around already.




Is a PyQt app really more lightweight than Electron?

I just tried, because it's only 5 minutes of work. The demo apps (including a movie player and an image viewer) are generally in the 30MB of memory ballpark on OS X.

you've mentioned slots and signals which are not something you'd encounter every day

It's something that you can pick up in a few minutes. Widgets emit signals. You can connect signals of choice to slots to handle those signals. In Python, a slot is just a Python method. In C++ is slot is also a method, but you have to add a small 'annotation' that is processed by moc.


Well, I can't speak for today, but back in the early 2000s, I put together a simple web browser in Qt, which is easy because it already includes a simple web engine, added a simple JS engine, and the web browser was up and running.

I recall being disappointed it wouldn't run nicely on '98 for some people, because it used about 25mb of RAM, and many only had 128mb for their entire system.


Yes, much. And if that's too heavy for you, WxWidgets should be even lighter.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: