Hacker News new | past | comments | ask | show | jobs | submit login

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.



Right, asm.js is basically a portable bytecode targeting a 32-bit virtual machine.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: