Episode 8: The New Parser
core.py1 Mars 2024

Episode 8: The New Parser

The suspense was killing us! OK, the old parser was then... but what about NOW? We're finally answering this question... in more detail than you dared to ask for. PEG, memoization, funky secrets, and how a certain auto-formatter self-inflicted an existential crisis on itself. It's all there, told in barely 100 minutes! Can you believe it?


# Timestamps


(00:00:00)  INTRO

(00:00:54)  PART 1: What even is PEG?

(00:04:02)  You can't prove anything!

(00:05:03)  What's a "parsing expression"?

(00:08:23)  Our old LL1 parser wasn't doing its job

(00:09:37)  "Soft keywords" in LL1: A Horror Story

(00:13:16)  PART 2: How PEG was adopted by Python

(00:17:10)  Why not LALR?

(00:22:11)  The PEG paper wasn't enough either, if we're honest

(00:26:26)  Less obvious advantages of the new parser

(00:31:28)  Black is stuck with LL1, can it cope?

(00:36:24)  Hedging against Łukasz, the bringer of doom

(00:41:14)  PART 3: How does the PEG parser of CPython work?

(00:44:30)  Pedantic Pablo on "exponential"

(00:45:14)  Fresh news from literally yesterday last week

(00:46:39)  Pedantic Pablo on "infinite"

(00:47:32)  Memoization in the PEG parser

(00:50:41)  Parse once, and if it fails, try again!

(00:52:14)  How to model a grammar of programming mistakes?

(00:56:36)  Why is there C code in my grammar file?

(00:59:57)  Bro, do you even lift?

(01:01:45)  How soft keywords work today: it's not free lunch

(01:04:29)  Funky grammar secrets

(01:09:07)  PART 4: PR OF THE WEEK

(01:09:15)  audioop.c license shenanigans

(01:14:56)  The secret profiler inside CPython (tests)

(01:22:45)  PART 5: WHAT'S GOING ON IN CPYTHON?

(01:23:30)  Free-threading changes

(01:28:15)  Faster Python changes

(01:35:39)  End of an era: docs get rid of Python 2 migration info

(01:36:45)  Python --help output is now nicer

(01:38:43) SQLite as a dbm backend

(01:41:08)  OUTRO

Det här avsnittet är hämtat från ett öppet RSS-flöde och publiceras inte av Podme. Det kan innehålla reklam.

Avsnitt(30)

Episode 29: Is CPython developed with AI now?

Episode 29: Is CPython developed with AI now?

Let's talk about what it really means in practice that AI tools are used in the cpython GitHub repository now. First-hand opinions based on first-party experience. And some personal news!## Timestamps...

17 Apr 2h 9min

Episode 28: 2025 In Review

Episode 28: 2025 In Review

Let's take a breather from heavy content and take a look back at last year in this light but spicy episode! The good, the less good, and the disgusting. All that in barely an hour!## Timestamps(00:00:...

3 Jan 1h 16min

Episode 27: Calling Things, Part 1

Episode 27: Calling Things, Part 1

Inside of you there are two stacks. Actually, there’s three. The system-level call stack, the CPython call stack, and the interpreter’s evaluation stack. What is all that about? Today we’ll talk about...

7 Dec 20252h 5min

Episode 26.2: CPython Sprint Week in Cambridge UK, Part 2

Episode 26.2: CPython Sprint Week in Cambridge UK, Part 2

More interviews from the core sprint! This time we have: Greg P. Smith, Thomas Wouters, Paul Ganssle, Pradyun Gedam, Carol Willing, Guido van Rossum, Brett Cannon, Erlend Aasland, Tal Einat, Lysandros...

25 Okt 20252h 18min

Episode 26.1: CPython Sprint Week in Cambridge UK, Part 1

Episode 26.1: CPython Sprint Week in Cambridge UK, Part 1

What? What do you mean this two-and-a-half hour episode is PART 1? Well, there were fifty people at the sprint in September. We interviewed thirty of them. In Part 1 you can hear from 18 of them: Ken ...

15 Okt 20252h 24min

Episode 25: A Python That Never Was

Episode 25: A Python That Never Was

What if some rejected PEPs were actually accepted? How would Python look today? Let's go through 10 PEPs from the past and imagine an alternative future for the language!## Timestamps(00:00:00) INTRO(...

26 Aug 20252h 1min

The Megahertz

The Megahertz

Python 3.14? That's old news. Let's talk about the first big feature of Python 3.15 -- a built-in sampling profiler for Linux, macOS, and Windows. We also cover improvements in perf support, discuss m...

12 Juli 20251h 42min

PyCon US 2025 Recap

PyCon US 2025 Recap

We’ve been gone a while. Here’s our excuse for being silent for a month: PyCon, PyCon, something something security. Come listen to how the conference looked like from our perspective! And whatever yo...

13 Juni 20251h 36min

Populärt inom Politik & nyheter

aftonbladet-krim
svenska-fall
tv4-nyheterna-story
p3-krim
rss-krimstad
motiv
de-fyras-gang
aftonbladet-daily
flashback-forever
spar
rss-expressen-dok
rss-sanning-konsekvens
politiken
rss-vad-fan-hande
krimmagasinet
rss-krimreportrarna
kungligt
svd-dokumentara-berattelser-2
olyckan-inifran
rss-flodet