4 ms·
This is moving fast. Does anyone know if theres a webassembly to js compiler to support legacy browsers?
by Illniyar 11y ago
This is moving fast.
Does anyone know if theres a webassembly to js compiler to support legacy browsers?
- s3th 11y agoThe Emscripten toolchain can be used to produce both WebAssembly and asm.js from the same codebase [0]. There are also the nascent beginnings of a translation tool from WebAssembly to asm.js here [1] (look for wasm2asm). Ultimately, it should be possible to write a streaming polyfill for WebAssembly, but no one has gotten around to making anything suitable for production yet. You're better off producing a separate fallback asm.js bundle for now. [0]: https://github.com/kripken/emscripten/wiki/WebAssembly https://github.com/kripken/emscripten/wiki/WebAssembly [1]: https://github.com/webassembly/binaryen https://github.com/webassembly/binaryen
- alimbada 11y agoYes, you should have a read of the FAQ: https://github.com/WebAssembly/design/blob/master/FAQ.md https://github.com/WebAssembly/design/blob/master/FAQ.md