News for hackers. Stuff that matters.
Re:Projects for Old Versions of OS X by grishka on Friday April 29, 2022 @03:27PM (#31209631)
> Behind the scenes, Lion is when Apple introduced Automatic Reference Counting.

Hm. I've never written anything serious for Apple platforms but of course played around for a bit. But, I've always assumed ARC is implemented purely in the compiler, isn't it? I remember disassembling something I wrote and learning that the compiler inserted retain/release calls as necessary.

> Which is why I run Mavericks.

Actually, I ran Mavericks for several years after it was superseded. I was made fun of by some people (who complained about glitchy WiFi on Yosemite, lol). Had to finally update when I got a new job and needed to compile an iOS app, which required latest Xcode, which required latest macOS. Then I stayed on Mojave for like 2 more years, refusing to update to Catalina to keep using 32-bit apps. And then several months ago I bought an M1 Max MacBook, which means Monterey.

Re:Projects for Old Versions of OS X by Wowfunhappy on Friday April 29, 2022 @06:54PM (#31211535)
I don't really understand how ARC works, but I can tell you it's tied into the OS somehow.

ARC does partially work on Snow Leopard, but only for 64-bit, and it's limited (namely, you can't use weak references).