logoalt Hacker News

tsegratis02/20/20251 replyview on HN

it changes debug semantics

this is the reason guido avoids it. programs will still fail, except now without a stacktrace


Replies

rollcat02/20/2025

GvR always prioritised ease of debugging over performance, and honestly I'm in the same camp. What good does a fast program do if it's incorrect?

But I think you can get a fine balance by keeping a recent call trace (in a ring buffer?). Lua does this and honestly it's OK, once you get used to the idea that you're not looking at stack frames, but execution history.

IMHO Python should add that, and it should clearly distinguish between which part of a crash log is a stack trace, and which one is a trace of tail calls.

Either way this is going to be quite a drastic change.

show 1 reply