News for hackers. Stuff that matters.
Re:Asm.js: a strict subset of js for compilers – working draft by espadrine on Friday February 15, 2013 @02:09PM (#5227843)
Are there any thoughts on debugging this kind of code? How do we know that the code was correctly treated as asm.js, and if not, can we know why?
Re:Asm.js: a strict subset of js for compilers – working draft by dherman on Friday February 15, 2013 @02:12PM (#5227862)
The code has to be explicitly marked as asm.js, using a pragma similar to ES5 strict mode. This way if the code fails to validate, the errors can be reported to the browser's developer tools.

As for debugging, the story is the same as Emscripten. I believe there's plenty of work to do to make it better, but it's no different than the existing state of affairs. All we're doing is formalizing existing practice so that engines can capitalize on it and optimize better.