logoalt Hacker News

clktmryesterday at 9:55 AM1 replyview on HN

It's pretty good at dead code elimination. The size of Go binaries is in large part because of the runtime implementation. Remove a bunch of the runtime's features (profiling, stacktraces, sysmon, optimizations that avoid allocations, maybe even multithreading...) and you'll end up with much smaller binaries. I would love if there was a build tag like "runtime_tiny", that provides such an implementation.


Replies

teerayyesterday at 4:14 PM

There is Tiny Go, which is similar to what you seek