Powering Up NodeJS Performance by Rust and WebAssembly
summary
Shows how to compile specific Rust functions into a .wasm module and a generated Node.js glue file, then call that module from Node to offload CPU work (example: a simple “append hello” endpoint that returns “hello opencs” via curl). Uses Rust compiled to WebAssembly and runs on a WasmEdge runtime with AOT compilation; a MobileNet TensorFlow inference demo runs inside Rust instead of JS. Claim: native JS inference took minutes, tfjs ~10ms, and Rust via WASM drops it to <1ms.
AI-written summary · about
chapters (15)
- 0:00Introduction and welcome
- 1:25Moore's law and software limits
- 2:50Why choose Rust over C++
- 4:16Running Rust in the web
- 5:19What is WebAssembly
- 6:41WebAssembly beyond the browser
- 8:03WasmEdge runtime explained
- 9:05Combining Node.js Rust and WASM
- 13:13Getting started with setup
- 14:58Demo walkthrough Rust code
- 16:41Node.js integration demo
- 18:48Machine learning inference demo
- 21:15Performance benefits and use cases
- 23:43Summary and ecosystem overview
- 25:09Q&A session
related talks
22mWebAssembly beyond the browser
20mUsing Rust and WASM
30mImproving web app with Rust and WASM
26mPaving the Way of WebAssembly in the Intersection of Machine Learning and Cloud Native
41mWebAssembly Based AI as a Service
41mLet's build with WebAssembly!
41mDemystifying WebAssembly, Through the Eyes of A Beginner
47mRewrite the web with Rust and Web Assembly
