Oh wait, that would actually be useful.
Better just design yet-another JIT compiler to speed up that language design train wreck that is Java Script.
</s>
Oh wait, that would actually be useful.
Better just design yet-another JIT compiler to speed up that language design train wreck that is Java Script.
</s>
It would only let you build your own asm.js-based VM on top of the existing JavaScript-like VM which could implement some bytecode format and interpret it.
I have seen something like that already. Let me tell you, you don't want to download 20 MB for some simple web-based Tetris-clone.
asm.js is useless for pretty much any modern language which relies on garbage collection.
I want less indirections, not more.
http://mozakai.blogspot.com/2011/11/code-size-when-compiling...
> asm.js is useless for pretty much any modern language which relies on garbage collection.
That is being worked on with the Binary Data spec: http://asmjs.org/faq.html
Apart from the potential of making some of Mozilla's insane ideas like implementing a PDF reader in JavaScript easier/faster, it's applicability is pretty much limited.
No one out there who is waiting for a sane language for the web will rejoice that he can now use C/C++ instead of JavaScript.
> That is being worked on with the Binary Data spec: http://asmjs.org/faq.html
I'll believe it when I see it working. Most likely they will still find a way to make it next to useless, forcing people to keep writing/targeting JavaScript.
FYI, you're talking to them right now. Patrick Walton is a Moz employee.