3 ms·
Given your user name, I believe you completely, but can you provide a citation for how this was done?
by chungy 9y ago
Given your user name, I believe you completely, but can you provide a citation for how this was done?
- steveklabnik 9y agoHere's the HN discussion, which also links it https://news.ycombinator.com/item?id=8869167 https://news.ycombinator.com/item?id=8869167 Of course, it's not usual Rust code, but no binary that small is usual code, even in C. The point is to demonstrate that you can strip Rust down to as small as you want/need, not to suggest that every single Rust program is ultra-tiny.
- saagarjha 9y agoI'd say that at that point, it doesn't even matter that you're writing Rust code. Most of the slimming down comes from cutting out cruft that the linker puts in by default.
- steveklabnik 9y agoWell, it matters in that Rust lets you eliminate this in the first place. Not all languages let you do this kind of thing. If you want to write Ruby, you have a VM, even if your program is `a = 5`.