Hacker News new | past | comments | ask | show | jobs | submit login

Did you come to this conclusion by taking measurements using real apps? Because if this is just your gut feeling, that doesn't make sense. The base memory footprint of something like Electron (just a simple Hello World app) is likely already heavier than a complete Rust-only GUI app.

For a GUI app, business logic is usually not where your RAM budget goes.




Electron hello world ~40MB of RAM

Qt with QML Hello World ~40MB of RAM

Gtk-rs hello world ~20MB of RAM


Not sure where you're getting your numbers, but as a quick test I cloned an Electron Hello World app[0], bumped its Electron dependency to the latest version on npm, and ran it. It came in at around 90MB resident on the main process, with a GPU process of about 70MB, a "zygote" process of around 60MB, and a separate nodejs process around 35MB. Even if some memory was shared between those, that's still quite a bit more than 40MB.

[0] https://github.com/greggman/electron-hello-world




Guidelines | FAQ | Support | API | Security | Lists | Bookmarklet | Legal | Apply to YC | Contact

Search: