Re:JavaScript is Web Assembly Language and that's OK.
by codeulike on Friday May 24, 2013 @09:13AM
(#5762461)
JavaScript is a dynamic language with C-syntax, prototype-inheritance and lambdas. Embedded into every browser on the planet. Whats not to like?
[ Parent
| on HN ]
Re:JavaScript is Web Assembly Language and that's OK.
by vijayp on Friday May 24, 2013 @09:19AM
(#5762496)
Also, no integers. Who needs integers anyway?
Re:JavaScript is Web Assembly Language and that's OK.
by thejsjunky on Friday May 24, 2013 @10:59AM
(#5763195)
That's a fair criticism, but it needs qualification. JS doesn't have an integer type currently, but engines can be smart about using integers behind the scenes for efficiency.
In terms of your ability to use them explicitly there's asm.js, typed arrays, and various proposals like value objects for the future.
Re:JavaScript is Web Assembly Language and that's OK.
by codeulike on Friday May 24, 2013 @09:27AM
(#5762533)
Ok, thats true. And some of the built-in functions are crazy - parseInt("09") anyone? - but the basic workings of the language seem ok to me.
Re:JavaScript is Web Assembly Language and that's OK.
by zxcdw on Friday May 24, 2013 @09:45AM
(#5762657)
The problem is that when the base language has such limitatios and funky semantics, how should languages which target that be able to deal with that in 1) standard 2) predictable 3) efficient way?
This is the reason CPU instruction set architectures are so simplistic and "low level" and don't really do things for you -- because if they did, targetting such a CPU would be a major pain with all inefficiencies due to workarounds due to funky and incompatible features.