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
0
150
Rust for Node.js Developers
Presented: Connect.Tech 2016
Giovanny Gongora
October 21, 2016
Tweet
Share
More Decks by Giovanny Gongora
See All by Giovanny Gongora
Memory Chronicles: Manage, Trace and Fix Memory Leaks
gioyik
0
120
Profile & Analyze Node.js Applications
gioyik
0
89
Node.js Contributor Workshop
gioyik
0
77
Profile & Analyze Node.js Applications like a Pro
gioyik
1
71
Leak Hunting - Finding and debugging a memory leak in Nodejs.pdf
gioyik
1
910
Finding and debugging a memory leak in Node.js
gioyik
0
180
Road to LISP heaven
gioyik
1
110
Leak Hunting: Finding and debugging a memory leak in Node.js
gioyik
0
540
Performance first: Node.js and Rust
gioyik
0
180
Other Decks in Technology
See All in Technology
Kiroでインフラ要件定義~テスト を実施してみた
nagisa53
3
340
【OptimizationNight】数理最適化のラストワンマイルとしてのUIUX
brainpadpr
1
460
バクラクによるコーポレート業務の自動運転 #BetAIDay
layerx
PRO
1
930
AI時代の経営、Bet AI Vision #BetAIDay
layerx
PRO
1
2k
相互運用可能な学修歴クレデンシャルに向けた標準技術と国際動向
fujie
0
240
ZOZOTOWNの大規模マーケティングメール配信を支えるアーキテクチャ
zozotech
PRO
0
180
2025新卒研修・HTML/CSS #弁護士ドットコム
bengo4com
3
13k
Amazon GuardDuty での脅威検出:脅威検出の実例から学ぶ
kintotechdev
0
100
20250807 Applied Engineer Open House
sakana_ai
PRO
1
240
専門分化が進む分業下でもユーザーが本当に欲しかったものを追求するプロダクトマネジメント/Focus on real user needs despite deep specialization and division of labor
moriyuya
1
1.3k
Amazon Q と『音楽』-ゲーム音楽もAmazonQで作成してみた感想-
senseofunity129
0
130
Vision Language Modelと自動運転AIの最前線_20250730
yuyamaguchi
4
1.3k
Featured
See All Featured
Statistics for Hackers
jakevdp
799
220k
How to Think Like a Performance Engineer
csswizardry
25
1.8k
Balancing Empowerment & Direction
lara
1
540
Building Better People: How to give real-time feedback that sticks.
wjessup
367
19k
Cheating the UX When There Is Nothing More to Optimize - PixelPioneers
stephaniewalter
283
13k
Faster Mobile Websites
deanohume
308
31k
Building Applications with DynamoDB
mza
96
6.5k
Practical Tips for Bootstrapping Information Extraction Pipelines
honnibal
PRO
22
1.4k
Designing Experiences People Love
moore
142
24k
Bootstrapping a Software Product
garrettdimon
PRO
307
110k
It's Worth the Effort
3n
185
28k
Java REST API Framework Comparison - PWX 2021
mraible
33
8.8k
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