News for hackers. Stuff that matters.
Re:Meta pledges Three-Year sponsorship for Python if GIL rem... by zarzavat on Saturday July 08, 2023 @09:55AM (#36644430)
Why should library authors be put under pressure because someone else chose the wrong tool for the job, and is now trying to push that externality on to the community?

Python is a single-threaded language. That’s part of its DNA. The community has already been through one traumatic transition in recent history and the appetite for another one is low.

Library authors should not update their libraries to support multithreading, rather the people who want that should be forced to rewrite their code in a language that is more suitable for the problem they want to solve.

Re:Meta pledges Three-Year sponsorship for Python if GIL rem... by oblio on Saturday July 08, 2023 @10:41AM (#36644872)
This is wrong, that ship sailed 10+ years ago. Python is used for almost everything, better get used to it.

This kind of garbage logic lead to the horrible Ruby/Python/Javascript with C extensions split that makes their ecosystems very brittle, versus Java/C# where it is expected that things are fast enough without C and package management is much easier.

Re:Meta pledges Three-Year sponsorship for Python if GIL rem... by cwalv on Saturday July 08, 2023 @12:40PM (#36646089)
It's true that python is used for "almost everything", but it's only true because it plays nicely with C.

I understand the desire/demand for general purpose tools. The thing is, there are always tradeoffs. Acknowledging the tradeoffs and designing more specialized tools that work well together isn't necessarily garbage logic.

Re:Meta pledges Three-Year sponsorship for Python if GIL rem... by oblio on Saturday July 08, 2023 @03:16PM (#36647755)
Python is no longer specialized.

I mean, it's specialized for:

* data science

* AI/ML

* webdev

* DevOps tools

* an embedded extension language for 100000 programs

...

The sooner core Python devs accept this, the sooner the right thing can be done.

Python is not AWK.

Re:Meta pledges Three-Year sponsorship for Python if GIL rem... by dragonwriter on Saturday July 08, 2023 @10:41AM (#36644873)
> Python is a single-threaded language.

Its literally not, though, even with the GIL.

Re:Meta pledges Three-Year sponsorship for Python if GIL rem... by usrbinbash on Saturday July 08, 2023 @10:12AM (#36644606)
> Python is a single-threaded language. That’s part of its DNA.

If the changes proposed in this PEP go through, that will no longer be the case. So library authors pretty much will have to either update, or see their modules wither the same way they would if they weren't updated as new Python 3.x versions come along.

> rather the people who want that should be forced to rewrite their code in a language that is more suitable for the problem they want to solve

The vast majority of the Python developer community WANT Python to support true multithreading and being able to solve these problems. We expend inordinate amounts of time and skill trying to make Python work around the GIL, eg. by utilizing multiprocessing.

We want Python to stay relevant long-term. In an age of abundant multi-core platforms, and workloads that can utilize them, the GIL is a major obstacle to that desire.

Re:Meta pledges Three-Year sponsorship for Python if GIL rem... by rolisz on Saturday July 08, 2023 @10:04AM (#36644530)
I disagree that single threadedness is in its DNA. It's an implementation detail of CPython. There are other implementations which don't have a GIL even today.

Would removing the GIL be a big change for CPython? Yes. But IMO it's worth it

Re:Meta pledges Three-Year sponsorship for Python if GIL rem... by akdor1154 on Saturday July 08, 2023 @10:38AM (#36644836)
> Python is a single-threaded language

Err what?

    import threading

    from concurrent.futures import ThreadPoolExecutor
Re:Meta pledges Three-Year sponsorship for Python if GIL rem... by hughesjj on Saturday July 08, 2023 @10:05AM (#36644538)
> Python is a single-threaded language. That’s part of its DNA.

Boooo. Maybe if all you do is ops scripts, but for those of us in data science this couldn't be further from the truth imo.

I'm not saying the syntax is easy for asyncio, or anywhere near as nice as golang or even kotlin is for concurrency, but it's definitely workable in a concurrent environment.