What Client-Side Web Scripting Languages Are There Other Than JavaScript and Vbscript

Are there any other programming languages for client side programming besides javascript?

Check out CoffeeScript. It is compiled to JavaScript so can be used anywhere JavaScript can be used.

JavaScript being the target of compilation is now the VM of the Web. 15 years ago it was Java that was to be the language of the Web, but it failed for various reasons.

If you're interested why, I recommend watching the talks by Douglas Crockford.

Other types of scripting languages for the web?

Short answer? No. JavaScript or as it is properly known ECMAScript is the only client side scripting language available.

Long answer: Yes.

With plugins, people use ActionScript, Silverlight, and Java to create dynamic content.

Chromium also supports Dart, however Dart can be compiled into JavaScript and ran on any browser. CoffeeScript, like Dart, can also be compiled into JavaScript and ran in the browser.

The main reason that ECMAScript is the "only" client side language is that each and every browser has to implement their own version of the specification. This is why most vendors favour the use of plugins which enable their scripting language to run, rather than attempting to persuade browser vendors to implement a virtual machine for their language.

Why is javascript the only client side scripting language implemented in browsers?

Well, Google is trying to buck that trend with Dart. The community hasn't been entirely receptive to the idea; either.

Google proposed adding multiple VM support for Webkit which didn't go down very well.

One particular comment summed it up nicely as to why there has been some resistance to that:

In this case the feature is exposing additional programming languages to the web, something without any real benefit to anyone other than fans of the current "most awesome" language (not too long ago that might have been Go, a year or so ago this would have been ruby, before than python, i recall i brief surge in haskell popularity not that long ago as well, Lua has been on the verges for a long time, in this case it's Dart -- who's to say there won't be a completely different language in vogue in 6 months?), but as a cost it fragments the web and adds a substantial additional maintenance burden -- just maintaining the v8 and jsc bindings isn't trivial and they're for the same language.

The issue here isn't "can we make multiple vms live in webkit" it's "can we expose multiple languages to the web", to the former i say obviously as we already do, to the latter I say that we don't want to.

Unless we want to turn webkit into the engine that everyone hates because of all its unique "features" that break the open web, a la certain browsers in the late 90s.

CoffeeScript is another example of an emerging client-side scripting language. However, rather than support another virtual machine in a browser (as Google is trying to do with Dart), it compiles to JavaScript. There are several other "compile X to JavaScript" that do that as well. emscripten is a good example of compiling LLVM to JavaScript.

So there are plenty of other client languages; they just all use JavaScript as an intermediate. I'd argue that should be what Dart does as well, though they have some room to improve.



Related Topics



Leave a reply



Submit