Talk Python To Me · Michael Kennedy
How many cores does your machine have, 10, 18? Your async Python code uses just one of them. That isn't a bug in asyncio. That's the design, and optimizing event loops to be faster by 20% doesn't change it. So Giovanni Barillari started over. Joe is the creator of Granian, the Rust-based server that powers Talk Python. His new project is TonIO, an async runtime written from scratch for free-threaded Python. Real threads, a handful of primitives instead of asyncio's pile of them, and it flat out refuses to start if the GIL is on. Episode sponsors Sentry Error Monitoring, Code talkpython26 Python in Production Talk Python Courses Links from the show Guest Giovanni Barillari: github.com Granian: github.com Hyper: github.com Free threaded Python: docs.python.org Sort of: labs.quansight.org did a whole course: training.talkpython.fm uvloop: github.com rloop: github.com TonIO: github.com your EuroPython 2026 talk: www.youtube.com Michael's Cutting Python Web App Memory Over 31% Article: mkennedy.codes Watch this episode on YouTube: youtube.com Episode #561 deep-dive: talkpython.fm/561 Episode transcripts: talkpython.fm Theme Song: Developer Rap 🥁 Served in a Flask 🎸: talkpython.fm/flasksong ---== Don't be a stranger ==--- YouTube: youtube.com/@talkpython Bluesky: @talkpython.fm Mastodon: @[email protected] X.com: @talkpython Michael on Bluesky: @mkennedy.codes Michael on Mastodon: @[email protected] Michael on X.com: @mkennedy
0:00Michael KennedyHow many cores does your machine have?
0:02Michael Kennedy10?
0:02Michael Kennedy18?
0:03Michael KennedyWell, your async Python code uses just one of them.
0:07Michael KennedyThat isn't a bug in asyncio.
0:09Michael KennedyThat's the design.
0:10Michael KennedyAnd things like optimizing the event loops to be faster by maybe 20% with uv doesn't fundamentally
0:17Michael Kennedychange that.
0:17Michael KennedyThat's why Giovanni Bariliari started over.
0:21Michael KennedyJoe is the creator of Granian, the Rust-based server that powers Talk Python and all the
0:26Michael Kennedyother things we run here.
0:28Michael KennedyHis new project is Tone.io, an async runtime written from scratch specifically for free-threaded Python.
0:34Michael KennedyReal threads, a handful of primitives instead of async.io's pile of them,
0:38Michael Kennedyand it flat out refuses to even start if the GIL is present.
0:43Michael KennedyThis is Talk Python To Me, episode 561, recorded September 1st, 2026.