News for hackers. Stuff that matters.
Re:"Optimizations should be added to V8" for the asm.js subs... by iso8859-1 on Thursday March 28, 2013 @05:43AM (#5453969)
"Cross-browser". Why exactly is it asm.js cross-browser? Because they just said they'd put it in V8? The argument is moot since if Mozilla said that first about PNaCl (that they'd adopt it) it would be PNaCl that would be the cross-browser solution.

No, I don't care about backwards-compatibility. I care about the solution leveraging existing infrastructure and not being a hack.

Re:"Optimizations should be added to V8" for the asm.js subs... by masklinn on Thursday March 28, 2013 @06:05AM (#5454011)
> "Cross-browser". Why exactly is it asm.js cross-browser? Because they just said they'd put it in V8?

Because it's a strict subset of javascript which is already cross-browser.

> The argument is moot since if Mozilla said that first about PNaCl (that they'd adopt it) it would be PNaCl that would be the cross-browser solution.

PNaCl is still not done, still not fully specified and still full of Chrome implementation details via Pepper.

> No, I don't care about backwards-compatibility. I care about the solution leveraging existing infrastructure and not being a hack.

Which would exclude PNaCl since there's no existing PNaCl infrastructure.

Re:"Optimizations should be added to V8" for the asm.js subs... by Millennium on Thursday March 28, 2013 @12:19PM (#5455737)
asm.js is, at its heart, nothing more than a compiler hint. It tells the runtime that the JavaScript you're writing in this function follows some conventions that happen to be easy to optimize, but it's still JavaScript code. A browser that doesn't support asm.js will pause for a few nanoseconds to wonder what the heck that strange string at the start of the function is, then go on to execute the JavaScript code the same way it always does, with the same result as if it had known what asm.js is.
Re:"Optimizations should be added to V8" for the asm.js subs... by tomp on Thursday March 28, 2013 @05:55AM (#5453995)
> I don't care about backwards-compatibility. I care about the solution leveraging existing infrastructure

Isn't that one and the same?

Re:"Optimizations should be added to V8" for the asm.js subs... by bradleyjg on Thursday March 28, 2013 @01:30PM (#5456293)
As far as I can tell they haven't said they'd put it in V8. One member of the chromium team, who doesn't work in that area, has opened up a feature request.

This seems to be much ado about nothing unless and until it's accepted and assigned.