3 ms·
https://asmjs.org/ https://asmjs.org/ It's a statically typed subset of JS that uses typed arrays for machine-typed memory and JS's bitwise operators for int32
by BrendanEich 9y ago
https://asmjs.org/ https://asmjs.org/
It's a statically typed subset of JS that uses typed arrays for machine-typed memory and JS's bitwise operators for int32 and uint32 casts, and + for to-IEEE754-double, etc.
It is as fast as memory-safe C-like variants already, see
https://arewefastyet.com/#machine=29&view=breakdown&suite=asmjs-ubench https://arewefastyet.com/#machine=29&view=breakdown&suite=as...
https://arewefastyet.com/#machine=29&view=breakdown&suite=asmjs-apps https://arewefastyet.com/#machine=29&view=breakdown&suite=as...
I'm not sure why the native C++ (clang) gray line stops over a year ago. Perhaps @azakai can say.