News for hackers. Stuff that matters.
Re:Garbage Collection is Wrong by danbruc on Thursday February 27, 2014 @05:35PM (#7315738)
But you don't know which reference is the last until you actually get there - that is why you used reference counting in the first place, because you were unable to statically determine which reference will be the last one. So every time you abandon a reference it might be the last one and you might have to spend extra cycles to free the resource. This is no more deterministic than a garbage collector.
Re:Garbage Collection is Wrong by letzjuc on Thursday February 27, 2014 @08:55PM (#7316753)
In a non-deterministic garbage collector memory _might not_ be released when the last reference goes out of scope (and this is often the case).