5 ms·
I recommend anyone wanting to experiment with WASM to check out https://github.com/dcodeIO/webassembly https://github.com/dcodeIO/webassembly which takes a lot
by almostdigital 9y ago
I recommend anyone wanting to experiment with WASM to check out https://github.com/dcodeIO/webassembly https://github.com/dcodeIO/webassembly which takes a lot of pain out of setting up the toolchain and lets you produce much leaner binaries as well.
Also keep an eye on https://github.com/dcodeIO/AssemblyScript https://github.com/dcodeIO/AssemblyScript :)
- blaze33 9y agoThanks for the link, I would probably have tried this had I stumbled on it before! I did an ask HN prior to writing this article but did not get that much answers: https://news.ycombinator.com/item?id=14483383 https://news.ycombinator.com/item?id=14483383
- reedlaw 9y agoHow about https://github.com/WebAssembly/binaryen https://github.com/WebAssembly/binaryen ?
- Matthias247 9y agoThis AssemblyScript thing looks like some nice idea for being able to work with a single language while still being able to compile some computationally-heavy but otherwise small modules down to WASM and using them later from JS/TS as an external module. I'm curious how this approach looks from an optimization point of view? I guess emscripten/LLVM can do more optimization than this the AssemblyScript/binaryen toolchain, and when one puts already the effort in for using WASM the goal should probably be to have as much optimization as possible.
- azakai 9y agoHard to be sure without measurements, but emscripten uses LLVM's optimizer and the binaryen optimizer, and AssemblyScript can benefit from the latter. So the question is how much the LLVM optimizer could help this type of code. For example, the LLVM optimizer can do smart things with aliasing and assumptions about undefined behavior in C code, but for a language like AssemblyScript those might not be relevant anyhow. But currently the binaryen optimizer is still missing some passes like GVN, so until we add those, that might be noticeable when doing comparisons here.
- scriptproof 9y agoIs is wasm and not WASM. Source: http://webassembly.org/ http://webassembly.org/