News for hackers. Stuff that matters.
Re:Python 3.11: “Zero cost” exception handling by Someone on Wednesday October 06, 2021 @10:31AM (#28773624)
One of the stated benefits of this is

> Calls to Python functions would be faster as frame objects would be considerably smaller. Currently each frame carries 240 bytes of overhead for exception handling.

I guess that’s where this will pay even in a language/ecosystem where exceptions aren’t exceptional.

Re:Python 3.11: “Zero cost” exception handling by bregma on Wednesday October 06, 2021 @11:08AM (#28774063)
It's a time-space tradeoff. A few bytes less overhead on the stack, a few CPU cycles more overhead when raising an exception. Is it a net win? Show me empirical test results.