Giovanni Barillari
Physicist, software developer, SRE, OSS maintainer. Photography passionated. In love with radical honesty.
Session
07-15
13:50
30min
Rethinking AsyncIO from scratch for free-threaded Python
Giovanni Barillari
AsyncIO was designed with the Global Interpreter Lock (GIL) in mind: the event loop runs all of your async in a single thread, regardless of the GIL presence. Projects like trio focused on better ergonomics, but with a noticeable disadvantage in performance.
What if we can have both?
In this talk we’ll explore an alternative approach to async code in Python, redesigning the whole thing from the ground up, looking at what it takes – spoiler: way less than you think – to have simpler interfaces and multi-threaded support from day zero in a single package: TonIO.
Python Core, Internals, Extensions
Auditorium Hall (S1)