4 ms·
"Rust tries to appeal to programmers coming from many different backgrounds, and not everyone knows that something like stripping binaries even exists."
by 1vuio0pswjnm7 3y ago
"Rust tries to appeal to programmers coming from many different backgrounds, and not everyone knows that something like stripping binaries even exists."
- cybrox 3y agoIt's not ideally written but it's safe to assume if someone compiles a quick test program for that purpose and it ends up being 4MB, they might just move on to other options instead of starting to think about how they can manually reduce the binary size. When evaluating languages, you rarely look foor good enough results to work around.
- Novosell 3y agoMy machine has 32GB of RAM, why should I care about binary size? For embedded, sure. But most people don't write for embedded. If it was like 1GB, sure. But it aint.
- pdimitar 3y agoBecause your employer might want the deployed final binary work fast on a 1 vCPU container with 1GB of RAM.
- cybrox 3y agoThe other replies cover "the why" adequately already but as a tangent: Every company makes some effort to be green and eco friendly these days, yet we're perfectly happy wasting billions of hours of compute time every second because "who cares" and "we can"... Same mindset.
- rkangel 3y agoYes. The statement I agree the most with in the blog post is "defaults matter".
- 1vuio0pswjnm7 3y agoAt this moment, I am compiling GCC 10.5 on a RPi Model B with 256M of RAM. The root filesystem is on a ramdisk embedded in the kernel. The SD card from which I booted is read-only. The compilation runs not from the SD card but from a chroot to a large external drive plugged into the RPi via USB. Once I have GCC and rest of the toolchain built, I then use it to compile custom kernels with embedded ramdisks. https://en.wikipedia.org/wiki/Self-hosting_(compilers) https://en.wikipedia.org/wiki/Self-hosting_(compilers) Wish I had a computer with 32GB RAM but I don't. I use strip -s every day.