GIL Become Optional in Python 3.13 (geekpython.in)
from pnutzh4x0r@lemmy.ndlug.org to python@programming.dev on 12 Aug 2024 17:25
https://lemmy.ndlug.org/post/970135

GIL or Global Interpreter Lock can be disabled in Python version 3.13. This is currently experimental.

Python 3.13 brings major new features compared to Python 3.12 and one of them is free-threaded mode, which disables the Global Interpreter Lock, allowing threads to run more concurrently.

The GIL will be disabled when you configure the Python with the –disable-gil option which is nothing but a build configuration (free threading build) at the time of installation.

This will allow optionally enabling and disabling GIL using the environment variable PYTHON_GIL which can be set to 1 and 0 respectively.

It will also provide a command-line option -X gil which can also be set to 0 (disable) and 1 (enable).

#python

threaded - newest

drspod@lemmy.ml on 12 Aug 2024 18:19 next collapse

This is huge news. Great work to the contributors involved in making this happen.

Midnitte@beehaw.org on 12 Aug 2024 18:28 next collapse

I learned relatedly that there’s a page to track free threaded support for (non-pure python) packages (thanks PythonBytes).

Really cool to see this progressing so steadily.

troyunrau@lemmy.ca on 13 Aug 2024 03:19 collapse

Wake me up when pyside is on that list. I’ve been waiting for this day for a decade…

ayyy@sh.itjust.works on 13 Aug 2024 01:13 next collapse

This doesn’t really jive with my understanding of semantic versioning/semver but I guess versioning is very challenging and political in the Pythonverse.

jim@programming.dev on 13 Aug 2024 02:13 collapse
raman_klogius@ani.social on 15 Aug 2024 07:33 collapse

what kind of a reptile is python that it still have GILs until recently?