WebAssembly
Learning notes and practises of WebAssembly.
Background
Solomon Hykes, the founder of Docker, has posted on Twiter:
WASI
The WASI (WebAssembly System Interface) is a modular system interface for WebAssembly.
Runtime
To run the wasm modules out of browser, it requires a runtime to execution the .wasm
or .wat
as VM. The runtime typically supports both WASI APIs as well.
-
The wasmer is proud of its performance.
-
It is a JIT-style runtime. It is now a project in Bytecode Alliance. WASI API is well supported: WASI tutorial
I suppose! wasmer doesn’t have much documentation on writing programs using the WASI API, while wasmtime has enough of a tutorial to get you started.
Debating about comparison on the runtimes
- A interesting thread discuss the wasmer vs. wasmtime from Developers: https://github.com/wasmerio/wasmer/issues/142
- Actually using WASM, examples with wasmer and wasmtime.
WASM-VDOM
Use wasm for comparing virtual DOM to optimize the performance: