JavaScript Compilers
My last blog got me thinking…I thought I had seen a JavaScript compiler available from Mozilla, and it turns out I was correct. Mozilla does have a JavaScript Compiler as part of the Rhino JavaScript interpreter. The Rhino compiler creates Java source files from JavaScript files, which then can be used by any Java program.
There are other JavaScript compilers as well. The NGS JavaScript Compiler actually compiles JavaScript down to a custom bytecode that is run by a virtual machine, similar to the Java virtual machine. Interesting concept, especially given its ability to communicate with C code. And even more interesting: the interpreter is partially written in JavaScript.
Disclaimer: Any viewpoints and opinions expressed in this article are those of Nicholas C. Zakas and do not, in any way, reflect those of my employer, my colleagues, Wrox Publishing, O'Reilly Publishing, or anyone else. I speak only for myself, not for them.
Both comments and pings are currently closed.




One Comment
Take a look at http://www.www-sharp.com where you will find a JavaScript compiler — works pretty good — have used this for both JScript and C# code in web pages.
F W Southern on February 8th, 2005 at 4:18 pm
Comments are automatically closed after 14 days.