← Back to context

Comment by Aurornis

1 day ago

> And as I pointed out in a comment below, your release binary of 440k is still larger than necessary by a factor 2000x or so.

This is such a silly argument because nobody is optimizing compilers and standard libraries for Hello World utilities.

It's also ridiculous to compare debug builds in rust against release builds for something else.

If you want a minimum sized Hello World app in rust then you'd use nostd, use a no-op panic handler, and make the syscalls manually.

> The rust compiler package takes up 240mb on my machine. That means rust is about 10x larger than a fully functional desktop OS from 30 years ago.

Fortunately for all of us, storage costs and bandwidth prices have improved by multiple orders of magnitude since then.

Which is why we don't care. The added benefits of modern software are great.

You're welcome to go back and use a 30 year old desktop OS if you'd like, though.