[thelist] Credibility of JScript

Liorean Liorean at user.bip.net
Tue Mar 19 01:00:00 CST 2002


At 04:19 2002-03-19 +0500, Syed Zeeshan Haider wrote:
>1.    How are these two different in practical work?

Well, first of all, JScript is generally a bit behind JavaScript in
implementing new features. That can be seen very clearly through version
checking for JavaScript. IE claims 1.3 compatibility while Mozilla is at
1.5 (Which should be virtually equal to full EcmaScript 3 compliancy).

In JScript you'll see a lot of extensions to the EcmaScript specs, though,
while JavaScript keeps pretty much to the spec.

As for speed, JavaScript if you run the C version is faster than JScript in
most non-iterative tasks.
JScript has far better loop optimisation, though, so anything containing
many and/or extensive loops will be faster in JScript. Also, although this
is not really a part of the language, DOM is generally far faster in JScript.

>2.    Which one is more reliable for internet?

Depends a lot on what you want to do with them, but basically both are
reliable to the level that if you find any bugs or memory leaks, it's
likely that it is you that are causing them, not the scripting engine.
(Though some bugs and leaks exist in both. The Mozilla people are still
working hard on optimisation of JavaScript 1.5, and are a little behind
when it comes to this.)

// Liorean




More information about the thelist mailing list