~/talk

Building Modern Native Add-ons for Node.js in 2021

Talkat OpenJS World 2021 · 2021-06-02..06-03· [nodejs]
links:none on file
slides:none on file

Covers concrete Node‑API changes: thread-safe functions with configurable initial thread count, max queue size and blocking vs non‑blocking posts; the Addon class and napi_set_instance_data for per‑instance state so native modules load safely in multiple JS worlds; async worker variants (progress, progress queue) and example increment binding that replaces global statics; new helpers for BigInt, Date, detaching ArrayBuffer, freeze/seal and UUID tagging; build/deploy options: node‑gyp or CMake.js plus prebuilt binaries via node‑pre‑gyp or prebuild and migration paths from NAN (MongoDB port cited).

AI-written summary · about

  1. 0:00Start
  2. 1:17Building Native Addons - compile code when installing package
  3. 2:29Installing Pre-Built Binaries - download if exists, otherwise build
  4. 7:17AsyncProgress Worker
  5. 7:48AsyncProgress Queue Worker
  6. 8:16Thread-safe Functions
  7. 17:31Self-Contained Add-ons - Tools - Addon and NODE API ADDON ()
  8. 21:16Additional Helper Methods - Node-API 8
  9. 24:31Resources for Getting Started
~/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.