Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

No, it's still JavaScript. The fact that it's compressed or not human-readable doesn't make it bytecode.


"It might as well be bytecode."


So can you add some dynamic code into asm.js and expect same performance? Asm.js is an assembly that looks like JavaScript for compatibility and readability.


No, asm.js code that parses successfully is compiled ahead of time. It is a strict subset of the JavaScript programming language. If you use parts other than the subset, it will fail to parse as valid asm.js code and revert to the interpreter/JITs.




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

Search: