logoalt Hacker News

sehuggyesterday at 2:12 PM3 repliesview on HN

Hmmm, need a asm.js -> WASM transpiler maybe.

(compiling legacy code with legacy versions of Emscripten is quite frustrating, almost as bad as updating your JS code to be compatible with accumulated changes in the Emscripten ABI)


Replies

eqrionyesterday at 2:45 PM

Binaryen used to have an asm2wasm tool, but I believe it has been deprecated. I couldn't find any other equivalent. At least the asm.js code will keep working even with asm.js opts disabled, but it would be nice to have a translator.

Kaxotoday at 6:44 AM

In chrome at least asm.js is(/was?) handled by the wasm engine anyway. They essentially did that transpiling at load time.