You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
PEP 703 -- Making the Global Interpreter Lock Optional in CPython #188
FWIW I don't think there has been enough public discussion on this PEP to leave it to the SC to decide yes or no. I know for a fact that in the Faster CPython team we have some concerns that we are planning to post on Discourse. (We've been swamped with 3.12 stuff so we haven't posted yet.)
The steering council is going to take its time on this. A huge thank you for working to keep it up to date! We're not ready to simply pronounce on 703 as it has a HUGE blast radius.
Software isn't ready for the decades of Python assumptions such a change turns on its head, even when it appears to work fine it's a statistical qualm of "but does it really? how do we actually know? when might it not and how often?" asked for every transitive dep of code. For some things that Q&A could be easy, but for others it becomes a can of worms.
From a steering council perspective we effectively view a 703 threading enabled interpreter at a high level as a fork of the CPython VM. In the sense that extension modules are unlikely to work without noteworthy modifications and even some pure Python libraries may even need to start considering locking where it had not in the past.
That does not mean "no" to this. There is demand for it. (personally, I've wanted this since forever!) It's just that it won't be easy and we'll need to consider the entire ecosystem and how to smoothly allow such a change to happen without breaking the world.
I'm glad to see the continued discuss thread with faster-cpython folks in particular piping up. The intersection between this work and ongoing single threaded performance improvements will always be high and we don't want to hamper that in the near term.
-- me with a steering council hat on
Reacted by Juan Luis Cano Rodríguez, Itamar Oren, Erlend E. Aasland, miraculixx, Stephen D. Spencer, Trung Ng, Martin Tournoij, dogisgreat and Emile
Reacted by Manuel de Prada Corral, jkablan and Maximilian Bachl
Reacted by stonebig, Alex Waygood, Jelle Zijlstra, Árni Már Jónsson and Shantanu
Thanks for reviewing the PEP. The PEP was posted five months ago, and it has been 20 months since an end-to-end working implementation (that works with a large number of extensions) was discussed on python-dev. I appreciate everyone who has taken the time to review the PEP and offer comments and suggestions.
You wrote that the Steering Council's decision does not mean "no," but the steering council has not set a bar for acceptance, stated what evidence is actually needed, nor said when a final decision will be made. Given the expressed demand for PEP 703, it makes sense to me for the steering committee to develop a timeline for identifying the factors it may need to consider and for determining the steps that would be required for the change to happen smoothly.
Without these timelines and milestones in place, I would like to explain that the effect of the Steering Council's answer is a "no" in practice. I have been funded to work on this for the past few years with the milestone of submitting the PEP along with a comprehensive implementation to convince the Python community. Without specific concerns or a clear bar for acceptance, I (and my funding organization) will have to treat the current decision-in-limbo as a “no” and will be unable to pursue the PEP further.
Reacted by BrenBarn
Reacted by Juan Luis Cano Rodríguez, Gunung Pambudi W., Bruno Cabral, Sunny, Josh Cannon, cemrehancavdar, jkablan and Valentin
Reacted by Pieter Eendebak, sstandre, Gregory P. Smith, David Armstrong, Manuel de Prada Corral, NoAnyLove, Gunung Pambudi W., Matt Wozniski, Ishan Anand, Asger Jon Vistisen and 37 more
I have tested this patch intensively and was even able to use it with PySide6 - a pretty huge CPython extension!
If this NoGil variant is optional and by default switched off: What is then the problem to include it as a, say, optional test version? Does the SC fear that it cannot revert a possibly wrong decision and therefore needs to leave it in infinite limbo?
Or are there just too many things going on and to few people available who work on it...
My personal wish is that it gets into 3.13 as an option which is by default off. I am convinced that people will really hurry to support this gem and enhance their extensions.
I started that already for PySide6.
Reacted by stonebig and Denis Akhiyarov
Reacted by Manuel de Prada Corral, Daniel Giger, kkonghao, Árni Már Jónsson, Josh Cannon, Kaizhao Zhang, sandroac, rushikesh, NoAnyLove, Superskyyy and 7 more
Activity
gvanrossum commentedon May 22, 2023
FWIW I don't think there has been enough public discussion on this PEP to leave it to the SC to decide yes or no. I know for a fact that in the Faster CPython team we have some concerns that we are planning to post on Discourse. (We've been swamped with 3.12 stuff so we haven't posted yet.)
colesbury commentedon May 22, 2023
The PEP has been posted for over four months and is one of the most discussed PEPs on discuss.python.org.
gvanrossum commentedon May 22, 2023
Not much was said in response to the 3.12 update though, which felt substantial from your summary.
markshannon commentedon Jun 2, 2023
Posted https://discuss.python.org/t/pep-703-making-the-global-interpreter-lock-optional-3-12-updates/26503/9?u=markshannon
gpshead commentedon Jun 3, 2023
The steering council is going to take its time on this. A huge thank you for working to keep it up to date! We're not ready to simply pronounce on 703 as it has a HUGE blast radius.
Software isn't ready for the decades of Python assumptions such a change turns on its head, even when it appears to work fine it's a statistical qualm of "but does it really? how do we actually know? when might it not and how often?" asked for every transitive dep of code. For some things that Q&A could be easy, but for others it becomes a can of worms.
From a steering council perspective we effectively view a 703 threading enabled interpreter at a high level as a fork of the CPython VM. In the sense that extension modules are unlikely to work without noteworthy modifications and even some pure Python libraries may even need to start considering locking where it had not in the past.
That does not mean "no" to this. There is demand for it. (personally, I've wanted this since forever!) It's just that it won't be easy and we'll need to consider the entire ecosystem and how to smoothly allow such a change to happen without breaking the world.
I'm glad to see the continued discuss thread with faster-cpython folks in particular piping up. The intersection between this work and ongoing single threaded performance improvements will always be high and we don't want to hamper that in the near term.
-- me with a steering council hat on
gvanrossum commentedon Jun 5, 2023
Maybe you could add that to the Discourse thread, where others may find it? (Or just link here.)
colesbury commentedon Jun 7, 2023
Hi Gregory and the Steering Council,
Thanks for reviewing the PEP. The PEP was posted five months ago, and it has been 20 months since an end-to-end working implementation (that works with a large number of extensions) was discussed on python-dev. I appreciate everyone who has taken the time to review the PEP and offer comments and suggestions.
You wrote that the Steering Council's decision does not mean "no," but the steering council has not set a bar for acceptance, stated what evidence is actually needed, nor said when a final decision will be made. Given the expressed demand for PEP 703, it makes sense to me for the steering committee to develop a timeline for identifying the factors it may need to consider and for determining the steps that would be required for the change to happen smoothly.
Without these timelines and milestones in place, I would like to explain that the effect of the Steering Council's answer is a "no" in practice. I have been funded to work on this for the past few years with the milestone of submitting the PEP along with a comprehensive implementation to convince the Python community. Without specific concerns or a clear bar for acceptance, I (and my funding organization) will have to treat the current decision-in-limbo as a “no” and will be unable to pursue the PEP further.
gpshead commentedon Jun 7, 2023
Your work on this has been extremely valuable, thanks for all you've done!
ctismer commentedon Jun 8, 2023
I have tested this patch intensively and was even able to use it with PySide6 - a pretty huge CPython extension!
If this
NoGilvariant is optional and by default switched off: What is then the problem to include it as a, say, optional test version? Does the SC fear that it cannot revert a possibly wrong decision and therefore needs to leave it in infinite limbo?Or are there just too many things going on and to few people available who work on it...
My personal wish is that it gets into 3.13 as an option which is by default off. I am convinced that people will really hurry to support this gem and enhance their extensions.
I started that already for PySide6.
gpshead commentedon Jun 9, 2023
Lets please have discussion over on the discuss thread.
ytrezq commentedon Aug 16, 2023
Thread is locked so that s not possible.
Either way, what I say might be complete garbage but since a lot of the tasks to ensure thread safety would if be possible to create a tool in a similar flashing than https://www.codeconvert.ai/?
brettcannon commentedon Aug 16, 2023
@ytrezq please start a separate discussion at discuss.python.org.
davidfstr commentedon Nov 5, 2023
Given that PEP 703 - which this thread is about - has been accepted, should this issue be closed?
gpshead commentedon Nov 5, 2023
LOL yes.