AssemblyScript [1] is an example of a subset of JavaScript being compiled to fast WebAssembly. But it is very static code. If you want to run dynamic JavaScript fast, you need the more sophisticated strategies used by modern JavaScript engines.<p>[1] <a href="https://www.assemblyscript.org/" rel="nofollow">https://www.assemblyscript.org/</a>
You mean the client? That'd be an intermediate step to metal. If you want speed, the fewer intermediate steps the better.<p>Otherwise I don't understand the question.