$ The Prompted Programmer

>>> notes from the command line to the cloud

Python 3.14 - Exploring GIL free code

12 min read

Last updated: 2025-10-21 12:05 IST

The GIL

Python has a global lock that has to be accessed by the current running thread as the interpreter is not fully thread safe. This is called the GIL or Global Interpreter Lock.

Since Python 3.13, the core developers of Python have been working on a free-thread implementation …

Slots and the Zen of Python

7 min read

Last updated: 2025-10-16 15:13 IST

This weekend, I gave a talk in BangPypers based on the content of the first two articles in this blog related to the memory footprint of Python objects and the optmization of the same.

After the talk, during the interactive sessions, an engineer asked me a very interestng question:

"Doesn't …

The memory footprint of Python objects

14 min read

Last updated: 2025-10-16 15:13 IST

Background

Of late, I was exploring Python again after a while and looking at how classes and instances keep state. Let us look at a simple example of a Python class.

class Person:
    def __init__(self, name, age, gender):
        self.name = name
        self.age = age
        self.gender = gender

Let me …

My First Prompt

1 min read

Last updated: 2025-09-30 18:29 IST

After a decade or so of procrastinating, I finally prompted myself to work on my first tech blog. You will see thoughts, content and knowledge from me shared on this platform on a regular basis from here on. Thanks for reading!