by yoklov · 13y ago · 0 comments
Trampolines still work, albeit with a pretty substantial perf penalty.
Manual tail calls can perfectly well be implemented without breaking anything.
GHCJS currently uses a trampoline, but all calls are in tail position, so when this gets implemented we can easily generate code that uses native JS tail calls.
Like GHC, GHCJS uses its own stack for non-tail calls.