u/Efficient-Chair6250in r/Zig • Recommends
On “Why are zig binaries so small compared to other languages?”
Yeah, I would also think Rust has a lot more things packed into the binary by default.
E.g. the panic stack unwinding handling infrastructure is huge, which it has to be to keep the happy path fast.
But you can strip a lot of this if you know how. Still, C and Zig seemed to get even smaller binaries, even by default.