Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Python largely only gets away with ref counting because it doesn't support concurrent access. The GIL means it's basically single-threaded ref counting, which is much cheaper than an actual atomic ref count (like std::shared_ptr)

Scattering atomic ref counts everywhere gets extremely expensive very quickly.



Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: