Can regular JavaScript be converted to asm.js, or is it only to speed up statically-typed low-level languages?

前端 未结 7 2066
孤街浪徒
孤街浪徒 2020-12-13 05:42

I have read the question How to test and develop with asm.js?, and the accepted answer gives a link to http://kripken.github.com/mloc_emscripten_talk/#/.

The conclus

相关标签:
7条回答
  • 2020-12-13 06:32

    check this http://badassjs.com/post/43420901994/asm-js-a-low-level-highly-optimizable-subset-of

    basically you need check that your code would be asm.js compatible (no coercion or type casting, you need to manage the memory, etc). The idea behind this is write your code in javascript, detect the bottle neck and do the changes in your code for use asm.js and aot compilation instead jit and dynamic compilation...is a bit PITA but you can still use javascript or other languages like c++ or better..in a near future, lljs.....

    0 讨论(0)
提交回复
热议问题