一些手写 WAT(WebAssembly) 的格式的例子

poetry

https://github.com/FantasyInternet/poetry

一门简单的编程语言. runtime 和 stdlib 用 wasm 手写, 内存处理, 数组处理, 字符串处理, 很有学习参考的意义.

wat2wasm

https://webassembly.github.io/wabt/demo/wat2wasm/

几个很简单的 demo. 给出了对应的 WASM 二进制注释的对比

raw wasm

https://github.com/binji/raw-wasm/

jit, raytrace 之类的一些 demo, 偏底层模拟和算法. 略复杂.

hand-crafted-wasm

https://github.com/austintheriot/hand-crafted-wasm

Creative coding and other mischief in handwritten WebAssembly, using the WebAssembly .wat text format.

一些比较复杂的 demo. 调用 Canvas 渲染做绘图.


评论

临时搜集的. 后边遇到再整理一下, 便于理解更多 WASM 运行的原理.

你可能感兴趣的:(webassembly)