News for hackers. Stuff that matters.
Re:ZapFast: A fast, native WhatsApp client in Rust and egui by d3Xt3r on Sunday November 08, 2026 @02:07AM (#50411077)
> In our Linux test it opens in under a second and uses about 200 MB of idle RAM

Is it just me or does anyone else feel that 200 MB is a lot for a native chat app written in Rust, that's essentially a remote interface for the WhatsApp on your phone?

I remember back in the day, apps like Miranda IM (and early versions of Trillian) used only digits of RAM, even when you had multiple plugins talking several protocols at the same time, whilst having a ton of advanced features not found in WhatsApp. Yes I get that times have changed and software has become bloated etc, but 200 MB still feels a bit too much.

Re:ZapFast: A fast, native WhatsApp client in Rust and egui by rtpg on Sunday November 08, 2026 @02:36AM (#50411177)
> Is it just me or does anyone else feel that 200 MB is a lot for a native chat app written in Rust, that's essentially a remote interface for the WhatsApp on your phone?

> I remember back in the day, apps like Miranda IM (and early versions of Trillian) used only digits of RAM, even when you had multiple plugins talking several protocols at the same time

I think what's happening in the second one is that because you're using the native OS toolkits a bunch of stuff is shared, whereas with these "self-contained" "native"-y apps you end up having to load up the whole world and aren't sharing things with everything else

I'd love to be proven wrong but I feel like if you use e.g. Qt you're gonna have to hold onto a bunch of stuff that you wouldn't if you were "just" using OS-native stuff (though maybe that gets shared if you're using the exact same version? Is there something that can be done in this space?)

Re:ZapFast: A fast, native WhatsApp client in Rust and egui by elendilm on Sunday November 08, 2026 @02:47AM (#50411223)
With Qt, on my KDE Linux, a simple app usually stays well below 60 to 100 MB.
Re:ZapFast: A fast, native WhatsApp client in Rust and egui by saghm on Sunday November 08, 2026 @09:41AM (#50413759)
As an additional data point, I recently vibed an egui wrapper around a library I wrote for mod management for a game, and testing it out now, it idles at 92 MB. This implies to me that at least half of the overhead is probably not from the gui framework, but I also don't know how much effort they spent trying to optimize it; I didn't try to optimize my vibed GUI app at all, but I did hand-write the library that it uses for file management, state tracking, etc., and I tend to go out of my way to try to avoid unnecessary allocation in my Rust code. I don't know how much of the memory usage is essentially required overhead or from other dependencies for non-GUI parts of the app, but my instinct is that there's probably a bit of optimization that can be done. I don't think it's crazy for them not to have spent the effort on trying to do that yet though (or potentially even at all, if it's efficient enough for their own personal use).
Re:ZapFast: A fast, native WhatsApp client in Rust and egui by elendilm on Sunday November 08, 2026 @02:53AM (#50411247)
> Is it just me or does anyone else feel that 200 MB is a lot for a native chat app written in Rust ...

That was my first thought. But considering it as a significant improvement from > 1 GB, I guess it is what it is.

> I remember back in the day, apps like Miranda IM (and early versions of Trillian) used only digits of RAM ...

Sadly this was true for many apps.

Re:ZapFast: A fast, native WhatsApp client in Rust and egui by SkiFire13 on Sunday November 08, 2026 @05:30AM (#50411994)
Almost all of those 200MB will be system libraries for rendering and GPU buffers.
Re:ZapFast: A fast, native WhatsApp client in Rust and egui by andai on Sunday November 08, 2026 @05:33AM (#50412020)
Hello world in Rust is huge, and every actual program I've looked at installed dozens of packages for basic functionality.

Turns out all those zero cost abstractions add up to a lot!

Re:ZapFast: A fast, native WhatsApp client in Rust and egui by tcfhgj on Sunday November 08, 2026 @06:24AM (#50412323)
The number of packages doesn't have anything to do with this
Re:ZapFast: A fast, native WhatsApp client in Rust and egui by andai on Sunday November 08, 2026 @07:00AM (#50412517)
It does with the compile times lol

Is there actually a way to see a breakdown of memory usage for a program? If you want to see where all the memory is going?

Re:ZapFast: A fast, native WhatsApp client in Rust and egui by tcfhgj on Sunday November 08, 2026 @07:45AM (#50412792)
The topic was ran usage during runtime.
Re:ZapFast: A fast, native WhatsApp client in Rust and egui by andai on Sunday November 08, 2026 @10:01AM (#50413889)
What causes that?
Re:ZapFast: A fast, native WhatsApp client in Rust and egui by saghm on Sunday November 08, 2026 @09:44AM (#50413777)
> Is there actually a way to see a breakdown of memory usage for a program? If you want to see where all the memory is going?

Flame graphs are a pretty common tool for this (maybe slightly less common than using them for seeing the breakdown of the time spent when running).

Re:ZapFast: A fast, native WhatsApp client in Rust and egui by andai on Sunday November 08, 2026 @05:35AM (#50412026)
Looking forward to the 2030s when we get a wave of lightweight actually native software as an alternative to the bloated Rust rewrites ;)
Re:ZapFast: A fast, native WhatsApp client in Rust and egui by throwaway27448 on Sunday November 08, 2026 @08:22AM (#50413089)
[delayed]
Re:ZapFast: A fast, native WhatsApp client in Rust and egui by saghm on Sunday November 08, 2026 @09:42AM (#50413770)
"Claude, write me a client for WhatsApp in raw assembly"
Re:ZapFast: A fast, native WhatsApp client in Rust and egui by wooque on Sunday November 08, 2026 @06:44AM (#50412423)
yeah 200MB is nothing to boast about
Re:ZapFast: A fast, native WhatsApp client in Rust and egui by v1ne on Sunday November 08, 2026 @07:33AM (#50412712)
I just checked with the native WhatsApp client on Windows 11: 650 MB of RAM as it is running, across all its processes. Thus, taking ≈⅓ of RAM is nothing to brag about for a reimplementation that focuses on being lean and fast. Also, "opens in under a second" – back in the days when SSDs where new, programs opened instantaneously (<60 ms)!

Lastly, I still have to be convinced that Rust is a good choice for GUI programs, considering their messy mutable state and ownership.

Re:ZapFast: A fast, native WhatsApp client in Rust and egui by throwaway27448 on Sunday November 08, 2026 @08:22AM (#50413081)
[delayed]