Robertvokac (talk | contribs) No edit summary |
Robertvokac (talk | contribs) No edit summary |
||
(2 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
Asm.js is a strict subset of JavaScript, that C/C++ code can be compiled to. | Asm.js is a strict subset of [[JavaScript]], that [[C]]/[[C++]] code can be compiled to. | ||
An asm.js compiled C/C++ code can run in any browser, because it is JavaScript | An asm.js compiled C/C++ code can run in any [[web browser]], because it is JavaScript. | ||
Asm.js is strongly typed because it uses techniques like explicit conversion of values to numbers using bit operations. | |||
== Performance == | |||
Asm.js is more performant, than JavaScript, because it is a highly-optimized subset of JavaScript. | |||
Asm.js is usually less performant than [[WebAssembly]]. | Asm.js is usually less performant than [[WebAssembly]]. | ||
== What after asm.js? == | |||
Asm.js is superseded by WebAssembly. | Asm.js is superseded by WebAssembly. | ||
Line 15: | Line 21: | ||
[https://mrale.ph/blog/2013/03/28/why-asmjs-bothers-me.html? https://mrale.ph/blog/2013/03/28/why-asmjs-bothers-me.html?] | [https://mrale.ph/blog/2013/03/28/why-asmjs-bothers-me.html? https://mrale.ph/blog/2013/03/28/why-asmjs-bothers-me.html?] | ||
[[Category:Running C or ++ code in web browser]] | [[Category:Running C or C++ code in web browser]] |
Latest revision as of 09:53, 29 December 2024
Asm.js is a strict subset of JavaScript, that C/C++ code can be compiled to.
An asm.js compiled C/C++ code can run in any web browser, because it is JavaScript.
Asm.js is strongly typed because it uses techniques like explicit conversion of values to numbers using bit operations.
Performance
Asm.js is more performant, than JavaScript, because it is a highly-optimized subset of JavaScript.
Asm.js is usually less performant than WebAssembly.
What after asm.js?
Asm.js is superseded by WebAssembly.
External links
https://en.wikipedia.org/wiki/Asm.js