×
Create a new article
Write your page title here:
We currently have 233 articles on Open Eggbert. Type your article name above or click on one of the titles below and start writing!



Open Eggbert
233Articles

Asm.js: Difference between revisions

No edit summary
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 and it is more performant, because it is a highly-optimized subset of 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

https://johnresig.com/blog/asmjs-javascript-compile-target/

http://asmjs.org/

https://mrale.ph/blog/2013/03/28/why-asmjs-bothers-me.html?