Subj : Re: Compile the Javascript code to Bytecode. To : netscape.public.mozilla.jseng From : Matthew Mondor Date : Sat Oct 01 2005 01:18 pm On Sat, 01 Oct 2005 12:57:44 +0200 Martin Honnen wrote: > Spidermonkey also internally uses some byte code I think to which script > code is compiled but I don't think that byte code is following some > format that other run time engines or virtual machines currently around > for other languages can also execute. It does, and indeed the bytecode can even be expected to be incompatible between certain SpiderMonkey versions... If it's for optimization, you can compile the scripts at initialization and use them when wanted, though. If it's to be able to provide opaque programs to customers, a possible idea would be to encode them from the text format into a custom format for distribution, however. Providing support for signing the package, etc would also be possible with a custom package format to make sure that the application only accepts intended code... Matt -- Note: Please only reply on the list, other mail is blocked by default. Private messages from your address can be allowed by first asking. .