4 ms·
> Actually, the culprit is Rust's decision to statically link its standard library and all its dependencies by default. No it really isn't, static linking does
by nwmcsween 10y ago
> Actually, the culprit is Rust's decision to statically link its standard library and all its dependencies by default.
No it really isn't, static linking does not imply bloat as commonly perpetuated.
> It's also possible to prune down the statically-linked size by opting out of various conveniences like jemalloc
Try this: opt out of everything except the standard library, create something somewhat trivial and idiomatic in both rust and c, compile and see what you get.
> Rust can actually outdo them on a Hello World.
Hello word is hardly a use of the standard library.
- ssokolow 10y ago> No it really isn't, static linking does not imply bloat as commonly perpetuated. I never said it implied bloat. I said that, if you ask Rust to link dynamically despite the lack of a stable ABI, you'll get binaries of a size similar to C and C++. > Try this: opt out of everything except the standard library, create something somewhat trivial and idiomatic in both rust and c, compile and see what you get. I'll need you to be a bit more specific than "somewhat trivial", given that "Hello world" uses println! or printf() but you consider it ineligible. > Hello word is hardly a use of the standard library. println! aside, it's a data point and that's all I meant by it.