News for hackers. Stuff that matters.
Re:Ask HN: How to do cross platform GUI? by ddek on Sunday August 23, 2020 @11:49AM (#24252704)
Electron is a full instance of chromium. Running an electron app is essentially running a browser, which is a heavy application. All that heft translates to inefficiency.
Re:Ask HN: How to do cross platform GUI? by filleduchaos on Sunday August 23, 2020 @01:59PM (#24253821)
As opposed to a "native webview", which is totally not essentially running a browser.
Re:Ask HN: How to do cross platform GUI? by jabirali on Sunday August 23, 2020 @04:05PM (#24254867)
My impression was that running 10 Electron apps would be like having 10 separate installations of Chromium running at the same time (with no shared memory). But running 10 WebView apps would be like having one browser with 10 tabs open, but where a lot of the the browser resources are shared.

In that case, I would expect a large difference in memory footprint, although both options would be bad in terms of having a non-native user interface and user experience.

Is this incorrect?

Re:Ask HN: How to do cross platform GUI? by m-p-3 on Monday August 24, 2020 @10:53AM (#24261246)
The native webview use another instance of the engine, without running a complete web browser. If all apps did, the amount of resources required would be lower as they would share some common components.
Re:Ask HN: How to do cross platform GUI? by toastal on Sunday August 23, 2020 @12:16PM (#24252919)
With options like Firefox's SSB, you can use pages like 'apps' but at use the browser's resource pool instead of spinning up multiple Chromium instances.
Re:Ask HN: How to do cross platform GUI? by mijoharas on Sunday August 23, 2020 @04:13PM (#24254934)
... but that's not what electron does.

Unless I'm missing something that I really don't understand...

Re:Ask HN: How to do cross platform GUI? by toastal on Monday August 24, 2020 @01:32AM (#24257769)
It's my understanding that since each app is shipping with its own Electron version/runtime, that the resources of these are not and can't be shared or managed centrally. A chromeless web app running via the browser would effectively be just another tab use the current browser's resources (and extensions +1).
Re:Ask HN: How to do cross platform GUI? by mijoharas on Monday August 24, 2020 @11:55AM (#24261846)
Agreed. Sorry, I took your previous comment as arguing against the comment it was in reply to.

I was quite keen on chrome apps, as they allowed you to share the chrome browser runtime in a similar way. If you add a native desktop shortcut, and use the chrome-hiding features then you can basically replace electron with a shared runtime. I have a dim memory that it may have been killed/hobbled now though...