logoalt Hacker News

saidinesh5last Thursday at 4:32 AM2 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

habermanlast Thursday at 6:12 AM

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_klast Thursday at 8:44 AM

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