News for hackers. Stuff that matters.
Re:GitUI: Terminal UI for Git by elcritch on Saturday September 17, 2022 @10:16PM (#32883742)
Go programs are also statically linked and Go based CLI tools generally only come in at 3-4 MB IIRC. I've used static linking in binaries in Nim and C programs too with similar (or smaller) sizes.

Rust binaries are just impressively large. I'd guess part of it must be how Rust monomorphizes generics: https://rustc-dev-guide.rust-lang.org/backend/monomorph.html

Re:GitUI: Terminal UI for Git by stjohnswarts on Sunday September 18, 2022 @02:29AM (#32884976)
if you strip them you tend to lose a lot of the fat.
Re:GitUI: Terminal UI for Git by elcritch on Sunday September 18, 2022 @05:02AM (#32885763)
Nice, any tips on how to do that? Is there a Cargo thing or just run regular ole strip?
Re:GitUI: Terminal UI for Git by styluss on Sunday September 18, 2022 @03:44PM (#32890797)
Re:GitUI: Terminal UI for Git by synergy20 on Sunday September 18, 2022 @12:34PM (#32888923)
strip will help to some extent, like 20% downsize, just not enough