Building a new tail-calling interpreter for Python

Talk Python Core, Internals, Extensions Advanced 30 min

Speakers

Abstract

CPython (the reference implementation of Python) comes with two types of interpreters. One interpreter is based on the traditional switch-case in C, while the other one uses a fancy feature called computed gotos. In this talk, I'll cover how I am implementing a new type of interpreter for CPython --- one based on tail calls. Preliminary benchmarks for this new interpreter suggest up to a 7% performance improvement on Python-heavy programs, with significantly better external debugging experience. This interpreter is already a part of Python 3.14.

When & Where

Forum Hall 2025-07-17T11:25:00+02:00

LET'S CONNECT

Want to collaborate or contribute? We're open to partnership opportunities and would love to hear your ideas.

Newsletter

Get the latest updates, speaker announcements, and special deals. No spam, unsubscribe anytime.