Re:Brendan Eich on Ecma TC39, JavaScript.next, and Google Dash
by BrendanEich on Tuesday September 13, 2011 @01:27AM
(#2990083)
Evaluating function declarations and expressions, even in a module pattern closure, takes well under a millisecond in modern browsers.
The "dynamic-hashes" remark shows serious ignorance of polymorphic inline caches and shapes aka hidden classes. Competitive JS JITs do not probe hashtables for dot member accesses.
In addition, Javascript's abstractions are based on relatively slow mechanisms such as dynamic-hashes. This make it difficult if not impossible to get C/Java/C# like performance out of it even with a JIT. You can build fast dynamic hashes out of structs, but you can't really build fast structs out of dynamic hashes.