~/talk

Building native Node.js addons in Reason

Talkat ReasonConf 2018 · 2018-05-11..05-13· [nodejs, rust]
slides:none on file

Shows how to build a real Node.js native addon from Reason/OCaml: initialize with npm, run camlnode + dune build to produce a .node shared object, and register via Node’s N-API rather than raw V8 or NAN. Demonstrates converting values (value_to_float/value_to_string), composing signature codecs to validate args, creating functions exported to JS, and attaching OCaml data with extensible externals. Live demo mostly works but notes added N-API safety tradeoffs: persistent refs hurt perf and leaks are possible.

AI-written summary · about

  1. 0:00Start
  2. 3:29Access to the Platform
  3. 5:34V8 Api
  4. 11:20The Build System
  5. 12:11Demo
  6. 17:09Abstract Types
  7. 21:44Create a Javascript Function
  8. 26:14Signature Wrap
  9. 34:07Ply Function
  10. 35:49String Codec
  11. 43:13Constructor
~/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.