3 ms·
> What makes asm.js "far more lightweight" than PNaCl? What more "lightweight" means here anyway? It's much simpler than LLVM and reuses the components of the
by pcwalton 14y ago
> What makes asm.js "far more lightweight" than PNaCl? What more "lightweight" means here anyway?
It's much simpler than LLVM and reuses the components of the JavaScript engine that already must exist in browsers.
- zaharpopov 14y ago> It's much simpler than LLVM and reuses the components of the JavaScript engine that already must exist in browsers. But LLVM IR has complexity for a reason - you need to be able to generate efficient code from it for multiple architectures. As I mentioned elsewhere, "reusing JS components" is a very unfortunate party line because it keeps us tied to this one JS forever and ever, and we should try to see beyond that.