Published
Edited
May 14, 2018
Importers
25 stars
Insert cell
Insert cell
adderModule.addTwo(1,2)
Insert cell
Insert cell
factorialModule.fac(10)
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
function compileWasm(code) {
const module = wabt.parseWat('unnamed.wat', code);
module.resolveNames();
module.validate();
const binary = module.toBinary({log: true, write_debug_names:true});
const {WebAssembly} = window;
const wasm = new WebAssembly.Module(binary.buffer);
const instance = new WebAssembly.Instance(wasm, {});
return instance.exports;
}
Insert cell
Insert cell
Insert cell

Purpose-built for displays of data

Observable is your go-to platform for exploring data and creating expressive data visualizations. Use reactive JavaScript notebooks for prototyping and a collaborative canvas for visual data exploration and dashboard creation.
Learn more