4 ms·
When people say GC in computer science, they don’t typically mean reference counting. Reference counting is an automatic memory management scheme along side GC,
by seanmcdirmid 8y ago
When people say GC in computer science, they don’t typically mean reference counting. Reference counting is an automatic memory management scheme along side GC, not inside it. One way to think of it is that if it lacks a separate GC phase and can’t deal with cycles, it isn’t GC.
- pjmlp 8y agoNah, that is mixing GC with tracing GC, because it is too much to type/say an additional word. Lay people also use wrong terms when talking about other scientific fields, that doesn't make them right by quantity of use.
- seanmcdirmid 8y agoI don’t think McCarthy had reference counting in mind when he coined the word garbage collection. I think it’s more likely that people say garbage collection when they actually mean the more general term of automatic memory management. No one would ever mistake arena based memory management as a form of garbage collection, for example, even though it is obviously a form of automatic memory management.