[JSMentors] Re: jslint "Move all 'var' declarations to the top of the function." is now a critical error

2011-01-24 Thread glathoud
My 2 cents : AFAIK JSLint is restricted to a subset of the JS syntax anyway so if you have to deal with very long legacy code you may prefer any code checker that supports the whole syntax (at least ECMAScript 3). For ex. http://glat.info/jscheck/ does not constrain your coding style at all and s

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

2010-12-21 Thread glathoud
I have measured the speed of two sorts of Javascript trampolines, which in both cases turned out to be about two orders of magnitude slower than iterative code: http://glat.info/pub/tailopt-js/tailopt-js-appendices.xhtml (mutual recursion supported) As for the setTimeout solution, yes it simplifie

[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