News for hackers. Stuff that matters.
Re:A WebAssembly interpreter written in JavaScript by CoryG89 on Wednesday December 13, 2017 @05:26PM (#15918278)
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?
Re:A WebAssembly interpreter written in JavaScript by steveklabnik on Wednesday December 13, 2017 @05:43PM (#15918408)
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.
Re:A WebAssembly interpreter written in JavaScript by DiThi on Wednesday December 13, 2017 @07:20PM (#15918959)
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');
    }
Re:A WebAssembly interpreter written in JavaScript by steveklabnik on Wednesday December 13, 2017 @09:04PM (#15919432)
Quite possibly! Only one way to find out.
Re:A WebAssembly interpreter written in JavaScript by xtuc on Thursday December 14, 2017 @02:55AM (#15920646)
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.