A viable solution for Python concurrency
1–10 of 366 posts
Re: A viable solution for Python concurrency
#2My understanding was that CPython viewed any single-threaded performance regression as a blocker to GIL-removal attempts, regardless of if other work by the developer has sped up the interpreter? This article seems to somewhat gloss over that with "it's only small". I'd be interested in knowing other estimations of what the "better-than-average chance" of this (promising sounding) attempt were.
Breaking C extensions (especially the less-conforming ones, which seem likely to be the least maintained) also seems like it would be a very hard pill to swallow, and the sort of thing that might make it a Python 3-to-4 breaking change, which I imagine would also be approached extremely carefully given there are still people to-this-day who believe that python 3 is a mistake and one day everyone will realise it and go back to python 2 (yes, really).
Re: A viable solution for Python concurrency
#3Re: A viable solution for Python concurrency
#4CPython is a naive interpreter, like original JavaScript. There's been progress since then.
Re: A viable solution for Python concurrency
#5"The biggest source of problems might be multi-threaded programs with concurrency-related bugs that have been masked by the GIL until now."
Re: A viable solution for Python concurrency
#6Re: A viable solution for Python concurrency
#7Multiprocessing sort of works but it’s really sucky.
Re: A viable solution for Python concurrency
#8Or you could just use PyPy, which uses a garbage collector, does more compile-time analysis, and runs much faster. CPython is a naive interpreter, like original JavaScript. There's been progress since then.
Re: A viable solution for Python concurrency
#9> This "optimization" actually slows single-threaded accesses down slightly, according to the design document, but that penalty becomes worthwhile once multi-threaded execution becomes possible. My understanding was that CPython viewed any single-threaded performance regression as a blocker to GIL-removal attempts, regardless of if other work by the developer has sped up the interpreter? This article seems to somewha…
And on top of that, Guido has retired now, and the steering committee may feel differently as long as the spirit of the restrictions is upheld.