3 ms·
Hello world in Rust is still 2.5MB if you statically compile all the libraries in since it doesn't strip unused functions. The tools and ecosystem are nowhere n
by CyberDildonics 10y ago
Hello world in Rust is still 2.5MB if you statically compile all the libraries in since it doesn't strip unused functions. The tools and ecosystem are nowhere near what they are for C++
- steveklabnik 10y agoIf this matters to you, it's not hard to get it down to something much smaller.
- CyberDildonics 10y agoOf course it matters and I've tried. Using nostdlib wipes out everything, so it becomes all or nothing, which is the problem.
- aij 10y ago> Hello world in Rust is still 2.5MB if you statically compile all the libraries in Still? Since when? Last I checked it was 661kB for Rust vs 829kB for C, and that was quite a while ago. http://stackoverflow.com/a/29461455/2343847 http://stackoverflow.com/a/29461455/2343847
- CyberDildonics 10y agoTo be clear, you think that 829kB is the size of a statically linked C program that uses printf to print 'hello world'? In visual studio it is 25KB - 40KB. All of musl compiles to under 500KB.
- Shorel 10y agoWhat? I have done hello world in C at about 4kB. You may be confusing C with C++.