#ResearchTopic of the day: #noGIL #freethreaded design in π-thon 3.14
#ResearchTopic of the day: #noGIL #freethreaded design in π-thon 3.14
❄️ - Using No GIL Python
- Decorators in Python : FREE Webinar
- Cure for Distraction
- Fun with Python and Pytest
- Why to Raise your hand?
Latest Edition of My Voyage of Discovery: http://eepurl.com/i7m8oU
Subscribe for more at: http://eepurl.com/iu6PFU
#Python #GIL #NoGil #Decorators #India #Distraction #Discovery #MyVOD #PyTest
My weekend :python: project was building a new tool for Python projects, called “unittest-ft”, to run your entire test suite in parallel using a thread pool. With Python 3.13 and free threading enabled, this can dramatically speed up your test suite, as well as help catch any thread-safety issues that your project might have.
It also includes options to run "stress tests" which queues every test to be run ten times rather than just once, as well as randomizing the test order every time to help catch unintended test order dependencies.
This is intended for use with Python 3.13 or newer with free threading enabled, but is functionally useful back to Python 3.8 for testing and use in CI (it just won't be *faster* without FT).
🐍 #Python 📦 #packaging news. Looks like the latest release of `cibuildwheel` v2.19 now supports #freethreading #nogil 🎉 thanks to @henryiii
Looking for thoughts from the Python community:
What is the Long-Term Vision for a Parallel/Concurrent Python Programming Model?
https://discuss.python.org/t/what-is-the-long-term-vision-for-a-parallel-python-programming-model/39190/1
More concrete questions in: https://discuss.python.org/t/what-is-the-long-term-vision-for-a-parallel-python-programming-model/39190/20
I am FIRMLY team #python4 for the #nogil work. LFG. The lesson from Python 3 is you gotta rip off that upgrade bandaid. https://lwn.net/Articles/947138/
No-GIL planned for an experimental build of Python 3.13 on October 2024 🥳
Thank you Sam Gross 🙏🏻
I've been thinking about what #asyncio might look like in a #nogil #Python world, and I'm curious about what others are thinking too. So I made a Discourse discussion: https://discuss.python.org/t/asyncio-in-a-nogil-world/30694
Would love for folks to chip in with their thoughts!
Python no GIL plan: Steering Council adopts a plan for enabling concurrency in Python processes
https://discuss.python.org/t/a-steering-council-notice-about-pep-703-making-the-global-interpreter-lock-optional-in-cpython/30474
#concurrency #parallelism #programing #python #nogil #gil #+
Python is embarking on a new and interesting path! PEP703: "Making the Global Interpreter Lock Optional in CPython" https://discuss.python.org/t/a-steering-council-notice-about-pep-703-making-the-global-interpreter-lock-optional-in-cpython/30474
#python #nogil
Big Python news! 🐍📰
"Thank you, everyone, for responding to the poll on the no-GIL proposal. It’s clear that the overall sentiment is positive, both for the general idea and for PEP 703 specifically. The Steering Council is also largely positive on both. We intend to accept PEP 703, although we’re still working on the acceptance details."
For the general plan, see:
https://discuss.python.org/t/a-steering-council-notice-about-pep-703-making-the-global-interpreter-lock-optional-in-cpython/30474?u=hugovk #PEP703 #Python #GIL #NoGIL
And Sam Gross has submitted PEP 703 (Making the Global Interpreter Lock Optional in CPython) to the steering council for consideration for Python 3.13!
https://github.com/python/steering-council/issues/188
By setting `nogil=True` on a Numba function, I just cut the runtime of one part in the code from 60 minutes to 4 minutes.
Feels like an okay win for essentially a single line edit.
@brettcannon i vote #NoGIL. I do machine learning research, often prototyping code on my local computer (with a quite competent multicore CPU), and i think threads could give me quite some improvements there. Not bringing out the big guns like dask every time might improve latency in development iterations, for example. On the other hand, i think I am badly informed about the implications of a #JIT compiler.
Would love an episode of @pythonbytes discussing the topic.
@brettcannon Thinking if #NoGIL is sorted first, making JIT happen later is probably much easier than the other order.