News for hackers. Stuff that matters.
Re:Asm.js: a strict subset of js for compilers – working draft by comex on Friday February 15, 2013 @02:37PM (#5228027)
It's plugins done right with the gigantic caveats that it duplicates a large swath of low-level DOM APIs, requiring a large amount of effort to write two implementations of essentially the same things, and has no direct access to the DOM or external JavaScript, meaning it lacks support for some APIs (WebRTC) and cannot really be used as a drop-in replacement for JS or to take advantage of the existing HTML renderer (it's all or nothing).

That is, it's plugins done right if you insist on living in a separate process, despite the adequacy of both NaCl and JS engines' ability to keep code within the inner sandbox/VM, and what should be the adequacy of the sandbox of renderer processes even if someone manages to run native code in it.

Me, I'd prefer to just run emscripten on the Python interpreter, take advantage of a very small VM that nevertheless is apparently able to run code at half native speed, and start using a new language on top of all the nice existing stuff.

Re:Asm.js: a strict subset of js for compilers – working draft by stcredzero on Friday February 15, 2013 @06:03PM (#5229254)
> has no direct access to the DOM or external JavaScript, meaning it lacks support for some APIs (WebRTC) and cannot really be used as a drop-in replacement for JS or to take advantage of the existing HTML renderer (it's all or nothing).

Is there some fundamental reason why these won't all get solved in the future?

Re:Asm.js: a strict subset of js for compilers – working draft by comex on Friday February 15, 2013 @07:05PM (#5229593)
The fundamental reason is that Pepper plugins live in a separate process, so latency is high - a security measure, but one that I'm arguing is unnecessary and forces highly unfortunate design choices.
Re:Asm.js: a strict subset of js for compilers – working draft by stcredzero on Friday February 15, 2013 @07:33PM (#5229723)
I don't really see this as a fundamental, iron clad barrier to everything you mention above.