~/talk

Rust Native Module with Node-API

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

Shows building a native Node module with Node-API and Rust (examples using neon / napi bindings), compiling a Fibonacci function into a native add-on and comparing runtimes: pure JavaScript 22 seconds versus the native module ~6.4 seconds, roughly a quarter of the time. Describes using prebuild tooling to avoid recompiles across Node versions, cautions about bridge overhead (minimize crossings and data copies), and recommends keeping most logic in JS unless heavy compute justifies native code.

AI-written summary · about

  1. 0:00Introduction to talk
  2. 2:28Why use native modules
  3. 12:16When to avoid native modules
  4. 17:35Challenges with Node-API
  5. 20:49Evolution to Node-API
  6. 23:41Rust for native modules
  7. 24:41Performance demo comparison
  8. 27:33Tips for Node-API usage
  9. 28:57Q&A and closing
~/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.