3 ms·
Who cares about 300Mb, where is that going to move the needle for you? And if the alternative is a memory-unsafe language then 300Mb is a price more than worth
by lmm 6mo ago
Who cares about 300Mb, where is that going to move the needle for you? And if the alternative is a memory-unsafe language then 300Mb is a price more than worth paying. Likewise if the alternative is the app never getting started, or being single-platform-only, because the available build systems suck too bad.
There ought to be a short one-liner that anyone can run to get easily installable "binaries" for their PyQt app for all major platforms. But there isn't, you have to dig up some blog post with 3 config files and a 10 argument incantation and follow it (and every blog post has a different one) when you just wanted to spend 10 minutes writing some code to solve your problem (which is how every good program gets started). So we're stuck with Electron.
- tcfhgj 6mo ago> And if the alternative is a memory-unsafe language and if not?
- lmm 6mo ago> and if not? If the alternative is memory-safe and easy to build, then maybe people will switch. But until it is it's irresponsible to even try to get them to do so.
- tcfhgj 6mo agoUntil? Just take what's out there - it's so easy to improve on Electron
- lmm 6mo agoLike what? Where else (that's a name brand platform and not, like, some obscure blog post's cobbled-together thing) can I start a project, push one button, and get binaries for all major platforms? Until you solve that people will keep using Electron.
- im3w1l 6mo agoThere are quite a few options. Many of them look dated though. I think that's the usp of electron.
- Capricorn2481 6mo agoThere's a world of difference between using a memory safe language and shipping a web browser with your app. I'm pretty sure Avalonia, JavaFX, and Wails would all be much leaner than electron.
- lmm 6mo agoThe people who hate Electron hate JavaFX just as much if not more, and I'm not sure it would even use less memory. And while the build experience isn't awful, it's still a significant amount of work to package up in "executable" form especially for a platform different from what you're building on, or was until a couple of years ago. And I'm pretty sure Avalonia is even worse.
- Capricorn2481 6mo ago> and I'm not sure it would even use less memory It likely would use less, and doesn't use a browser for rendering. > And I'm pretty sure Avalonia is even worse Definitely not > The people who hate Electron hate JavaFX just as much if not more In my opinion, I only see this from people that seem to form all of their opinions on tech forums and think Java=Bad. These are the people that think .NET is still windows only and post FUD because they don't know how to just ask for help.