34 ms·
In a way NaCl offers better backwards compatibility as the code can be compiled to both NaCl and Javascript simultaneously. asm.js javascript offers subpar perf
by asdfaoeu 13y ago
In a way NaCl offers better backwards compatibility as the code can be compiled to both NaCl and Javascript simultaneously. asm.js javascript offers subpar performance on non asm.js platforms as it is optimised to a specific subset that would have no benefit on those. Also long run asm.js sounds like a terrible format when you consider the extra overhead of massive javascript files that could be concisely encoded like NaCl.
- azakai 13y ago> asm.js javascript offers subpar performance on non asm.js platforms What kind of browser do you consider a "non-asm.js platform"? Chrome for example is not detecting asm.js specifically, but still optimizes for the types of patterns in asm.js code. As a consequence it can run asm.js code very well, on par with Firefox in many cases, for example https://docs.google.com/a/mozilla.com/spreadsheet/ccc?key=0AkuGewEm05tZdFdKQlEtaFBmX3NjTWlHOVlDbXloY1E#gid=2 https://docs.google.com/a/mozilla.com/spreadsheet/ccc?key=0A...