-
Notifications
You must be signed in to change notification settings - Fork 6
Description
Where asm.js
works with code annotations forcing/hinting the types to the browser, webasm is more close to classic assembly than anything else available right now. However, it is still in an infancy state, browser support and tools are very limited and it'll be quite some work to port the lib to webasm.
You would have full control, though. And in some cases of the code that could be a huge win. And if webasm is supported in node.js then we could already profit from it on the server side, reducing running costs considerably.
Additionally we could also decide to only port hot code to webasm, certain tricky things in domain.js
for example where we know the browser has trouble optimizing for some reason or the other. No need to port the entire library. At first...
Obviously coding in asm is on a completely different level from js or higher languages in general.