Re: [JSMentors] Tail-call optimization for mutual recursion

2010-12-21 Thread Nick Fitzgerald
I'm not really a fan of "compiling" tail calls in to while loops. I played around with trampolining a while back, and I think it is the best solution to this problem. You mention performance as being a deterrent to using trampolining, and that just doesn't make too much sense to me. First, I wouldn

[JSMentors] Tail-call optimization for mutual recursion

2010-12-20 Thread glathoud
Hello, I have been exploring some ways to optimize tail calls in Javascript. In case of interest: http://glat.info/jscheck/tomrec.xhtml Comments are welcome. Best regards, Guillaume Lathoud -- To view archived discussions from the original JSMentors Mailman list: http://www.mail-archive.com/j