News for hackers. Stuff that matters.
Re:Go 1.17 Beta by anderskaseorg on Thursday June 10, 2021 @04:37PM (#27465463)
Although it used to be worse, these days a standard Rust “Hello, world!” compiles to just 277 KB on Linux with ‘cargo build --release’ and ‘strip’—5× smaller than the equivalent for Go (and there are games you can play to get it down further).
Re:Go 1.17 Beta by simias on Thursday June 10, 2021 @05:26PM (#27466062)
Oh, that's very cool, I hadn't checked that in ages. Any idea on what Rust does better here? Better link time optimization? Or is the Go runtime just that heavier?
Re:Go 1.17 Beta by colin_mccabe on Thursday June 10, 2021 @06:24PM (#27466625)
Rust doesn't really have a "runtime" in the same sense that Go does. For example, Rust has no GC.