3 ms·
A Bun "hello world" is 58Mb Claude also requires npm, FWIW.
by tln 1y ago
A Bun "hello world" is 58Mb
Claude also requires npm, FWIW.
- sitkack 1y agoThat 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?
- iainmerrick 1y agoWhat'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.
- MobiusHorizons 1y agoIt 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.
- iainmerrick 1y agoAh, good point. I was just wondering about the fixed overhead of the runtime system -- mainly the garbage collector, I assume.
- frollogaston 1y agoThe 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.
- quotemstr 1y ago> A Bun "hello world" is 58Mb I've forgotten how to count that low.