Hacker News new | past | comments | ask | show | jobs | submit login

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=as...

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.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: