I agree asm.js isn&#x27;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&#x27;t defined or even sketched out yet, so it&#x27;s impossible to guess).<p>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<p><a href="https:&#x2F;&#x2F;gist.github.com&#x2F;kripken&#x2F;910bfe8524bdaeb7df9a" rel="nofollow">https:&#x2F;&#x2F;gist.github.com&#x2F;kripken&#x2F;910bfe8524bdaeb7df9a</a><p>and<p><a href="https:&#x2F;&#x2F;gist.github.com&#x2F;wycats&#x2F;4845049dcf0f6571387a" rel="nofollow">https:&#x2F;&#x2F;gist.github.com&#x2F;wycats&#x2F;4845049dcf0f6571387a</a>