A Tail Calling Interpreter for Python (already landed in CPython)

The author reflects on the impact of their previous article on creating fast interpreters using tail calls and the musttail attribute, particularly in Protocol Buffer parsers and VM interpreters. They highlight recent achievements such as a tail call interpreter being merged into Python 3.14, boasting a 9-15% improvement in performance. They further discuss an experimental project called Deegen that uses tail calls for interpreters but criticizes C and C++ limitations in achieving optimal performance. The article also covers enhancements in calling conventions like preserve_none and preserve_most in Clang to optimize register usage, as well as the proposal of adding guaranteed tail calls to the C standard.

https://blog.reverberate.org/2025/02/10/tail-call-updates.html

To top