• Top
  • New

Python 3.14 Getting New Interpreter

by alexfromapex on 2/10/2025, 12:54:51 PM with 22 comments
  • by haberman on 2/10/2025, 6:35:30 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 madspindel on 2/10/2025, 4:27:29 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 codr7 on 2/10/2025, 1:27:48 PM

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

  • by ninetyninenine on 2/12/2025, 11:58: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 theandrewbailey on 2/10/2025, 1:18:32 PM

    Pi-thon.