https://github.com/AssemblyScript/assemblyscript
>AssemblyScript compiles strictly typed TypeScript (basically JavaScript with types) to WebAssembly using Binaryen. It generates lean and mean WebAssembly modules while being just an npm install away.
https://dev.to/jtenner/an-assemblyscript-primer-for-typescri...
Here's a great example of a project that uses it:
https://github.com/torch2424/wasmboy
>️Gameboy Emulator Library written in Web Assembly using AssemblyScript, Debugger/Shell in Preact ️
Here's an excellent talk about wasmboy by the author, Aaron Turner -- he's done some really outstanding work:
https://www.youtube.com/watch?v=ZlL1nduatZQ
Since you can compile AssemblyScript into JavaScript with the TypeScript compiler as well as into WebAssembly, you can compare the speed of JavaScript -vs- WebAssembly on the same source code. Aaron did some interesting benchmarks using wasmboy, in the great tradition of using GameBoy emulators to benchmark JavaScript engines:
https://medium.com/@torch2424/webassembly-is-fast-a-real-wor...