Hacker News new | past | comments | ask | show | jobs | submit
> As somebody on Twitter pointed out, a debug build of "hello world!" in Rust clocks in at 3.7mb. (No shade on Rust)

Debug symbols aren't cheap. A release build with a minimal configuration (linked below) gets that down to 263kb.

https://stackoverflow.com/questions/29008127/why-are-rust-ex...

My point was that many programmers have no conception of much functionality you can fit in a program of a few megabytes.

Here is a pastebin[1] of a Python program that creates a "Hello world" x64 elf binary.

How large do you think the ELF binary is? Not 1kb. Not 10kb. Not 100kb. Not 263kb.

The executable is 175 bytes.

[1] https://pastebin.com/p7VzLYxS

(Again, the point is not that Rust is bad or bloated but that people forget that 1 megabyte is actually a lot of data.)

loading story #43129825
loading story #43131025
loading story #43128585
Thanks for pointing this out.

It does seem weird to complain about the file size of a debug build not a release build.