12 Comments
Aug 29, 2023·edited Aug 29, 2023Liked by Abhinav Upadhyay

Thank you for this amazing article. Although it was a bit beyond my scope to understand CPython's internal code, it was still an amazing read about reference counting. I am looking forward to an article about the Garbage Collector.

Expand full comment

I’m definitely looking forward to the GC companion to this article...

Expand full comment

> In the case of CPython, it employs two techniques for managing memory: reference counting and garbage collection.

I'd say that CPython's primary method for memory management is through manual 'malloc' and 'alloc' functions. Its secondary method is garbage collection. Reference counting is only useful for garbage collection.

Expand full comment

This is great, please write more! )

Expand full comment