5 ms·
V8 is implementing optimizations for asm.js, as highlighted in Google I/O. (It is ignoring the "use asm" directive, though.) So there is some measure of buy-in
by pcwalton 13y ago
V8 is implementing optimizations for asm.js, as highlighted in Google I/O. (It is ignoring the "use asm" directive, though.) So there is some measure of buy-in from other browser vendors.
There is also a spec for asm.js and a relatively small API footprint, making it an open standard, albeit one not (yet) sanctioned by ECMA.
- wslh 13y agoBut there is a penalty in performance with solutions like asm.js. Am I right?
- mwcampbell 13y agoasm.js is optimized for ahead-of-time verification and compilation. In this respect it's on an equal footing with PNaCl. Why would asm.js necessarily have worse performance?
- lucian1900 13y agoV8 is fixing bugs they had that caused asm.js-style JavaScript to be slower than it needs to be. I doubt they'll honour the "use asm" directive in the near future. asm.js is indeed a smaller API. I guess extreme pragmatism is what has been driving the web, but it can be argued whether that's great or terrible :(
- mwcampbell 13y agoShortest-path evolution has the best chance of winning, and asm.js is the shortest path for everyone except Google.
- cromwellian 13y agoWinning what? If 500+ million NaCl enabled Chrome users couldn't set off a revolution in web gaming, why would asm.js? Reality is, gamers don't really care about what the implementation details are, and whether someone is distributed as web, or as installable download, or via Optical Disc. They want the best game that maximizes the bang for their buck. None of the proposed web solutions do that, although NaCL promises access to more system resources than asm.js does.
- kevingadd 13y agoWell, for one thing, NaCl was a stunning failure because it required platform-specific compiles. For another thing, it only worked on the Chrome Web Store, and nobody gives a shit about the Chrome Web Store. It also didn't work on Android... But yeah, I'm sure it's just because all code-in-the-browser technologies are doomed and asm.js is too, not because Google's execution was completely incompetent.
- iso8859-1 13y ago"was"? What about the linked Google announcement? I'm pretty sure PNaCl will work on Android, I think that's why they made it. Why are all code-in-the-browser technologies doomed? I'd really like an explanation, especially since you have a stake in the game (JSIL).
- chinpokomon 13y agoI'm pretty sure PNaCl was created to solve the disconnect between ARM based Chromebooks and Atom based Chromebooks. If it also works for Chrome on Android, I think that is a happy side effect, especially since PNaCl was introduced (through flags) in Chrome shortly after the Samsung ARM Chromebook was released. If you want to create packaged Chrome applications for the Chrome Store, you want them to work regardless of the machine architecture.