←back to thread

122 points phsilva | 3 comments | | HN request time: 0.209s | source
1. saidinesh5 ◴[] No.43111181[source]
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(2): >>43111650 #>>43112498 #
2. haberman ◴[] No.43111650[source]
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.

3. nine_k ◴[] No.43112498[source]
I think this technique is known since 1970s as "direct threaded code".