Talk:Automatic Reference Counting
|WikiProject Apple Inc. / iOS / Macintosh||(Rated Start-class, Low-importance)|
Reference counting not garbage collection?
The page states that
ARC is not the same thing as garbage collection, as there is no background process doing the deallocation of objects. Unlike garbage collection, ARC does not handle reference cycles automatically; it is up to the programmer to break cycles using weak references.
which goes against the article for garbage collection that lists reference counting as a form of garbage collection and explicitly mentions Objective-C's ARC
Objective-C has not traditionally had it, but Objective-C 2.0 as implemented by Apple for Mac OS X used a runtime collector developed in-house, which was deprecated by LLVM's automatic reference counter, a compile-time garbage collector.
and in my experience, reference counting is generally still considered a form of garbage colelction. I'm not familiar with editing wikipedia, the process of disputing arguable definitions like this, and I don't have any references to back it up so I'm not going to do anything more, but I thought it was worth documenting the inconsistency.
I have edited the article to clarify that it is not the same as Cocoa's garbage collection. This allows the article to contrast the different Apple technologies for memory management - which I think is the useful part - while sidestepping the question of whether ARC is a form of garbage collection or not, which I think is better handled by the main reference counting and garbage collection articles. AJanuary (talk) 12:12, 9 June 2014 (UTC)
Hello fellow Wikipedians,
I have just modified one external link on Automatic Reference Counting. Please take a moment to review my edit. If you have any questions, or need the bot to ignore the links, or the page altogether, please visit this simple FaQ for additional information. I made the following changes:
- Added archive https://web.archive.org/web/20120820002015/http://developer.apple.com:80/library/ios/documentation/DeveloperTools/Conceptual/WhatsNewXcode/Articles/xcode_4_2.html to https://developer.apple.com/library/ios/documentation/DeveloperTools/Conceptual/WhatsNewXcode/Articles/xcode_4_2.html#//apple_ref/doc/uid/00200-SW2
When you have finished reviewing my changes, please set the checked parameter below to true or failed to let others know (documentation at
|checked=, on this template, to true or failed to let other editors know you reviewed the change. If you find any errors, please use the tools below to fix them or call an editor by setting
|needhelp= to your help request.
- If you found an error with any archives or the URLs themselves, you can fix them with this tool.
|needhelp=<your help request> on this template to request help from an experienced user. Please include details about your problem, to help other editors.