News for hackers. Stuff that matters.
Re:Python 3.14 Is Here. How Fast Is It? by didip on Thursday October 09, 2025 @01:40PM (#45530761)
Every time I hear news about Python language itself, it sadden me that, in 2025, PyPy is still a separate distinct track from mainline Python.

That said, I wonder if GIL-less Python will one day enable GIL-less C FFI? That would be a big win that Python needs.

Re:Python 3.14 Is Here. How Fast Is It? by petters on Thursday October 09, 2025 @02:46PM (#45531522)
> That said, I wonder if GIL-less Python will one day enable GIL-less C FFI?

What do you mean exactly? C FFI has always been able to release the GIL manually.

Re:Python 3.14 Is Here. How Fast Is It? by nu11ptr on Thursday October 09, 2025 @02:02PM (#45531017)
> That said, I wonder if GIL-less Python will one day enable GIL-less C FFI? That would be a big win that Python needs.

I'm pretty sure that is what freethreading is today? That is why it can't be enabled by default AFAIK, as several C FFI libs haven't gone "GIL-less" yet.

[dead]
Re:Python 3.14 Is Here. How Fast Is It? by freddie_mercury on Thursday October 09, 2025 @05:53PM (#45533502)
Guido stepped down over 7 years ago. How out of touch are you?
Re:Python 3.14 Is Here. How Fast Is It? by rowanG077 on Thursday October 09, 2025 @05:39PM (#45533389)
Who are you talking about? Python hasn't had a dictator for ages now.
Re:Python 3.14 Is Here. How Fast Is It? by otabdeveloper4 on Friday October 10, 2025 @01:09AM (#45535533)
He's right in everything else though.
Re:Python 3.14 Is Here. How Fast Is It? by freddie_mercury on Thursday October 09, 2025 @05:56PM (#45533529)
How do you see that changing?

Python introduce another breaking change than also randomly affects performance, making it worse for large classes of users?

Why would the Python organisers want to do that?

Re:Python 3.14 Is Here. How Fast Is It? by natdempk on Thursday October 09, 2025 @06:25PM (#45533702)
Well, they added an experimental JIT so that is one step closer to PyPy? Though would assume the trajectory is build a new JIT vs. merge in PyPy, but hopefully people learned a lot from PyPy.
Re:Python 3.14 Is Here. How Fast Is It? by mattip on Friday October 10, 2025 @01:02AM (#45535506)
There is some information transfer happening. Antonio Cuni was at the latest Coython developer sprint and shared some insights from PyPy https://antocuni.eu/2025/09/24/tracing-jits-in-the-real-worl...
Re:Python 3.14 Is Here. How Fast Is It? by 8organicbits on Thursday October 09, 2025 @08:07PM (#45534296)
Can you clarify the concern? Starting from C I've come to expect many dialects across many compiler implementations. It seems healthy and encourages experimentation. Is it not a sign of a health language ecosystem?

Pypy compatibility with cpython seems very minor in comparison https://pypy.org/compat.html

Re:Python 3.14 Is Here. How Fast Is It? by ModernMech on Friday October 10, 2025 @10:20AM (#45539417)
It's a culture thing. C culture is all about rolling your own bespoke solution, which encourages the formation of dialects. On the other hand, Python culture is all about "There should be one-- and preferably only one --obvious way to do it.": https://peps.python.org/pep-0020/#the-zen-of-python
Re:Python 3.14 Is Here. How Fast Is It? by ActorNightly on Friday October 10, 2025 @01:38AM (#45535636)
I don't understand why C FFI is that popular.

The amount of time it takes spent to write all the cffi stuff is the same amount it takes to write an executable in C and call it from python.

The only time cffi is useful is if you want to have that code be dynamic, which is a very niche use case.

Re:Python 3.14 Is Here. How Fast Is It? by KeplerBoy on Friday October 10, 2025 @03:47AM (#45536301)
We need the FFI to share memory in-process with C functions?
Re:Python 3.14 Is Here. How Fast Is It? by eternauta3k on Friday October 10, 2025 @02:33AM (#45535914)
Could you go into more detail? How would you build e.g. numpy without FFI?
Re:Python 3.14 Is Here. How Fast Is It? by jononor on Friday October 10, 2025 @03:57AM (#45536364)
These days you could probably build a pretty performant numpy like using shared memory with Arrow format and IPC for control. Though it would be considerably more complex and not at all easier than FFI...
Re:Python 3.14 Is Here. How Fast Is It? by Too on Friday October 10, 2025 @12:54PM (#45541045)
You write the ffi once and let hundreds or thousands of other developers use it. For one off executables it rarely make sense.

Mixing the use with other libraries provided by the Python ecosystem is a another scenario. Do you really want to do HTTP in C or do you prefer requests?

Re:Python 3.14 Is Here. How Fast Is It? by taleinat on Friday October 10, 2025 @04:31AM (#45536550)
The biggest thing PyPy adds is JIT compilation. This is precisely what the project to add JIT to CPython is working on these days. It's still early days for the project, but by 3.15 there's a good chance we'll see some really great speedups in some cases.

It's worth noting that PyPy devs are in the loop, and their insights so far have been invaluable.