Python 3.14 Getting New Interpreter

by alexfromapexon 2/10/2025, 12:54 PMwith 22 comments

by habermanon 2/10/2025, 6:35 PM

I blogged about this: https://blog.reverberate.org/2025/02/10/tail-call-updates.ht...

It uses a technique I published several years ago for writing fast interpreters with tail calls: https://blog.reverberate.org/2021/04/21/musttail-efficient-i...

There is also this tweet from the author: https://x.com/kenjin4096/status/1887935698906529903

by madspindelon 2/10/2025, 4:27 PM

> Preliminary numbers on our machines suggest anywhere from -3% to 30% faster Python code, and a geometric mean of 9-15% faster on pyperformance depending on platform and architecture.

Nice!

by codr7on 2/10/2025, 1:27 PM

I get the feeling that Python is finally reaching the critical mass needed to significantly improve performance, good times.

by ninetyninenineon 2/12/2025, 11:58 AM

They didn’t add tail calls for the longest time because it blows the stack and makes it harder to debug when stepping through code. Maybe they should make a keyword in Python to explicitly enable tail call recursion when it’s needed.

by theandrewbaileyon 2/10/2025, 1:18 PM

Pi-thon.