2 ms·
>[1] I know that this is a simplification. I don't think it's biased against Go. The an `Arc` (or garbage collector) is the correct way to model lifetimes for
by nemothekid 4y ago
>[1] I know that this is a simplification.
I don't think it's biased against Go. The an `Arc` (or garbage collector) is the correct way to model lifetimes for complex programs whose lifetimes are managed at runtime rather than compile time. In the context of both languages, rarely is overhead of an atomic add or GC going to be the limiting factor of your programs, just like Java programs are efficient. While static memory management is nice, it's not the sole reason I continue to use Rust. I've been using Go since 1.0, and there are two times where I have ever thought "My program is slow because of GC", and in one of those times, it was solved by simply upgrading Go.