News for hackers. Stuff that matters.
Re:Bringing Asm.js to Chakra and Microsoft Edge by simcop2387 on Thursday May 07, 2015 @03:30PM (#9507650)
It's likely because asm.js isn't at all related to LLVM. Emscripten and the like use LLVM IR to compile to asm.js but that doesn't mean that asm.js is LLVM IR. asm.js is actually just a restricted subset of javascript that avoids a lot of things that invoke the garbage collector, forces certain type constraints (variables have static types that can be inferred at parse/compile time), and emulation of pointers using a block of memory among a host of other things. LLVM just gets used the most because Emscripten makes for a really easy way to target the platform.
Re:Bringing Asm.js to Chakra and Microsoft Edge by TazeTSchnitzel on Thursday May 07, 2015 @03:35PM (#9507690)
Right, asm.js is basically a portable bytecode targeting a 32-bit virtual machine.