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

Rust for Node.js Developers

Rust for Node.js Developers

Presented: Connect.Tech 2016

Giovanny Gongora

October 21, 2016
Tweet

More Decks by Giovanny Gongora

Other Decks in Technology

Transcript

  1. OUTLINE • What is Rust? • Why using Rust with

    Node.js • Rust inside Node.js • FFI on Node.js • Let’s do it • More ways?
  2. WHAT IS RUST? 1. A systems programming language 2. It

    focuses on speed, safety and concurrency 3. Great fit to write programs with specific time requirements 4. Ability to write low level code, like device drivers 5. No garbage collector
  3. What does it look like? You can run this on

    https://play.rust-lang.org if you don’t have Rust installed
  4. THE PROBLEM “Start ten threads. Inside each thread, count from

    one to five million. After all then threads are finished, print out ‘done!’”
  5. NEON Neon is a Rust bridge to the Node.js platform:

    an API (and a set of tools) for implementing binary Node modules in Rust
  6. RUNO [PROTOTYPE] RuNo bridge is a command line tool which

    generates C++ boilerplate add-on code to call Rust library from.