There is a lot of hype surrounding JavaScript.
Years ago Google started the developing of V8, a super Just in time compiler for its Chrome Browser.
The V8 compiler revamped competition: Microsoft and Mozilla foundation strike back optimizing their JavaScript interpreters.
On these days, a strong community is growing using Node.js, a web server “Evented I/O [Web application server] for V8 JavaScript“. Node.js sposts a non-blocking architecture which can lead to very fast server, able to process a lot of request with a single thread.
A quick peek on the people now. Lars Bak is the leader of the V8 project. It has worked on the design of Self and on the HotSpot JIT. Lars Bak also co authored “Mixin in StrongTalk”.
So a lot of the optimization which let Smalltalk and Java shine, are used in the JavaScript field nowadays. It is a simple “accident” 🙂 ?…or it is destiny?
JavaScript rocks? There is plenty of documentation all around, even if the first ECMA specification was quite unreadable in my humble opinion 🙂 There are some optimal guidelines for JavaScript module writing, for instance see the manuals on JQuery plugin development. But in JavaScript you are still a free player if you wish: no rule, no even need of structuring your code in some way:
var sith={}
sith.name=”DarthVader”;
sith.name=function(){
return “Nevermind, I am a function, now”;
}
The code above builds a very generic object, and add to it properties (which could be a function).
Worst, you get very strange things, evaluting:
[1,2]+[3,4]
you got:
“1,23,4”
This because “+” is not supported for arrays, so the JavaScript language is effectively doing…
([1,2]+””)+[3,4]
I like dynamic languages like Self, but this is somewhat too…flexible 🙂
And last but not least JavaScript lacks a true integrated developement environment, even if here we smalltalkers could help a bit 🙂
So, SmallTalk2012 is not this version of JavaScript, at least not yet; JavaScript Harmony specification is working hard trying to polishing the language…As usual, the better way to predict the future is to …invent it… So let’s give Harmony a chance!






