News for hackers. Stuff that matters.
Re:Users don't care about your tech stack by Lvl999Noob on Friday February 21, 2025 @11:48AM (#43129743)
Fwiw, in something like hello world, most of the size is just the rust standard library that's statically linked in. Unused parts don't get removed as it is precompiled (unless there's some linker magic I am unaware of). A C program dynamically links to the system's libc so it doesn't pay the same cost.
Re:Users don't care about your tech stack by criddell on Friday February 21, 2025 @11:58AM (#43129924)
You can statically link a C program and only parts of libc that are used are included in the binary.