Live data from Hacker News

NeutralinoJS: Lightweight Electron alternative using native browser controls

neutralino.js.org

71–80 of 200 posts

Re: NeutralinoJS: Lightweight Electron alternative using native browser controls

#71
post #61

> There are some drawbacks such as Windows edition is based on IE etc. This alone is a major reason to use Carlo[1] instead, which is arguably more secure (by virtue of not using IE) and produces even more lightweight bundles than NeutralinoJS. 1. https://github.com/GoogleChromeLabs/carlo

Carlo is essentially what top commenter derefr is asking for.

That said, it is unmaintained and I don't expect that to change.

Re: NeutralinoJS: Lightweight Electron alternative using native browser controls

#72
post #64
post #51

Earlier quoted context omitted.

Where is this 1-2GB number coming from? I'm running a fairly large Electron app and the combined memory usage of its processes is about 250-300MB.

I’m currently running three Electron apps: Spotify, Skype, and VS Code. Spotify: 1083.7 MB. VS Code: 890.9 MB. Skype: 406 MB. In the past, I’ve had projects open in VS Code which have caused that number to shoot up into the multi-gigabyte range. Of course this is all anecdotal but I am pretty sure these numbers come from actual experiences that people are having with Electron apps.

Over here, the base overhead of an Electron window is around 60MB. How do you know it's not those applications allocating a lot of memory that is causing all this usage?

Re: NeutralinoJS: Lightweight Electron alternative using native browser controls

#73
post #51
post #48

I feel like nobody cares too much if they’re running one Electron app; people do have the headroom for an extra 1-2GB of RAM usage. The problem comes when they run several Electron apps at once, and each comes with its own “base” overhead (i.e. the runtime memory consumption of the browser-runtime as a whole, independent of how many render contexts are open.) Chromium is built to share a lot of things between tabs ef…

Where is this 1-2GB number coming from? I'm running a fairly large Electron app and the combined memory usage of its processes is about 250-300MB.

Currently Slack is taking ~1.2GB on my laptop

Re: NeutralinoJS: Lightweight Electron alternative using native browser controls

#74
post #48

I feel like nobody cares too much if they’re running one Electron app; people do have the headroom for an extra 1-2GB of RAM usage. The problem comes when they run several Electron apps at once, and each comes with its own “base” overhead (i.e. the runtime memory consumption of the browser-runtime as a whole, independent of how many render contexts are open.) Chromium is built to share a lot of things between tabs ef…

i believe (but may be mistaken) that this was a goal of mozilla's positron project -- an electron-compatible runtime that uses firefox instead of chromium, but shares most resources across all of the positron apps running on your system so that it's more like having multiple tabs open rather than having multiple distinct instances open.

Re: NeutralinoJS: Lightweight Electron alternative using native browser controls

#75
post #64

Earlier quoted context omitted.

I’m currently running three Electron apps: Spotify, Skype, and VS Code. Spotify: 1083.7 MB. VS Code: 890.9 MB. Skype: 406 MB. In the past, I’ve had projects open in VS Code which have caused that number to shoot up into the multi-gigabyte range. Of course this is all anecdotal but I am pretty sure these numbers come from actual experiences that people are having with Electron apps.

Over here, the base overhead of an Electron window is around 60MB. How do you know it's not those applications allocating a lot of memory that is causing all this usage?

What's the uptime on that "base application" and what does it do?

Re: NeutralinoJS: Lightweight Electron alternative using native browser controls

#76
post #64
post #51

Earlier quoted context omitted.

Where is this 1-2GB number coming from? I'm running a fairly large Electron app and the combined memory usage of its processes is about 250-300MB.

I’m currently running three Electron apps: Spotify, Skype, and VS Code. Spotify: 1083.7 MB. VS Code: 890.9 MB. Skype: 406 MB. In the past, I’ve had projects open in VS Code which have caused that number to shoot up into the multi-gigabyte range. Of course this is all anecdotal but I am pretty sure these numbers come from actual experiences that people are having with Electron apps.

Wow. I've got Apple Music/iTunes running for a week or so on this Catalina macOS and the process viewer reports 300MB (including sub-processes). I assume it's a native application. How does Spotify manage to use so much RAM??

Re: NeutralinoJS: Lightweight Electron alternative using native browser controls

#77
post #61

> There are some drawbacks such as Windows edition is based on IE etc. This alone is a major reason to use Carlo[1] instead, which is arguably more secure (by virtue of not using IE) and produces even more lightweight bundles than NeutralinoJS. 1. https://github.com/GoogleChromeLabs/carlo

> There are some drawbacks such as Windows edition is based on IE etc.

Well that's kind of a non-starter. Part of the appeal with shipping an entire browser in an Electron app is to give yourself a fixed target.

It always seems that these "Electron killers" all have some fatal flaw, be it "just use whatever the system browser is" or "just as good as Electron, if you don't care about file drag-and-drop, system clipboard integration, full CSS support, minor things like that"[1].

1: https://github.com/ultralight-ux/Ultralight/issues/178

Re: NeutralinoJS: Lightweight Electron alternative using native browser controls

#78
post #58
post #20

Earlier quoted context omitted.

It definitely is the 'correct' way of doing it, but it will mean you use IE when in windows, which is often/normally not the correct way

We still need to support IE 11 on our projects anyway. Welcome to the corporate world.

> We still need to support IE 11

Not all of us. I'm happy to lose the 2.16% [1] in return for saving a lot in time and effort.

[1] https://www.w3counter.com/globalstats.php

Re: NeutralinoJS: Lightweight Electron alternative using native browser controls

#79

Earlier quoted context omitted.

Over here, the base overhead of an Electron window is around 60MB. How do you know it's not those applications allocating a lot of memory that is causing all this usage?

What's the uptime on that "base application" and what does it do?

https://github.com/electron/electron-quick-start

~60mb memory usage at startup.

Re: NeutralinoJS: Lightweight Electron alternative using native browser controls

#80
post #61

> There are some drawbacks such as Windows edition is based on IE etc. This alone is a major reason to use Carlo[1] instead, which is arguably more secure (by virtue of not using IE) and produces even more lightweight bundles than NeutralinoJS. 1. https://github.com/GoogleChromeLabs/carlo

Sadly looks dead... https://github.com/GoogleChromeLabs/carlo/issues/163
Post reply on HN