Live data from Hacker News

The first year of free-threaded Python

labs.quansight.org

301–302 of 302 posts

Re: The first year of free-threaded Python

#301
post #271

Earlier quoted context omitted.

You are not the only one who is afraid of changes and a bit change resistant. I think the issue here is that the reasons for this fear are not very rational. And also the interest of the wider community is to deal with technical debt. And the GIL is pure technical debt. Defensible 30 years ago, a bit awkward 20 years ago, and downright annoying and embarrassing now that world + dog does all their AI data processing w…

> Nothing unless you start using threads. Isn't it also promises/futures? They might start threads implicitly.

Why would you use those without threads?

Re: The first year of free-threaded Python

#302
post #299
post #250

Earlier quoted context omitted.

On a 64-core machine, Python code that uses all the cores will be modestly faster than single-threaded C, even if all the inner loops are in Python. If you can move the inner loops to C, for example with Numpy, you can do much better still. (Python is still harder to get right than something like C or OCaml, of course, especially for larger programs, but often the smaller amount of code and quicker feedback loop can…

I strongly doubt this claim. Python is more than 64x slower than C without synchronization overhead in most numeric tasks, with synchronization overhead on those processes it should be much worse. Python is so much slower than any native or JIT compiled language that it begets things like numpy in the first place.

My typical experience is about 40×.
Post reply on HN