News for hackers. Stuff that matters.
Re:Our Plan for Python 3.13 by crabbone on Thursday June 15, 2023 @10:39AM (#36341177)
Hahah, this will make most of Python worthless. NumPy and Co as well as, basically, any native module worth its salt manipulates GIL.

Also, there aren't good programmers in Python core dev. So, whatever they will come up with, is definitely going to suck. These people don't know what they are doing, and by the looks of it are very confident in themselves... which will most likely result in more hilarity.

Now, the reason for any native code to manipulate the lock is the following idea: Python threads can sleep in parallel, i.e. native code executed by Python doesn't have to be single-threaded, nor even it has to execute in the same thread as Python's bytecode interpreter. So, any heavy lifting that happens in C code as soon as it gets control branches into its own thread and joins back when it's done.

So, stuff like Pandas, for example, will benefit from running in multiple threads.

But... what's going to happen with GIL gone? Will the native code have to use Python's concurrency primitives to synchronize? -- If so, it will suck, because every time you touch Python's C API you pay a high price for interfacing with garbage C code, unoptimized and unoptimizable.

Python is light years behind languages like Erlang with very advanced scheduler and good integration with native extensions. Python core dev. simply don't know how to make something like that, have no experience with this to the point they don't even understand the goals it's trying to achieve. But, I'm sure they'll declare great success and will receive a standing ovation for what they'll do.

Re:Our Plan for Python 3.13 by gyrovagueGeist on Thursday June 15, 2023 @10:50AM (#36341321)
...you mean like how the nogil project already has a working Numpy module?
Re:Our Plan for Python 3.13 by crabbone on Friday June 16, 2023 @09:24PM (#36366233)
No it doesn't.

There are couple dozens of projects which link with NumPy. In order to declare NumPy working, you need to support all of them too.

Re:Our Plan for Python 3.13 by apgwoz on Thursday June 15, 2023 @11:02AM (#36341501)
> Also, there aren't good programmers in Python core dev.

You seem pretty confident that you know what you are doing.