Understanding the Python GIL
What it is
David Beazley's PyCon 2010 talk explains how the Python Global Interpreter Lock works and shows experiments where multithreaded code runs slower, even on more cores, due to lock contention and context-switching overhead.
Why Hacker News recommends it
The canonical recommendation for understanding the GIL, praised both for its clarity and for how well it explains a deep technical topic.
- 4 people recommended it
- 4 different months
- 1 strong recommendations
- first 2013, last 2023
What HN commenters said
“My favorite example is Beazley's GIL talk”
Deeply understood code explained to audience
famousactress, 2014-01 · Strong recommendation · in “Code is not Literature”
“David Beazley does a good job on explaining the GIL.”
David Beazley explains the GIL well
Luyt, 2013-06 · Recommendation · in “Python's Hardest Problem (2012)”
“here's one of the famous ones on GIL.”
Famous GIL talk, mind-bending
devxpy, 2018-07 · Recommendation · in “Code with Mu: a simple Python editor for beginner programmers”
“David Beazley does a much better illustrating the nuances than I ever could”
Illustrates GIL thrashing and degradation with more cores
gshulegaard, 2022-08 · Recommendation · in “How to choose the right Python concurrency API”
Excerpts from Hacker News comments, linked to the originals. Summaries and labels were written by a language model from those comments.
Topics: python, gil, concurrency, threading, david beazley, performance
Also recommended by the same people
talkLarry Hastings - Removing Python's GIL: The Gilectomy - PyCon 2016PyCon 2016 · 5 HN recommenders · 2016–2023
talkWhat the heck is the event loop anyway? | Philip Roberts | JSConf EUJSConf · 16 HN recommenders · 2015–2025
tutorialBuild Your Own AsyncDavid Beazley · 4 HN recommenders · 2020–2023
talkRuby Conf 12 - Y Not- Adventures in Functional Programming by Jim WeirichConfreaks · 17 HN recommenders · 2013–2026
lectureThe spelled-out intro to neural networks and backpropagation: building microgradAndrej Karpathy · 17 HN recommenders · 2022–2025
talkHow Python was Shaped by leaky Internals, Armin Ronacher, Flask frameworkВидео с мероприятий {speach! · 15 HN recommenders · 2017–2025
talkRailsConf 2014 - All the Little Things by Sandi MetzConfreaks · 15 HN recommenders · 2015–2025
talkHow To Design A Good API and Why it MattersGoogle TechTalks · 12 HN recommenders · 2011–2025