Home Lex Fridman Notes
Lex Fridman · 2022-11-26 · 3h 15m

Guido van Rossum: Python and the Future of Programming | Lex Fridman Podcast #341

Python's creator Guido van Rossum on why Python 3.11 got faster, static typing, the GIL, and programming as a social, evolutionary craft.

Guido van Rossum: Python and the Future of Programming | Lex Fridman Podcast #341
The guest

Guido van Rossum — Creator of the Python programming language and its former Benevolent Dictator For Life (BDFL). A veteran software engineer who has worked at Google, Dropbox, and Microsoft.

The gist

Lex Fridman and Guido van Rossum dig into the internals of CPython and how Python 3.11 achieved 10-60% speedups through an adaptive specializing interpreter rather than a JIT compiler. They explore Python's design philosophy (readability, indentation over braces), the history and future of static typing via type hints and mypy, and the long-running debate over concurrency, async IO, and the Global Interpreter Lock. The conversation also covers why Python became the dominant language for machine learning and data science, lessons from Guido's time as BDFL, and culture differences across Google, Dropbox, and Microsoft. It closes on a sweeping philosophical riff comparing software layers, DNA, cells, and human civilization as nested self-replicating systems.

Big reveals

  • Python 3.11's big speedup came not from a JIT compiler (as many expected) but from an adaptive specializing interpreter.
  • A Facebook engineer built a 'no-GIL' fork of CPython, opening a real path toward free threading.
  • Guido says he is personally not convinced removing the GIL is worth the performance and complexity hit; he likes the GIL as a 'Goldilocks point.'
  • If Python 4.0 ever happens, Guido envisions it breaking the C-extension binary interface (no-GIL) rather than changing Python syntax.
  • Guido admits he held onto the BDFL role too long and was extremely stressed before stepping down.
  • Guido reveals he uses GitHub Copilot every day, calling it a great dance partner despite being 'slightly wrong.'
  • Guido predicts Python will eventually become an invisible legacy layer, like mitochondria in biology.

Things worth remembering

  • Cited research: an average developer creates 70 bugs per 1,000 lines of code, and 15 of those reach customers.
  • Fixing a bug takes about 30 times longer than writing a line of code, and ~75% of a developer's time is spent debugging.
  • Python's four-space indentation standard was a compromise based on 1980s conventions and typical screen widths.
  • mypy, the original Python static type checker, was created by Finnish developer Jukka Lehtosalo; the name means 'my version of python.'
  • Facebook wrote its type checker (pyre) in OCaml; Google built pytype in Python; Microsoft made pyright.
  • CPython was originally written in about three months, with Guido cutting corners and borrowing ideas because he didn't expect success.
  • At Dropbox, Guido navigated a 5-million-line Python codebase.
  • Microsoft Excel is roughly 35 years old and can still read spreadsheets off old floppy disks.
  • Around the early 2000s it looked like Perl, not Python, might dominate bioscience thanks to its regex engine for DNA search.
  • The Hubble Space Telescope team in Baltimore were early big Python fans in the late 1990s, helping seed scientific Python.

Recommended in this episode

Books, products and media the guest or host genuinely endorsed here — with the buy link.

Affiliate link — we may earn a commission at no extra cost to you.

RecommendedProduct

Kinesis Advantage keyboard

Kinesis

“with the Kinesis it's right under the thumb so you don't have to actually move your hands... the Kinesis keyboard takes me to a place of focus” — Lex Fridman 00:36:11
Find it on Amazon
RecommendedProduct

GitHub Copilot

GitHub

“I use it every day and it really writes a lot of code for me and usually it's slightly wrong but it still saves me typing” — Guido van Rossum 03:02:36
Find it on Amazon
RecommendedProduct

Amazon Kindle

Amazon

“I've almost exclusively switched to Kindle now so ebook readers even though I still love and probably always will the smell the feel of a physical book” — Lex Fridman 01:48:21
Find it on Amazon