2 ms·
> except the Go version is forcing you to use Arc everyone The overhead of atomic reference counts everywhere is higher than the overhead of a good garbage col
by yencabulator 4y ago
> except the Go version is forcing you to use Arc everyone
The overhead of atomic reference counts everywhere is higher than the overhead of a good garbage collector. This thinking is biased against Go for no reason.
- 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.