Re:Moving from TypeScript to Rust / WebAssembly
by adrianN on Thursday July 09, 2020 @04:15AM
(#23778042)
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.
[ Parent
| on HN ]
Re:Moving from TypeScript to Rust / WebAssembly
by zozbot234 on Thursday July 09, 2020 @05:32AM
(#23778437)
Reference counting is a kind of garbage collection (taken broadly), but it's quite different from tracing GC.
Re:Moving from TypeScript to Rust / WebAssembly
by jashmatthews on Thursday July 09, 2020 @06:24AM
(#23778664)
Naive 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