Wednesday, September 25, 2013

Chrome Native Client vs. Firefox asm.js

Google's dilemma: A faster but fragmented Web? | Internet & Media - CNET News:
"What is Native Client?

NaCl is a special-purpose environment for running adapted C or C++ programs in a browser at close to the native speed. It provides security mechanisms to ensure that people aren't just clicking on a link and running malware that could wreak havoc on their machines. It can handle software that's heavily threaded -- meaning different elements run simultaneously for better performance.

By running programs adapted from their original form written in the C or C++ programming languages, Native Client reaches close to the speed of native software on a PC. Google thinks NaCl speeds can approach a few percent of native-software speed."
...

"Brendan Eich, the original creator of JavaScript and now Mozilla's chief technology officer, prefers an alternative that his team is building into Firefox: asm.js. With asm.js support, a browser can run a special subset of JavaScript instructions much faster, and with tools like Mozilla's Emscripten, programmers can convert their C or C++ software into that subset.

In raw computation speed asm.js could match Native Client" for a project like the Google+ photo-editing software, Eich said,"



'via Blog this'

No comments: