News for hackers. Stuff that matters.
Re:The Size of Things in Bytes by makapuf on Sunday January 01, 2023 @04:49PM (#34211351)
I dont understand the reported size of the go runtime. Sure, an hello world can be 2 megs in Go, but not 500. Compiled binaries are standalone and famously statically linked, so there is no extra RUNtime. I'd think the reported 470MB is the compiler and stdlib install size ?
Re:The Size of Things in Bytes by vocx2tx on Sunday January 01, 2023 @05:39PM (#34211831)
He probably ran ls on /usr/local/go (it's 477MB on my machine). But that's the size of the entire Go download after unarchiving, which includes the runtime's and all the standard library's 1) source code and 2) precompiled object files, both in normal and race-mode.

So no, that's not the actual size of "the Go runtime" for any meaningful definition of "the Go runtime".

Re:The Size of Things in Bytes by edflsafoiewq on Sunday January 01, 2023 @05:05PM (#34211520)
I also don't understand the quoted size of "LLVM/clang compiler+runtime". If I tally up the size of clang and it's dependencies with my package manager, I might get 500M, not 5G.