by wolframhempel · 2y ago · 0 comments
Different class of products.
For Electron apps, often it's the choice of having a desktop app or not having one at all.
If they want you to use an installed app then they should just build a native app that can be installed.
> For Electron apps, often it's the choice of having a desktop app or not having one at all.
Maybe it would be better to have none at all. Having an electron app is an excuse to say "we already have a desktop app, so we won't make a native one".
Electron's success is strictly to blame on the desktop platform owners/maintainers dropping the ball, consistently and repeatedly for the last 3 decades (Microsoft's UI framework 'evolution' is especially hilarious, who in their right mind would write an application against a widget library that's going to be deprecated in 3 years).
In my opinion, the actual problem is the focus on making everything web first.
I don't think this is a problem. Many class of products require a web version over a desktop one. The desktop one is a very nice bonus.I remember when it was 2 MB!!
It's in fact still quite small if additional 3rd party libraries are disabled.
It's possible to make a much smaller download that removes OpenCollada, FFMPEG, OpenEXR, OpenImageDenoise, OpenVDB ... etc. However it's a hassle to distribute a second version at a time when the current size is manageable for most users.
It doesn't matter if it can or can not do 60fps. Installing yet another copy of the browser just to run that small web app is just wrong.
Then there's also annoying differences between browsers when capturing the mouse - which is needed for camera controls (all browsers show some sort of popup while the mouse is captured, with Safari even shifting the canvas around).
TL;DR: it's possible in theory, but can be very annoying when actually trying to do it, mostly because most web APIs are badly designed (WebGL2 and WebGPU are notable exceptions, but they still lag far behind native 3D APIs).