3 ms·
I doubt that you'll write a large Rust program without relying on refcounting at least for some of your objects. Refcounting is not fundamentally different than
by adrianN 6y ago
I doubt that you'll write a large Rust program without relying on refcounting at least for some of your objects. Refcounting is not fundamentally different than a GC.
- zozbot234 6y agoReference counting is a kind of garbage collection (taken broadly), but it's quite different from tracing GC.
- jashmatthews 6y agoNaive use of RC doesn't look like tracing much but as soon as you need cycle-aware RC like the CactusRef the algo looks a lot like tracing GC https://github.com/artichoke/cactusref#cycle-detection https://github.com/artichoke/cactusref#cycle-detection