News for hackers. Stuff that matters.
Re:Faster CPython (2021) [pdf] by iqanq on Sunday January 23, 2022 @03:28PM (#30050129)
>The single example I typically give is that in Python you can inspect stack frames after they've exited! This has concrete implications on your VM design.

How about an implementation of python that doesn't let you do fancy things like that that are not needed in production?

Re:Faster CPython (2021) [pdf] by Jasper_ on Sunday January 23, 2022 @03:51PM (#30050324)
The inspecting of stack frames is used by the logging library, and by most unit testing libraries. There are dozens of these small features which are challenging, and if you remove all of the challenging ones, you end up with something where pretty much no existing Python can run.

People have tried, pypy started with that goal before it became clear it wasn't practical.

Re:Faster CPython (2021) [pdf] by akx on Sunday January 23, 2022 @05:55PM (#30051441)
I think logging inspects frames while they're still on the stack, not post-fact..?