Hacker News new | ask | show | jobs
Visualizing Garbage Collection in Ruby and Python (blog.codeship.com)
11 points by jigneshhk 3983 days ago
1 comments

I don't like the conflating of implementations and languages, since it removes legitimacy of the alternate implementations. Please specify the runtimes.

> Whenever an object’s reference count reaches zero, Python immediately frees it, returning its memory to the operating system

CPython has its own allocator that steals memory into locally owned pools, so freeing memory won't normally actually free the memory. Plus, there's no guarantee the OS would get it back anyway.