Re:Chris Lattner on garbage collection vs. Automatic Referen...
by pizlonator on Saturday April 23, 2022 @10:08PM
(#31140638)
ARC makes ref counting a part of semantics in the sense that the deref that reaches zero immediately runs the destructor, and destructors can have any effects they like.
Therefore, it’s not really valid to say that ARC “is” garbage collection.
Reference counting is only a form of garbage collection if it is totally transparent to the programmer, and it’s not like that in ARC.
Re:Chris Lattner on garbage collection vs. Automatic Referen...
by pjmlp on Sunday April 24, 2022 @11:07AM
(#31144735)
Which is why when Apple introduced new ARC optimizations last year, they had a talk about possible gotchas that might crash the application due to them.
Therefore, it’s not really valid to say that ARC “is” garbage collection.
Reference counting is only a form of garbage collection if it is totally transparent to the programmer, and it’s not like that in ARC.