Python 3.13's new JIT and no-GIL modes

Поделиться
HTML-код
  • Опубликовано: 22 май 2024
  • Python 3.13 provides early access to some groundbreaking new features in CPython, the default Python interpreter. A new JIT can enable speedups in "hot spots" in Python code, by selectively replacing generic instructions with specialized versions and by using a new second-stage bytecode - without having to rewrite any existing Python code. And the new "free-threaded", or "no-GIL" build, lets Python threads run with true parallelism.
    However, none of these features are enabled by default yet. To use them, you need to build a custom edition of the Python interpreter. In this video, we've done just that, and we show some examples of where both of these new features add real value to Python.
    Twitter: @syegulalp
    LinkedIn: / serdar-yegulalp-136a483
    -----------------------------­---
    SUBSCRIBE: ruclips.net/user/subscription_c...
    FACEBOOK: / infoworld
    TWITTER: / infoworld
    WEBSITE: www.infoworld.com/

Комментарии • 9

  • @felixfourcolor

    I believe Fedora 41 will ship Python with the JIT, but disabled by default (can be turned on via command line argument). I don't think any distro will ship free-threading though.

  • @teawithoutdonuts31

    The question I eant answered is how will this affect ASGI and WSGI web frameworks.

  • @sdmagic

    Very nicely done.

  • @alexandermorgan5869

    Great video! Are there any instructions on how to build these two different versions of python 3.13?

  • @OmarHashimOAD

    I enjoy your content; keep up the great work!