~/talk

Powering Up NodeJS Performance by Rust and WebAssembly

Talkat OpenJS World 2022 · 2022-06-06..06-10· [nodejs, webassembly]
slides:none on file

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

  1. 0:00Introduction and welcome
  2. 1:25Moore's law and software limits
  3. 2:50Why choose Rust over C++
  4. 4:16Running Rust in the web
  5. 5:19What is WebAssembly
  6. 6:41WebAssembly beyond the browser
  7. 8:03WasmEdge runtime explained
  8. 9:05Combining Node.js Rust and WASM
  9. 13:13Getting started with setup
  10. 14:58Demo walkthrough Rust code
  11. 16:41Node.js integration demo
  12. 18:48Machine learning inference demo
  13. 21:15Performance benefits and use cases
  14. 23:43Summary and ecosystem overview
  15. 25:09Q&A session
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.