3 ms·
Mutual tail call optimization requires VM level support in general but can be accomplished within a compiliation unit (module) via inlining.
by PhineasRex 10y ago
Mutual tail call optimization requires VM level support in general but can be accomplished within a compiliation unit (module) via inlining.
- michaelsbradley 10y agoSeems 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.