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

前端 未结 7 2067
孤街浪徒
孤街浪徒 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:28

    It may be possible to convert regular JavaScript into ams.js by first compiling it into C or C++, and then compiling the generated code into asm.js using Emscripten. I'm not sure if this would be practical, but it's an interesting concept nonetheless.

    More recently, I found another tool called NectarJS that compiles JavaScript into WebAssembly and ASM.js.

提交回复
热议问题