not natively, and not in the optimized way C or C++ do with the exception of ActionScript that compiles similar way Java does.
Consider I did not want to provide all possible details about compilers, JIT, and tracers, but at least in JS this compiler is missing. Maybe I should update with this note ? Thanks On Sun, Oct 16, 2011 at 3:23 PM, Sam Tobin-Hochstadt <sa...@ccs.neu.edu>wrote: > On Sun, Oct 16, 2011 at 8:52 AM, Andrea Giammarchi > <andrea.giammar...@gmail.com> wrote: > > Just because in this ml there are many engineers involved in JS engines > > optimizations ... this is a "what if..." post, feel free to comment it or > > hopefully take some hint out of it: > > > http://webreflection.blogspot.com/2011/10/missing-tool-in-scripting-world.html > > The initial premise of your post: > "The main difference between scripting languages and statically > typed one is the inability to pre optimize or pre compile the code > before it's actually executed." > is not correct. As two examples, Steel Bank Common Lisp [1] and > Larceny Scheme [2] both precompile to x86 machine code and heavily > optimize ahead of time, despite not compiling statically typed > languages. If you look here [3], you can see numerous scripting > languages (such as Python, Ruby, ActionScript, and Lua) that compile > to LLVM. > > [1] http://www.sbcl.org/ > [2] http://www.larcenists.org/ > [3] http://llvm.org/Users.html > -- > sam th > sa...@ccs.neu.edu >
_______________________________________________ es-discuss mailing list es-discuss@mozilla.org https://mail.mozilla.org/listinfo/es-discuss