News for hackers. Stuff that matters.
Re:Building a fast Electron app with Rust by KeitIG on Sunday March 18, 2018 @05:55AM (#16611177)
I don’t understand the size argument. Disk space is super cheap today. Facebook’s Android app is 350MB and not a lot of people really care, on Desktop, 150MB is nothing.

Plus it satisfies the “all libs/dependencies in one app”, which is exactly what macOS’s .app, Linux’s Snaps and AppImage, or more generally all Android/iPhone apps are doing.

I agree with the RAM/power things too, but these issues come from web pages in general, not Electron itself.

Re:Building a fast Electron app with Rust by petecox on Sunday March 18, 2018 @06:23AM (#16611238)
If anyone seeks an alternative to Facebook's app, there's Face Slim from the f-droid repository:

https://f-droid.org/en/packages/org.indywidualni.fblite/

1.3 MiB

Re:Building a fast Electron app with Rust by butz on Sunday March 18, 2018 @06:32AM (#16611260)
Disk space is cheap, but internet access might be limited by monthly data cap or just be slow (think 3G networks). And with every app update user must re-download the same electron runtime. Also bigger apps takes longer to start and in this particular app case, low startup time should be critical.
Re:Building a fast Electron app with Rust by LeoNatan25 on Sunday March 18, 2018 @06:15AM (#16611221)
A clean "hello world" Electron excrement takes 200+ MB in RAM. How is that an "issue from web pages" exactly?
Re:Building a fast Electron app with Rust by quantummkv on Sunday March 18, 2018 @06:57AM (#16611327)
A full electron app i am making handles about 10,000+ records in memory along with react. Never seen it go above 150 mb on any system. You must have misread the numbers.
Re:Building a fast Electron app with Rust by tarruda on Sunday March 18, 2018 @06:34AM (#16611268)
Where did you get this information? I just tested "electron-quick-start" on Linux and all 3 processes use 40 MiB together
Re:Building a fast Electron app with Rust by wander_homer on Sunday March 18, 2018 @08:31AM (#16611640)
Here on my systems (Ubuntu, Gentoo) electron-quick-start leads to ~90 MB more memory usage and it spawns 4 processes which use 110MB, 74MB, 74MB and 44MB of resident memory. So obviously quite some memory is shared between those and probably other processes on my system, but nevertheless the resulting memory consumption is far above 40 MB.
Re:Building a fast Electron app with Rust by tarruda on Sunday March 18, 2018 @08:43AM (#16611687)
I used gnome-system-monitor to check memory usage, which doesn't include the memory used by the executable image itself, and which I believe is more than 60 MiB.

Theoretically this memory could be shared by all electron applications running in a single machine. In practice every Electron app bundles its own runtime.

Re:Building a fast Electron app with Rust by LeoNatan25 on Sunday March 18, 2018 @08:54AM (#16611728)
I tested on Mac and my numbers were higher. Even if some memory is shared between parent and child processes, each still has its own isolated VM, a DOM tree and a memory heap. So a lot of that is not shared.