Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Sign up for free
Menu
Search
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Pricing
Search
Sign in
Sign up for free
Rust for Node.js Developers
Search
Giovanny Gongora
October 21, 2016
Technology
180
0
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
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
170
Profile & Analyze Node.js Applications
gioyik
0
140
Node.js Contributor Workshop
gioyik
0
120
Profile & Analyze Node.js Applications like a Pro
gioyik
1
110
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
220
Road to LISP heaven
gioyik
1
160
Leak Hunting: Finding and debugging a memory leak in Node.js
gioyik
0
590
Performance first: Node.js and Rust
gioyik
0
230
Other Decks in Technology
See All in Technology
宣言型部分更新は何を解決しどこへ向かうのか
shuta13
1
450
Optunaの最新リリースv5.0について
pfn
PRO
0
120
Post AI時代のリファクタリング実践記 / Refactoring in the post AI era
kaminashi
1
230
"優秀な誰か"の下位互換にならないために
yut0naga1_fa
1
1.8k
Running Kotlin + Quarkus with Lambda
nealle
1
3.7k
ブラウザとサーバーから考えるAI時代のフロントエンド監視
shogo4131
3
940
パッチ更新でterraform initが落ちた日
grimoh
1
140
Railsで挑む大量データ永続化 〜600億件を永続化するための設計とボトルネックとの戦い〜
occhi
1
580
継続的なAIコスト最適化
bgpat
1
340
実践!Cloud Run ハンズオン!! / Cloud Run handson
y0hgi
2
280
「事実」を「計測」して、「解釈」する 〜AWS Lambdaのメモリ最適解の見つけ方〜
maimyyym
0
170
hackers_champloo_2026_tidb
makocchi
0
160
Featured
See All Featured
The AI Search Optimization Roadmap by Aleyda Solis
aleyda
2
6.3k
AI Search: Where Are We & What Can We Do About It?
aleyda
0
8.1k
エンジニアに許された特別な時間の終わり
watany
109
250k
Data-driven link building: lessons from a $708K investment (BrightonSEO talk)
szymonslowik
1
1.4k
The Psychology of Web Performance [Beyond Tellerrand 2023]
tammyeverts
49
3.6k
Sharpening the Axe: The Primacy of Toolmaking
bcantrill
46
3k
Groundhog Day: Seeking Process in Gaming for Health
codingconduct
0
410
Save Time (by Creating Custom Rails Generators)
garrettdimon
PRO
33
5.2k
Redefining SEO in the New Era of Traffic Generation
szymonslowik
1
480
Facilitating Awesome Meetings
lara
57
7.2k
Building Adaptive Systems
keathley
44
3.2k
Keith and Marios Guide to Fast Websites
keithpitt
413
23k
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