Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

> I think Apple declared GCs "bad" anyway.

Correction, Apple failed to implement a working GC, given the constraints on Objective-C semantics. It was a conservative GC and still it borked when mixing libraries not compiled the same way.

So they made a sensible option of having the compiler insert the retain/release method calls that Objective-C developers would need to do manually.

This only covers framework code or objects that follow Cocoa semantics, everything else is manual.

Swift, being binary compatible with the Objective-C runtime, needs to make use of the same memory model.



Consider applying for YC's Summer 2026 batch! Applications are open till May 4

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: