Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Neon: JavaScript Native Extensions in Rust - Dreamforce 2017 OSS Booth

hone
November 06, 2017

Neon: JavaScript Native Extensions in Rust - Dreamforce 2017 OSS Booth

hone

November 06, 2017
Tweet

More Decks by hone

Other Decks in Programming

Transcript

  1. JavaScript Native Extensions (C++) • Unsafe • Risky - segfaults!

    • Maintenance burden • Contribution barrier • Cross Platform Support
  2. Meet Rust • Like C: compiled, statically typed, very fast

    • Unlike C: enjoyable to use, guarantees safety • "If it compiles, it doesn't crash" • Same guarantee as JavaScript with memory safety • Strong C/FFI support
  3. What is Neon? • Rust bindings for writing safe and

    fast native Node.js modules • Crash free memory protection (works with JS GC) • Parallelism (use multiple threads)