Hacker News new | ask | show | jobs
by CoryG89 3114 days ago
Am I the only one wondering whether or not this was created only because of the irony of a WebAssembly interpreter being written in JavaScript?
2 comments

Maybe not, but I wouldn't be sure that that's it; the stated version on the top of the page is an important one, or at least is as long as IE 11 is a thing.
Wouldn't it be better to just deploy asm.js alongside wasm? Emscripten can easily generate both, and a simple check can select which script to load.

    if(window.WebAssembly != null){
        loadScript('script.wasm.js');
    }else{
        loadScript('script.asm.js');
    }
Quite possibly! Only one way to find out.
Actually polyfilling is only one of my goals. I think that it could work as a good playground for the spec since you can easily try out new things.