2 ms·
This doesn't sound right. It's a subset of javascript, you are still shipping javascript to the browser... which is then parsed and then jitted in said browser.
by justncase80 13y ago
This doesn't sound right. It's a subset of javascript, you are still shipping javascript to the browser... which is then parsed and then jitted in said browser. Which is an extra step above bitcode, where you just jit it as is. Albeit it's specifically crafted to be easier to optimize but it is still javascript that you are sending to the browser.
I feel like someone is trying too hard to make javascript into something it isn't and shouldn't be. Javascript does it's thing pretty well, why is there no room for other tools in the toolbox?
- 0x0 13y agoI doubt parsing and validating ascii asm.js is much more work than parsing and validating binary llvm.
- alexchamberlain 13y agoI call Bullshit.
- pcwalton 13y agohttps://github.com/dherman/asm.js/tree/master/lib https://github.com/dherman/asm.js/tree/master/lib is about 1,500 lines of code. The contents of Bitcode/Reader/ in LLVM are about 3,000 lines of code alone, and that does not include the definition of LLVM data structures, the validator, etc.