wasm-bindgen is an awesome tool made by rustwasm team, make it very easy to expose Rust’s data/functions to JavaScript and vice versa. To use, you can add a #[wasm_bindgen] as an annotation the code…
WebAssembly is executed using a stack-based virtual machine. There are two types of execution of a WASM module: Instance Execution: If the module contains a start section, the referenced function here…
Table is another shared instance in WebAssembly just like Linear Memory, but it can only store function references. It can be shared between modules, and all you can do with tables is to make indirect…
Linear Memory in WebAssembly is a contiguous and mutable array of uninterpreted bytes. It is shared between the WASM module and the host runtime. It can be expanded by calling WebAssembly.Memory.grow…
Just like a good-old-Assembly program, a WebAssembly module is made up of different sections: (Source: rsms/Introduction to WebAssembly) The type section contains a list of each unique function…
WebAssembly is a new type of code that can be loaded and run by the JavaScript VM on web browsers. It can also be run natively on the computer by other WASM runtimes like Wasmer. WebAssembly is fast…