News for hackers. Stuff that matters.
Re:Python 3.11: “Zero cost” exception handling by cnband on Wednesday October 06, 2021 @09:54AM (#28773214)
The tenacity of people getting excited over micro optimizations in Python for more than two decades is remarkable. Nothing has happened despite monumental speed programs that were broadly advertised and marketed to corporations.

Meanwhile, SBCL has an industrial strength compiler that predates Python and its trademark (the SBCL compiler was called "Python" before the trademark, thereby invalidating it). Python (the language) is mainly good at aggressive marketing.

Re:Python 3.11: “Zero cost” exception handling by Zababa on Wednesday October 06, 2021 @03:35PM (#28777322)
I think the worst part is them not optimizing CPython earlier, which means that people now rely a lot on CPython internals, which means stuff like Pypy isn't compatible with the Python ecosystem. And then you end up with everyone having their Python optimization: Dropbox, Instagram, Pypy.
Re:Python 3.11: “Zero cost” exception handling by ok123456 on Wednesday October 06, 2021 @01:57PM (#28776139)
It's when you put all these small optimizations together that it leads to something remarkable. It's analogous to video codecs: there are a bunch of individual optimizations that alone don't look that impressive, only saving ~1% here or there. But once they all are working together, you see savings of 10-50%.
Re:Python 3.11: “Zero cost” exception handling by Zababa on Wednesday October 06, 2021 @03:42PM (#28777425)
I think what's surprising is how small these optimizations are. A few proposal sped up Python a lot, but were partially incompatible. Meanwhile OCaml is removing the GIL from the language, adding multicore and added stuff like Flambda in the last decade, all of that while mostly keeping backwards compatibility and not sacrificing single-core performance. All of that while having way less people working on it than Python.
Re:Python 3.11: “Zero cost” exception handling by IshKebab on Thursday October 07, 2021 @10:48AM (#28787011)
Yeah but Python is on the order of 100x slower than "fast" languages. 50% faster would obviously be nice but it's not really going to make Python a fast language.
Re:Python 3.11: “Zero cost” exception handling by kzrdude on Wednesday October 06, 2021 @02:26PM (#28776465)
I'm looking forward o seeing numbers per python release, for what the optimizations result in taken together. Mark Shannon is going at it with optimizations now.