Status: New Owner: ---- New issue 457 by joakim.ahnfelt: Tail call elimination (feature request) http://code.google.com/p/v8/issues/detail?id=457
If I open the JavaScript console in Chrome and write this: function fac(n, a) { if(n == 0) { return a; } else { return fac(n - 1, a * n) } }; fac(100000, 1); I get this: RangeError: Maximum call stack size exceeded I think V8 might be a nice target virtual machine for other programming languages if it supported tail calls. It's the only big obstacle I can see for languages with functional features. -- You received this message because you are listed in the owner or CC fields of this issue, or because you starred this issue. You may adjust your issue notification preferences at: http://code.google.com/hosting/settings --~--~---------~--~----~------------~-------~--~----~ v8-dev mailing list v8-dev@googlegroups.com http://groups.google.com/group/v8-dev -~----------~----~----~----~------~----~------~--~---