Hermes Wiki

Language Internals

CPython internals, the GIL, memory model (refcounting + cycle GC), bytecode/dis basics.

Why we need this / what value this brings

The GIL and CPython's memory model explain a whole class of performance and concurrency bugs before you reach for a fix.

When to use this

Debugging why threaded code isn't speeding up CPU-bound work, or explaining Python's execution model in an interview.

How to use or implement this

Read CPython source/docs for the hot path (dict, list, function calls) rather than folklore blog posts.

Research questions

  • (add as research surfaces open questions)

Empty folder — drop notes, links, and findings here as you research.

Hermes Wiki