3 ms·
It doesn't work nearly as well. ARC doesn't handle cycles at all, which makes it substantially more painful to use than a garbage collector. Don't get me wrong.
by mikeash 14y ago
It doesn't work nearly as well. ARC doesn't handle cycles at all, which makes it substantially more painful to use than a garbage collector. Don't get me wrong. ARC is great compared to the previous situation, but it's simply not a substitute for a real GC.
Automatic reference counting dates back to probably the 1950s. If it "works just as well" as garbage collection, don't you think it would have won by now?
- seanmcdirmid 14y agoOne day a student came to Moon and said, "I understand how to make a better garbage collector. We must keep a reference count of the pointers to each cons." Moon patiently told the student the following story - "One day a student came to Moon and said, "I understand how to make a better garbage collector... http://www.csd.uwo.ca/staff/magi/personal/humour/Computer_Folklore/The%20Garbage%20Collection%20Koan.html http://www.csd.uwo.ca/staff/magi/personal/humour/Computer_Fo...
- mikeash 14y agoThis makes me paranoid that you can read my thoughts.
- seanmcdirmid 14y agoWhy? The garbage collection koan is common knowledge among compiler and PL people, I just took some initiative.
- mikeash 14y agoIt's a joking way to indicate that this is exactly what I was thinking of when I wrote my comment.