Hacker News new | ask | show | jobs
by nivenhuh 889 days ago
I think you mean automatic reference counting (ARC) — and ARC happens at compile time as part of a static analysis pass. (The compiler is basically adding retain/release code for you.)

At runtime, it’s functionally close(ish) to malloc/free and doesn’t carry much overhead.

1 comments

In my understanding, it’s both: you’re right about Automatic Reference Counting (ARC) being a compile time pass. But the reference counts that they use for said retain/release are atomic reference counted (ARC).

ARC certainly helps ARC be more performant than ARC without ARC due to the elided traffic on the count. (lol)

TIL ARC does ARC.
My professor who taught me undergraduate algebra once said: sometimes you have to repeat a sentence out loud to _really_ convince yourself of it.
This guy ARCs