News for hackers. Stuff that matters.
Re:Python 3.11 vs 3.10 performance by Jasper_ on Wednesday July 06, 2022 @11:48AM (#32002696)
> one wonders why they haven't been a low-hanging fruit over the past 25 years

Because the core team just hasn't prioritized performance, and have actively resisted performance work, at least until now. The big reason has been about maintainership cost of such work, but often times plenty of VM engineers show up to assist the core team and they have always been pushed away.

> Now let's get a sane concurrency story

You really can't easily add a threading model like that and make everything go faster. The hype of "GIL-removal" branches is that you can take your existing threading.Thread Python code, and run it on a GIL-less Python, and you'll instantly get a 5x speedup. In practice, that's not going to happen, you're going to have to modify your code substantially to support that level of work.

The difficulty with Python's concurrency is that the language doesn't have a cohesive threading model, and many programs are simply held alive and working by the GIL.

Re:Python 3.11 vs 3.10 performance by dekhn on Wednesday July 06, 2022 @12:26PM (#32003256)
Yup. Sad but true. I just wanted c++ style multithreading with unsafe shared memory but it's too late. I was impressed by the recent fork that addresses this in a very sophisticated way, but realistically gil cpython will keep finding speed ups to stave off the transition.
Re:Python 3.11 vs 3.10 performance by pca006132 on Wednesday July 06, 2022 @12:53PM (#32003601)
wondering how that interacts with c/c++ extensions that presumes the existance of the GIL
Re:Python 3.11 vs 3.10 performance by dekhn on Wednesday July 06, 2022 @01:22PM (#32004017)
A good place to start learning about this https://www.backblaze.com/blog/the-python-gil-past-present-a...