←back to thread

Gemini CLI

(blog.google)
1342 points sync | 2 comments | | HN request time: 0.514s | source
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 #
qsort ◴[] No.44377341[source]
Projects like this have to update frequently, having a mechanism like npm or pip or whatever to automatically handle that is probably easier. It's not like the program is doing heavy lifting anyway, unless you're committing outright programming felonies there shouldn't be any issues on modern hardware.

It's the only argument I can think of, something like Go would be goated for this use case in principle.

replies(6): >>44377541 #>>44377941 #>>44378149 #>>44378557 #>>44382533 #>>44382571 #
masklinn ◴[] No.44378149[source]
> having a mechanism like npm or pip or whatever to automatically handle that is probably easier

Re-running `cargo install <crate>` will do that. Or install `cargo-update`, then you can bulk update everything.

And it works hella better than using pip in a global python install (you really want pipx/uvx if you're installing python utilities globally).

IIRC you can install Go stuff with `go install`, dunno if you can update via that tho.

replies(3): >>44378315 #>>44378861 #>>44385984 #
StochasticLi ◴[] No.44378315[source]
This whole thread is a great example of the developer vs. user convenience trade-off.

A single, pre-compiled binary is convenient for the user's first install only.

replies(4): >>44378569 #>>44378838 #>>44378969 #>>44385939 #
MobiusHorizons ◴[] No.44378838[source]
How so? Doesn’t it also make updates pretty easy? Have the precompiled binary know how to download the new version. Sure there are considerations for backing up the old version, but it’s not much work, and frees you up from being tied to one specific ecosystem
replies(1): >>44384739 #
1. wiseowise ◴[] No.44384739[source]
No, it doesn’t. At work everything is locked down and you either need to have separate mechanism to deliver updates or use pip.
replies(1): >>44385949 #
2. berkes ◴[] No.44385949[source]
That's not an argument against the difficulty of "updating a binary file" vs "updating via pip", it's merely addressing what your work deems important and possible.

(Aside from the fact that allowing "use pip" completely defeats the purpose of any other of these mechanisms, so it's a poster-child example of security-theater)