logoalt Hacker News

vbezhenar • today at 2:57 AM • 1 reply • view on HN

C was and is a good choice for that kind of software. I don't understand the prevalence of Go in these tools.


Replies

crote • today at 3:44 AM

Easy: far few footguns.

Performance is basically irrelevant because you're not really interacting with the running application. You're running as root, so security-critical. You're talking to the internet for things like fetching images. You need rather complicated business logic to deal with all the possible options, protocols, and file formats.

Sure, you could do it in C, but dealing with dependencies is a major PITA and you're permanently one tiny mistake away from getting pwned, while not needing any of C's strengths. Go is safe, easy to write, and ships as a single batteries-included binary: what's not to like?

➕ show 1 reply