notes
scratchpad · phemantics.xyz
Python concurrency · the series
-
01 The GIL is Not Your Enemy
Refcounting, the 5ms handoff, and what the lock actually protects.
-
02 The Loop is the Trick
epoll, coroutines,
_run_once, and the Task spine that drives them.
-
03 Asyncio Sidequests
The self-pipe, signals, debug mode,
asyncio.run, contextvars, uvloop.
-
04 Two Ways to Cancel
anyio, checkpoints, and the protocols
await is made of.
-
05 Servers, in Earnest
Putting the loop to work behind a real request-serving stack.
Python concurrency · standalones
DSA · stock span