News for hackers. Stuff that matters.
Re:No-GIL mode coming for Python by KeplerBoy on Saturday July 29, 2023 @02:43AM (#36917570)
Even with multithreading Python will still be slow. It's not like singlethreaded Python can keep up with singlethreaded C or even JS.

This will just allow people to waste even more compute resources to get somewhat quick results from Python instead of doing the right thing.

From an ecological viewpoint this PEP will be disastrous and keep entire power plants online.

Re:No-GIL mode coming for Python by BiteCode_dev on Saturday July 29, 2023 @03:22AM (#36917757)
Do you include the man hours in those calculations? Because they pollute a lot between the car, the food, the electricity the computer and internet for devs consumes, etc.
Re:No-GIL mode coming for Python by AlphaSite on Saturday July 29, 2023 @02:55AM (#36917620)
Python is also getting a JIT, they’re pursuing performance on all axis.
Re:No-GIL mode coming for Python by tjpnz on Saturday July 29, 2023 @02:52AM (#36917606)
The text editors people use to write said code will keep even more power plants online.
Re:No-GIL mode coming for Python by miraculixx on Saturday July 29, 2023 @04:48AM (#36918253)
Especially PyCharm with its endless indexing. Have the time its key features are not available bc it has decided to go on another indexing spree. Alas that's for another thread ;)
Re:No-GIL mode coming for Python by hanselot on Saturday July 29, 2023 @03:12AM (#36917712)
Sometimes the right thing is writing code in a language that reaches market before runway runs out.
Re:No-GIL mode coming for Python by dgb23 on Saturday July 29, 2023 @03:54AM (#36917932)
Ecosystem churn and exposing more issues to python contradicts this.

The whole point of using languages like python, js etc. is to not worry about whole classes of problems and intricacies.

There are modern languages with great tooling like Go, Rust or Clojure that have excellent support for safe concurrency and parallel execution etc.

And there are reliable, well established languages like Java/C# that have been doing this forever.

Re:No-GIL mode coming for Python by miraculixx on Saturday July 29, 2023 @04:48AM (#36918245)
This. Python had a unique stance, it was different for a good reason.

The seamingly endless attempt to become more likeable to yet another subgroup of needs is not a good development. It started with static typing, it continued with async, and now we have free threading as the final draw.

Re:No-GIL mode coming for Python by KeplerBoy on Saturday July 29, 2023 @03:56AM (#36917946)
That's fine for regular Python, but this doesn't convince me for multithreaded Python. Most Python modules which are optimized for performance (numpy, pytorch, pandas, and all others built on top of them) are already multithreaded and drop the GIL so you can parallelize your workload with the threading module.

If someone really needs several threads of pure python being interpreted, something is afoul imo.