Real Multithreading Is Coming to Python

This page summarizes the projects mentioned and recommended in the original post on news.ycombinator.com

Our great sponsors
  • WorkOS - The modern identity platform for B2B SaaS
  • InfluxDB - Power Real-Time Data Analytics at Scale
  • SaaSHub - Software Alternatives and Reviews
  • nogil

    Multithreaded Python without the GIL

  • Important to note that this is different from the nogil project ( https://github.com/colesbury/nogil ) - this is about the feature that's landing soon in Python 3.12 which will allow multiple Python sub-interpreters each with their own GIL - hence enabling Python code to run multi-threaded in the same process, albeit with a fair amount of extra work to co-ordinate between those different interpreters.

    The tutorial itself is fantastic - it's not an easy feature to try out right now but I got there by following the step-by-step instructions.

    Also interesting is this project, linked to from the end of the tutorial: https://github.com/jsbueno/extrainterpreters

    Posted my own set of short notes on my blog: https://simonwillison.net/2023/May/15/per-interpreter-gils/

  • extrainterpreters

    Utilities for using Python's PEP 554 subinterpreters

  • Important to note that this is different from the nogil project ( https://github.com/colesbury/nogil ) - this is about the feature that's landing soon in Python 3.12 which will allow multiple Python sub-interpreters each with their own GIL - hence enabling Python code to run multi-threaded in the same process, albeit with a fair amount of extra work to co-ordinate between those different interpreters.

    The tutorial itself is fantastic - it's not an easy feature to try out right now but I got there by following the step-by-step instructions.

    Also interesting is this project, linked to from the end of the tutorial: https://github.com/jsbueno/extrainterpreters

    Posted my own set of short notes on my blog: https://simonwillison.net/2023/May/15/per-interpreter-gils/

  • WorkOS

    The modern identity platform for B2B SaaS. The APIs are flexible and easy-to-use, supporting authentication, user identity, and complex enterprise features like SSO and SCIM provisioning.

    WorkOS logo
NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a more popular project.

Suggest a related project

Related posts