VOOZH about

URL: https://www.phoronix.com/news/Python-3.14-Beta-1

⇱ Python 3.14 Reaches Beta With New Tail-Call Interpreter For Better Performance - Phoronix


👁 Phoronix

Python 3.14 Reaches Beta With New Tail-Call Interpreter For Better Performance

Written by Michael Larabel in Programming on 7 May 2025 at 08:21 PM EDT. 10 Comments
Python 3.14 Beta 1 is now available in working toward this next major Python release due out in early October.

Most notable coming with Python 3.14 albeit in experimental form is the new tail-call interpreter with better performance. The Python 3.14 documentation describes the new interpreter as:
"A new type of interpreter has been added to CPython. It uses tail calls between small C functions that implement individual Python opcodes, rather than one large C case statement. For certain newer compilers, this interpreter provides significantly better performance. Preliminary numbers on our machines suggest anywhere up to 30% faster Python code, and a geometric mean of 3-5% faster on pyperformance depending on platform and architecture. The baseline is Python 3.14 built with Clang 19 without this new interpreter.

This interpreter currently only works with Clang 19 and newer on x86-64 and AArch64 architectures. However, we expect that a future release of GCC will support this as well.

This feature is opt-in for now. We highly recommend enabling profile-guided optimization with the new interpreter as it is the only configuration we have tested and can validate its improved performance. For further information on how to build Python, see --with-tail-call-interp."

Python 3.14 is also now deferring the evaluation of type annotations, support for template string literals "T-Strings" for custom string processing, a new Zstandard compression algorithm module, a zero-overhead external debugger interface for CPython, an improved C API for configuring Python, error message improvements, built-in HMAC implementation, and a variety of other changes.

👁 Python logo


Downloads and more information on today's Python 3.14 Beta 1 release via the Python Insider Blog.

At least three more beta releases of Python 3.14 are expected through July before getting to two release candidates and hopefully shipping Python 3.14 final in early October.

Michael Larabel is the principal author of Phoronix.com and founded the site in 2004 with a focus on enriching the Linux hardware experience. Michael has written more than 20,000 articles covering the state of Linux hardware support, Linux performance, graphics drivers, and other topics. Michael is also the lead developer of the Phoronix Test Suite, Phoromatic, and OpenBenchmarking.org automated benchmarking software. He can be followed via Twitter, LinkedIn, or contacted via MichaelLarabel.com.