News for hackers. Stuff that matters.
Re:The Fastest Mutexes by ngoldbaum on Wednesday October 02, 2024 @02:52PM (#41723866)
This style of mutex will also power PyMutex in Python 3.13. I have real-world benchmarks showing how much faster PyMutex is than the old PyThread_type_lock that was available before 3.13.
Re:The Fastest Mutexes by miohtama on Wednesday October 02, 2024 @03:12PM (#41724063)
Any rough summary?
Re:The Fastest Mutexes by ngoldbaum on Wednesday October 02, 2024 @03:40PM (#41724323)
https://github.com/numpy/numpy/issues/26510#issuecomment-229...

And now that I look at that again I realize I forgot to finish that up!

Re:The Fastest Mutexes by 0xDEADFED5 on Wednesday October 02, 2024 @05:02PM (#41724942)
Can I use PyMutex from my own Python code?
Re:The Fastest Mutexes by ngoldbaum on Wednesday October 02, 2024 @08:40PM (#41726256)
No, it wouldn’t make sense to. Use threading.Lock for that. PyMutex is available in the CPython C API.
Re:The Fastest Mutexes by kagrt on Thursday October 03, 2024 @06:48AM (#41729350)
I wonder how much it will help in real code. The no-gil build is still easily 50% slower and the regular build showed a slowdown of 50% for Sphinx, which is why the incremental garbage collector was removed just this week.

Python development is in total chaos on all social and technical fronts due to incompetent and malicious leadership.

Re:The Fastest Mutexes by plesner on Thursday October 03, 2024 @12:37PM (#41732331)
I'm very ready to believe your description of the state of python is true but I've been out of the loop on python for a while. I'm interested in more details. Can you expand or point to any articles that give more details?