Remix.run Logo
shakna 3 days ago

Maybe not how you were brought up, and people argue... But Watson & Watson, back in '87, described ref counting as "An efficient garbage collection scheme for parallel computer architectures".

Even the dragon book refers to ref counting as a form of garbage collection.

Line 2 of Ref counting's Wikipedia page refers to garbage collection.

People have argued since the invention in 1960, but... Ref counting is one form of GC. [0] It might not be a tracing GC, but it is GC.

[0] https://dl.acm.org/doi/10.1145/367487.367501