|
|
|
|
|
by azakai
3837 days ago
|
|
I agree asm.js isn't fun to write by hand, but wasm is also primarily a compiler target. You might not necessarily find it easier to write (its text format isn't defined or even sketched out yet, so it's impossible to guess). If you just want to compile a few small functions with hot loops, it might be easiest to write them in C, and use a new option in emscripten that makes it easy to get just the output from those functions (no libc, no runtime support, etc.), see https://gist.github.com/kripken/910bfe8524bdaeb7df9a and https://gist.github.com/wycats/4845049dcf0f6571387a |
|