Hacker News new | ask | show | jobs
by weberc2 2606 days ago
Python is also a GC’d language...
1 comments

CPython is mostly reference-counted.
With a synchronous garbage collector for cycles. Which is like the worst of both worlds, since you get the constant overhead of refcounting, plus unpredictable interruptions of unspecified duration that can happen every time a new object that might contain references to other objects is created.

To be fair, the GC can be disabled. But it's only safe to do so when you know there are no cycles, and even when such guarantee can be had for your own code, I've never seen a library guarantee that to API clients.

And reference counting is a form of GC