4 ms·
Why use Go when you can use Rust?
by shepherdjerred 5mo ago
Why use Go when you can use Rust?
- Alejandro2026 5mo agowhy,i have same question
- bionhoward 5mo agoI’m heavy into rust and never really use golang, but one big benefit of go over rust is compile times are significantly quicker, which could be more fun if you’re running CI checks 50 billion times
- coldtea 5mo ago>which could be more fun if you’re running CI checks 50 billion times Even running them 5 times it's WAY more fun
- Aerroon 5mo agoDoesn't Rust have long compile times? Does Go suffer from the same problem?
- bfung 5mo ago1. Amount of Rust training data isn’t as much as Go. 2. Golang syntax and style is very verbose yet simple. There’s not as many options nor programming language to domain mapping needed as in Rust. Leads to needing less sophisticated LLM to spit out Golang than Rust successfully and efficiently.
- adastra22 5mo agoThis must really depend on your niche. I assume you do web stuff or something? Good luck finding any golang examples in a lot of other fields. Rust, on the other hand, is taking over the world in systems programming.
- coldtea 5mo ago>Good luck finding any golang examples in a lot of other fields. There are go examples (and full blown programs) for anything, from servers to Kubernetes and Docker.
- krilcebre 5mo agoBeen reading and drinking that kool-aid for some time until I realized it's just an internet bubble mumbo jumbo. Majority of systems are still written in C and C++, and will be for unforeseeable future.
- benjiro3000 5mo ago[dead]
- bfung 5mo agoJust reporting what I’ve experienced. No need to go with the ad hominem attack. I happen to lead a team with a major Rust infra project and I stand by the experience with usage across all the LLM models.
- adastra22 5mo ago
- bensyverson 5mo agoIn short, compile times and a more full-featured stdlib
- DeathArrow 5mo agoBecause LLMs are better at Go? And because some people understand Go code easier and they might want to look at the code?
- up2isomorphism 5mo agowhy use Rust when you can use Zig?
- 2ndorderthought 5mo agoWhy use zig when you can use odin?
- benjiro3000 5mo ago[dead]
- wiseowise 5mo agoSo I can test my feature today instead of waiting until it finishes compiling tomorrow.
- baq 5mo agothis is the top reason for a reasonably complex project, but it can be worked around by preplanning crates. the other reason is if you really want async as is in vogue nowadays, function coloring - but this is rapidly becoming irrelevant, see article.
- wiseowise 5mo ago> but it can be worked around by preplanning crates. Maybe if you're working alone.