News for hackers. Stuff that matters.
Re:Gemini CLI by tln on Wednesday June 25, 2025 @10:39AM (#44377877)
A Bun "hello world" is 58Mb

Claude also requires npm, FWIW.

Re:Gemini CLI by iainmerrick on Wednesday June 25, 2025 @12:03PM (#44378808)
What's a typical Go static binary size these days? Googling around, I'm seeing wildly different answers -- I think a lot of them are outdated.
Re:Gemini CLI by MobiusHorizons on Wednesday June 25, 2025 @12:10PM (#44378906)
It depends a lot on what the executable does. I don’t know the hello world size, but anecdotally I remember seeing several go binaries in the single digit megabyte range. I know the code size is somewhat larger than one might expect because go keeps some type info around for reflection whether you use it or not.
Re:Gemini CLI by iainmerrick on Wednesday June 25, 2025 @12:34PM (#44379166)
Ah, good point. I was just wondering about the fixed overhead of the runtime system -- mainly the garbage collector, I assume.
Re:Gemini CLI by frollogaston on Wednesday June 25, 2025 @06:27PM (#44382346)
The Golang runtime is big enough by itself that it makes a real difference from some WASM applications, and people are using Rust instead purely because of that.
Re:Gemini CLI by sitkack on Wednesday June 25, 2025 @12:27PM (#44379106)
That is point not a line. An extra 2MB of source is probably a 60MB executable, as you are measuring the runtime size. Two "hello worlds" are 116MB? Who measures executables in Megabits?
Re:Gemini CLI by quotemstr on Wednesday June 25, 2025 @02:28PM (#44380433)
> A Bun "hello world" is 58Mb

I've forgotten how to count that low.