hackertube.io

Understanding the Python GIL

David Beazley · talk · Watch on YouTube

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

  1. “My favorite example is Beazley's GIL talk”

    Deeply understood code explained to audience

    famousactress, 2014-01 · Strong recommendation · in “Code is not Literature”

  2. “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)”

  3. “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”

  4. “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