News for hackers. Stuff that matters.
Re:Rewriting in Rust by ghusbands on Thursday August 20, 2026 @06:51AM (#49372891)
Refcounting is indeed a form of GC (and the languages that want to handle cycles then need an extra form of GC on top of it).
Re:Rewriting in Rust by frollogaston on Thursday August 20, 2026 @11:50AM (#49376321)
GC specifically means you leave unreferenced mem on the heap until it gets collected in one big sweep later.

ObjC/Swift are also their own special class of refcounting because it's done at compile time at least partially. Whereas spamming Rc/shared_ptr would do it always at runtime and be quite slow.

Re:Rewriting in Rust by ghusbands on Wednesday September 02, 2026 @06:27PM (#49543447)
You're referring specifically to tracing garbage collection. When a reference count reaches zero, that garbage is collected, often recursively. Among programming language designers, ARC is considered a GC strategy.

https://en.wikipedia.org/wiki/Garbage_collection_(computer_s...

https://users.rust-lang.org/t/reference-counting-garbage-col...