Hacker News new | ask | show | jobs
by KerrAvon 207 days ago
Swift, by design, does not have GC.
2 comments

Chapter 5,

https://gchandbook.org/contents.html

It would help if all naysayers had their CS skills up to date.

RC is a GC method and the least efficient one.
It's the most predictable and has much less overhead than a moving collector.
Only when we forget about the impact of cycle collections, or domino effects stoping the world when there is a cascade of counters reaching zero.

The optimisatios needed to improve such scenarions, are akin to a poor man's tracing GC implementation.

I didn't forget. That's predictable. It happens when the application code does something, or stops doing something, as opposed to the moving collector just doing it at random times.