~/talk

Introduction to native extensions

TalkinSpanishat NodeConf Argentina 2018 · 2018-10-18..10-20· [nodejs]
links:none on file
slides:none on file

Explains how to build Node native addons using binding.gyp and node-gyp, and how to use N-API or nan plus worker threads to move CPU-heavy work off the main event loop. Presents an experiment processing 30k items showing performance differences: ~16 req/s with naive workers, ~67 req/s using object instances, and ~274 req/s using buffer/shared memory, while noting the need for explicit binary builds, manual memory management, and careful integration to avoid blocking and unsafe access to JavaScript.

AI-written summary · about

  1. 0:00Native extensions overview
  2. 2:07What are native extensions
  3. 5:03Tools for native extensions
  4. 7:16NAPI advantages
  5. 9:43Node-API evolution
  6. 10:24Basic extension example
  7. 13:43CPU-intensive processing
  8. 18:44Buffers vs objects
  9. 21:16Performance results
  10. 23:44Summary
~/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.