Asm.js is, at best, a truly atrocious hack. Emscripten is only marginally better. They're both quite inferior when compared to NaCl and PNaCl, for instance.
Trying to further entrench JavaScript is not a step forward, and I don't think it's something that should be encouraged or considered positive. Actively trying to move away from JavaScript toward a more general, and sensibly-designed/implemented in-browser runtime would be beneficial. Even embedding Lua, Python, or some other reasonable language would be helpful. But creating horrid JavaScript subsets is not helpful.
Unless I'm mistaken, WebRTC mostly came out of Google, not Mozilla. So maybe this is not a good example for you to use?
Asm.js is, at best, a truly atrocious hack. Emscripten is only marginally better. They're both quite inferior when compared to NaCl and PNaCl, for instance.
Trying to further entrench JavaScript is not a step forward, and I don't think it's something that should be encouraged or considered positive. Actively trying to move away from JavaScript toward a more general, and sensibly-designed/implemented in-browser runtime would be beneficial. Even embedding Lua, Python, or some other reasonable language would be helpful. But creating horrid JavaScript subsets is not helpful.
Unless I'm mistaken, WebRTC mostly came out of Google, not Mozilla. So maybe this is not a good example for you to use?