News for hackers. Stuff that matters.
Re:Tauri: An Electron alternative written in Rust by albertzeyer on Friday February 19, 2021 @01:49PM (#26196462)
But why would the system webview be less resource hungry? If it runs in an own process instance, the only memory you safe is (maybe) the executable code (i.e. maybe 100MB max).

Or you would need some common runtime which is shared across the OS, and somehow use IPC to it. Then you can potentially save some more memory. But I don't think this exists. And I'm also not sure how much you really would save.

The advantage of using the system webview is that you can update this component, in case there are any vulnerabilities or so.

Re:Tauri: An Electron alternative written in Rust by cozzyd on Friday February 19, 2021 @06:02PM (#26199189)
100 MB / app is significant, especially on laptops.

Slack used to use so much memory on Linux that I couldn't afford to run the desktop app and ran it inside a Firefox tab for years... seems to have gotten better somehow.

Re:Tauri: An Electron alternative written in Rust by kaba0 on Saturday February 20, 2021 @02:00PM (#26206789)
I doubt there would be many GUI apps that eat less than 100 MB — if only that would be the maximum.
Re:Tauri: An Electron alternative written in Rust by cozzyd on Sunday February 21, 2021 @12:05AM (#26210960)
Of course, but saving 100 MB in 5 apps would probably let you leave a few extra tabs open...or run emacs.
Re:Tauri: An Electron alternative written in Rust by sophiebits on Friday February 19, 2021 @03:34PM (#26197725)
They’re not inherently more efficient (other than the reduced application size), but Safari and Edge are both more resource-efficient than Chrome.
Re:Tauri: An Electron alternative written in Rust by OskarS on Friday February 19, 2021 @02:43PM (#26197171)
Dynamically loaded system libraries use shared memory. You can load it once for the entire system.
Re:Tauri: An Electron alternative written in Rust by albertzeyer on Friday February 19, 2021 @02:56PM (#26197328)
That's what I mean by executable code. But that is only really minor (<100MB or so) compared to the remaining resource usage.
Re:Tauri: An Electron alternative written in Rust by OskarS on Friday February 19, 2021 @04:51PM (#26198479)
Ah, sorry, I missed that in your comment.