Let's build with WebAssembly!
summary
WebAssembly compiles C/C++/Rust into a binary module that runs in browsers with 87% browser support and often big speedups — Figma saw ~3x faster loads, a bio tool hit 20x faster. Demo uses emscripten for C/C++, and Rust tooling: wasm-pack + wasm-bindgen, with web-sys/js-sys to call window/document. A Rust example compiles, exports a function, shows alert and appends an H1 to the DOM; a browser video editor runs smoother when JS is disabled. Streaming compilation and direct-to-CPU execution explain the performance.
AI-written summary · about
chapters (19)
- 0:00Intro
- 0:40About Tejas
- 1:35About WebAssembly
- 4:50Benefits of WebAssembly
- 8:40Definition of WebAssembly
- 21:30How to play with WebAssembly
- 26:40Installing NPM
- 26:52Installing dependencies
- 27:45Cargo Tunnel
- 29:00Source Code
- 29:16Rust
- 30:10Console
- 30:35Alert
- 31:36Import WebAssembly
- 35:57What happened
- 37:04binary instructions
- 37:19emoji
- 37:32WebAssembly vs JavaScript
- 38:53Whats next
related talks
43mDo things blazingly fast with WebAssembly
41mCreating High-Performance Web Apps with WebAssembly
25mFast future with WebAssembly
53mWebAssembly – To the browser and beyond!
33mWebpack + WebAssembly the future
27mFast future with WebAssembly
47mRewrite the web with Rust and Web Assembly
36mWhy you should consider Web Assembly in your next frontend project
