Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Features
Speaker Deck
PRO
Sign in
Sign up for free
Search
Search
Rust for Node.js Developers
Search
Giovanny Gongora
October 21, 2016
Technology
170
0
Share
Rust for Node.js Developers
Presented: Connect.Tech 2016
Giovanny Gongora
October 21, 2016
More Decks by Giovanny Gongora
See All by Giovanny Gongora
Memory Chronicles: Manage, Trace and Fix Memory Leaks
gioyik
0
150
Profile & Analyze Node.js Applications
gioyik
0
120
Node.js Contributor Workshop
gioyik
0
110
Profile & Analyze Node.js Applications like a Pro
gioyik
1
89
Leak Hunting - Finding and debugging a memory leak in Nodejs.pdf
gioyik
1
1k
Finding and debugging a memory leak in Node.js
gioyik
0
200
Road to LISP heaven
gioyik
1
140
Leak Hunting: Finding and debugging a memory leak in Node.js
gioyik
0
570
Performance first: Node.js and Rust
gioyik
0
200
Other Decks in Technology
See All in Technology
Hacobu Tech Deck
hacobu
PRO
0
110
Choose your own adventure in agentic design patterns
glaforge
0
140
MLOps導入のための組織作りの第一歩
akasan
0
340
AIでAIをテストする - 音声AIエージェントの品質保証戦略
morix1500
1
120
AI バイブコーティングでキーボード不要?!
samakada
0
590
Keeping Ruby Running on Cygwin
fd0
0
170
Good Enough Types: Heuristic Type Inference for Ruby
riseshia
1
250
No Types Needed, Just Callable Method Check
dak2
1
1.4k
AndroidアプリとCopilot Studioの統合
nakasho
0
110
Pure Intonation on Browser: Building a Sequencer with Ruby
nagachika
0
130
社内エンジニア勉強会の醍醐味と苦しみ/tamadev
nishiuma
0
220
自立を加速させる神器 - EMOasis #11
stanby_inc
0
150
Featured
See All Featured
Reality Check: Gamification 10 Years Later
codingconduct
0
2.1k
The Illustrated Guide to Node.js - THAT Conference 2024
reverentgeek
1
340
Everyday Curiosity
cassininazir
0
200
10 Git Anti Patterns You Should be Aware of
lemiorhan
PRO
659
61k
個人開発の失敗を避けるイケてる考え方 / tips for indie hackers
panda_program
122
21k
Agile Leadership in an Agile Organization
kimpetersen
PRO
0
130
The Impact of AI in SEO - AI Overviews June 2024 Edition
aleyda
5
800
Digital Ethics as a Driver of Design Innovation
axbom
PRO
1
260
Scaling GitHub
holman
464
140k
My Coaching Mixtape
mlcsv
0
100
The SEO Collaboration Effect
kristinabergwall1
1
420
Reflections from 52 weeks, 52 projects
jeffersonlam
356
21k
Transcript
Rust for Node.js Developers Giovanny Gongora / @gioyik
OUTLINE • What is Rust? • Why using Rust with
Node.js • Rust inside Node.js • FFI on Node.js • Let’s do it • More ways?
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
What does it look like? You can run this on
https://play.rust-lang.org if you don’t have Rust installed
WHY SHOULD I CARE?
WHY USING RUST WITH NODE.JS 1. Performance 2. Parallelism 3.
Bindings
ANY REAL ADVANTAGE WE COULD SEE? Yes, but not today
RUST INSIDE NODE.JS (really?)
THE PROBLEM “Start ten threads. Inside each thread, count from
one to five million. After all then threads are finished, print out ‘done!’”
Let’s create a new cargo project configure Cargo.toml
Edit the lib Build it
Create your node file Check the output
LET’S TRY A LESS COMPLEX EXAMPLE!
Let’s create a new cargo project configure Cargo.toml
Edit the lib Build it
Create your node file profit!
MORE WAYS?
LET’S TRY A COMPLEX EXAMPLE!
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
RUNO [PROTOTYPE] RuNo bridge is a command line tool which
generates C++ boilerplate add-on code to call Rust library from.
CONCLUSIONS
SHOULD I TRY RUST?
SO, USE RUST INSTEAD OF JAVASCRIPT ON WEB APPLICATIONS?
THANKS! More info at Rust Inside Other Languages Giovanny Gongora
/ @gioyik