logoalt Hacker News

saidinesh502/20/20252 repliesview on HN

Recent discussion: https://news.ycombinator.com/item?id=42999672

Do check out the articles in the top most comment.. about how tail call optimization gets you faster interpreters.

It completely eliminates the overhead of function calls in the generated machine code while you still your code modularly using functions.


Replies

haberman02/20/2025

Yes, that is the same article linked in the first sentence of this "update" article. :)

I published this technique four years ago, and it's very exciting to see that others have taken up the cause and done the work to land it in CPython.

nine_k02/20/2025

I think this technique is known since 1970s as "direct threaded code".