Re:The origins of Objective-C at PPI/Stepstone and its evolu...
by gdubs on Sunday June 14, 2020 @01:04PM
(#23519324)
Indeed; reference counting was one of the most important aspects of Objective-C. Probably the most difficult aspect of it was that while most of the time method names have hints as to what increased a reference count, it wasn’t always obvious. And then, of course, you had Core Foundation functions which could be tricky to grok in terms of memory.
Re:The origins of Objective-C at PPI/Stepstone and its evolu...
by asveikau on Sunday June 14, 2020 @04:56PM
(#23521298)
> As far as I can tell, the idea of (explicit) reference counting came from Next,
Maybe in objc, but in the general case I kinda doubt this. It's a very common pattern in kernel development as an example, haven't done any archeology here but I have seen it in codebases rooted in the 80s at latest, probably earlier. (Did original Unix reference count file objects in the FD table the same way a modern kernel would? Would not be surprised if yes.)
Autorelease is pretty unique though and clever.
Re:The origins of Objective-C at PPI/Stepstone and its evolu...
by pmcjones on Monday June 15, 2020 @03:41PM
(#23532036)
I believe this is the first paper to describe reference counting:
George E. Collins. A method for overlapping and erasure of lists. Commun. ACM 3, 12 (Dec. 1960), 655–657. https://doi.org/10.1145/367487.367501
In summary, a terrific paper, but it is too bad that this crucial part of the story is missing.