News for hackers. Stuff that matters.
Re:Welcome Chris Lattner by pjmlp on Wednesday January 11, 2017 @01:52AM (#13372264)
ARC is automatic memory management.

"The Garbage Collection Handbook", chapter 5

http://gchandbook.org/

Re:Welcome Chris Lattner by devsquid on Wednesday January 11, 2017 @02:06AM (#13372314)
Yup but people love to argue over the small shit. Chris Lattner even refers to ARC as a form of GC.
Re:Welcome Chris Lattner by hamstergene on Wednesday January 11, 2017 @04:23AM (#13372762)
Different approaches to memory management differ in extent of how much of programmer's job they automate.

Garbage collectors are fully automatic and rarely if ever require to mind anything; automatic RC does almost everything but requires programmer to analyze and annotate some things as 'weak'; manual RC requires a lot more programmer's effort while still technically being "automatic"; and manual memory management means the programmer does everything.

Automatic/manual is a scale, not a boolean yes/no, and the point is that ARC lies on it a bit closer to manual than garbage collectors.

Re:Welcome Chris Lattner by pjmlp on Wednesday January 11, 2017 @05:17AM (#13372936)
The thing is, ARC is a garbage collection algorithm.

There isn't anything like ARC vs GC, that is layman knowledge and just wrong from CS point of view.

Re:Welcome Chris Lattner by hamstergene on Wednesday January 11, 2017 @06:52AM (#13373290)
ARC is not an algorithm, it a language-level feature that generates retain/release calls automatically so that the programmer does not have to. Unlike GC systems where the resulting program does run an algorithm (and wastes CPU on that), with ARC the generated program is no different as if retain/release were written manually and runs no extra code.
Re:Welcome Chris Lattner by pjmlp on Wednesday January 11, 2017 @07:06AM (#13373348)
That is an implementation detail of how a reference counting algorithm can be implemented.
Re:Welcome Chris Lattner by jblow on Thursday January 12, 2017 @02:37AM (#13380513)
If you're going to say that, then hand-coded memory allocation is just an implementation detail for a garbage collection algorithm.

True in some sense, but mostly useless. Come on.