WebAssembly and Node.js
summary
Node 8 runs WebAssembly and the demo compiles a C compression library to wasm with emscripten then loads it in Node, exposing a decoder via a small JS shim. The build produces a wasm module that interoperates with Node buffers, uses malloc/free into linear memory, and the wrapper is about 19 lines of wrapper code. Performance sits below native bindings but beats pure JS decoders; the module is sandboxed and portable, drops into any wasm‑capable VM, and the prototype works.
AI-written summary · about
chapters (15)
- 0:00Intro
- 0:33Overview
- 1:20What is WebAssembly
- 3:51Portable
- 4:41Size Load Time Efficient
- 5:30Suitable for Compilation
- 6:53Suitable for Web
- 7:53JavaScript and Web
- 8:37JavaScript
- 9:43WebAssembly
- 10:49Validation
- 11:50Linear Memory
- 12:30typed arrays
- 15:10binary
- 23:16why use WebAssembly
related talks
27mWebAssembly: what does it mean for JavaScript and Node.JS?
28mWebAssembly: Of Portability, and Performance
44mWebAssembly
42mWebAssembly? Web and Assembler? WTF!
42mWebAssembly: A New Compilation Target for the Web
23mHow Webassembly Will Change the Way You Write Javascript
53mWebAssembly – To the browser and beyond!
44mWebAssembly: the browser is now a real virtual machine
