3 ms·
A team can learn and start using Golang in a week. That is in fact what is powering a lot of companies right now. Golang has even better memory safety guarantee
by jdefr89 2y ago
A team can learn and start using Golang in a week. That is in fact what is powering a lot of companies right now. Golang has even better memory safety guarantees than Rust and you don't really need to worry about memory management at all... Furthermore its compiled statically and more suitable for distribution and horizontal scaling. I am not sure how quickly a team can become productive in Rust but I am willing to bet that it would take way way longer to get off the ground. That being said, using an LLM might help with that but then you would still have code people don't understand and that becomes technical debt... Maybe I am just old and grumpy.. I am learning Rust myself and I just don't understand why it's being pushed so hard. I think Zig should be pushed for systems programming if anything..
- hmry 2y ago> Golang has even better memory safety guarantees than Rust I don't think that's true at all. For one, Go has data races, which lead to undefined behavior and memory corruption. For example, appending to the same slice from multiple threads will corrupt its metadata and can lead to out-of-bounds reads and writes.
- School-Cotton 2y ago> A team can learn and start using Golang in a week True, but why should we be optimizing for the first week experience? Your career lasts 40 years. > Golang has even better memory safety guarantees than Rust That is not true. What specific example did you have in mind? As an example of something Rust can enforce that Go can’t is not mutating something that’s shared between threads without acquiring the proper lock. > Furthermore its compiled statically and more suitable for distribution and horizontal scaling. Rust can be statically linked just like Go can. Not sure what else you think makes it less suitable for distribution and horizontal scaling. There are certainly lots of companies distributing Rust programs and horizontally scaling them so this seems empirically false. > I am learning Rust myself and I just don’t understand why it’s being pushed so hard. Because it has a lot of nice features that make a lot of people like it - memory safety without GC, prevention of data races, algebraic data types, etc. No other mainstream compiled languages has this set of features. There’s no conspiracy to “push” Rust. The push is organic. People just like it.
- jdefr89 2y agoThere is Zig and a couple others. Rust borrows those features from functional languages they aren’t new innovations by any means..
- School-Cotton 2y agoZig isn't really mainstream and I don't know of any functional languages without a garbage collector.
- 0x457 2y agoI bet you $5 any heavily utilized k8s cluster has at least one go service running and crashing because someone forgot to check for error.