Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Mutual tail call optimization requires VM level support in general but can be accomplished within a compiliation unit (module) via inlining.


Seems like it should also be possible to have the compiler employ JavaScript generator functions (i.e. `yield`) and iteration as a substitute for growing the stack, which might be a bit more flexible than rewriting in terms of loops+thunks, though the concept is the same.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: