News for hackers. Stuff that matters.
Re:How JavaScript compilers work by timothya on Saturday June 08, 2013 @04:56PM (#5846320)
My understanding (though I'm not an expert) is that the way the JavaScript spec is written, you first try to parse a line as is, and if you encounter a parsing error in trying to do that and the line doesn't have a semicolon, then you insert a semicolon and you try again. The end result is that it's a bit different then semicolons being optional; they are instead inserted automatically to try to recover from parse errors.
Re:How JavaScript compilers work by mattdawson on Saturday June 08, 2013 @07:31PM (#5846741)
FWIW, this is also the way O'Reilly's JS Pocket Reference explains it.
Re:How JavaScript compilers work by leetrout on Saturday June 08, 2013 @09:35PM (#5847114)
Thanks, that's what I had read.

I also found this set of tests http://jsperf.com/asi-versus-msi

My results on Opera Next (v15) http://imgur.com/hkAopfX shows MSI fastest FWIW.