←back to thread

Gemini CLI

(blog.google)
1342 points sync | 7 comments | | HN request time: 1.145s | source | bottom
Show context
ZeroCool2u ◴[] No.44377226[source]
Ugh, I really wish this had been written in Go or Rust. Just something that produces a single binary executable and doesn't require you to install a runtime like Node.
replies(12): >>44377273 #>>44377286 #>>44377337 #>>44377341 #>>44377366 #>>44377649 #>>44377914 #>>44378962 #>>44380417 #>>44382222 #>>44384234 #>>44384426 #
iainmerrick ◴[] No.44377273[source]
Looks like you could make a standalone executable with Bun and/or Deno:

https://bun.sh/docs/bundler/executables

https://docs.deno.com/runtime/reference/cli/compile/

Note, I haven't checked that this actually works, although if it's straightforward Node code without any weird extensions it should work in Bun at least. I'd be curious to see how the exe size compares to Go and Rust!

replies(4): >>44377313 #>>44377346 #>>44377642 #>>44377877 #
1. tln ◴[] No.44377877[source]
A Bun "hello world" is 58Mb

Claude also requires npm, FWIW.

replies(3): >>44378808 #>>44379106 #>>44380433 #
2. iainmerrick ◴[] No.44378808[source]
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.
replies(1): >>44378906 #
3. MobiusHorizons ◴[] No.44378906[source]
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.
replies(1): >>44379166 #
4. sitkack ◴[] No.44379106[source]
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?
5. iainmerrick ◴[] No.44379166{3}[source]
Ah, good point. I was just wondering about the fixed overhead of the runtime system -- mainly the garbage collector, I assume.
replies(1): >>44382346 #
6. quotemstr ◴[] No.44380433[source]
> A Bun "hello world" is 58Mb

I've forgotten how to count that low.

7. frollogaston ◴[] No.44382346{4}[source]
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.