Hacker News new | ask | show | jobs
by Gualdrapo 658 days ago
How come so many people is writing cli programs in Go? What happened to C?
5 comments

At least for SSH apps that run TUI programs the answer is obvious: golang implements the SSH protocol as a library. It is probably one of the greatest features of the stdlib.

We're building a lot of SSH apps over at https://pico.sh

Golang was conceived to address the rough edges people found using C, so I guess working as intended?
Nowadays I guess interactive ones are easier on Python or Go, and super fast ones (ripgrep, fzf) in Rust or Zig.
It's pretty funny that your preconceptions led you to believe fzf was written in Rust or Zig.
Hah great point..
Honestly I thought it was too, and I mostly write Go.
fzf is written in Go, isn't it?
Yes, fzf is a Go program.
Charm provides an excellent suite of tools for building TUIs; bubble tea is only one of them. It’s gotten me interested in building CLI programs, as an anecdote.
curses is well... curses. i try rust now. might also try go, then when those fail go back to C :D