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
Neon: JavaScript Native Extensions in Rust - Dr...
Search
Sponsored
·
SiteGround - Reliable hosting with speed, security, and support you can count on.
→
hone
November 06, 2017
Programming
90
0
Share
Neon: JavaScript Native Extensions in Rust - Dreamforce 2017 OSS Booth
https://github.com/hone/electronjs-mandelbrot
https://github.com/hone/neon-mandelbrot
hone
November 06, 2017
More Decks by hone
See All by hone
Limitless - RubyUnconf Hamburg 2019
hone
0
180
Deep Dive: Cloud Native Buildpacks - KubeCon EU 2019
hone
1
350
Intro: Cloud Native Buildpacks - KubeCon EU 2019
hone
0
66
KubeCon 2018 - Intro: Cloud Native Buildpacks
hone
0
170
A Droid's Journey - CodeDaze 2018
hone
0
120
A Droid's Journey - RubyKaigi 2018
hone
0
860
Helix: Native Extensions for Everyone - RubyConf Colombia 2017
hone
1
190
Leveraging Rust with mruby: Loving our fellow Windows® users - FOSDEM 2017
hone
0
290
After A Decade: Still a Rubyist - Red Dot Ruby Conference 2016
hone
0
370
Other Decks in Programming
See All in Programming
Why Laravel apps break—Mastering the fundamentals to keep them maintainable
kentaroutakeda
1
310
oxlintはeslint/typescript-eslintを置き換えられるのか
shomafujita
2
290
[2026年度第1回ORセミナー] 計画最適化ベンチャーと競技プログラミング人材
terryu16
0
120
Inside Stream API
skrb
1
360
Augmenting AI with the Power of Jakarta EE
ivargrimstad
0
350
権限チェックの一貫性を型で守る TypeScript による多層防御
mnch
4
970
Java × distroless で 軽量なコンテナイメージを / Java on Distroless
contour_gara
0
410
These Five Tricks Can Make Your Apps Greener, Cheaper, & Nicer
hollycummins
0
250
今さら聞けないCancellationToken
htkym
0
200
ECR拡張スキャンでSBOMを収集して サプライチェーン攻撃の影響調査を 爆速で終わらせてみた
akihisaikeda
2
210
Old Dog, New Tricks: The Java 25 Reinvention - JNation
bazlur_rahman
0
130
横断組織出身のQAEがインプロセスQAEでつまずいたこと・活かせたこと
ty89
0
460
Featured
See All Featured
Exploring anti-patterns in Rails
aemeredith
3
380
Stewardship and Sustainability of Urban and Community Forests
pwiseman
0
220
What’s in a name? Adding method to the madness
productmarketing
PRO
24
4.1k
Impact Scores and Hybrid Strategies: The future of link building
tamaranovitovic
0
290
Practical Orchestrator
shlominoach
191
11k
Groundhog Day: Seeking Process in Gaming for Health
codingconduct
0
190
ReactJS: Keep Simple. Everything can be a component!
pedronauck
666
130k
How To Stay Up To Date on Web Technology
chriscoyier
790
250k
Six Lessons from altMBA
skipperchong
29
4.3k
Are puppies a ranking factor?
jonoalderson
1
3.4k
The Organizational Zoo: Understanding Human Behavior Agility Through Metaphoric Constructive Conversations (based on the works of Arthur Shelley, Ph.D)
kimpetersen
PRO
0
340
Designing Dashboards & Data Visualisations in Web Apps
destraynor
231
55k
Transcript
Neon JavaScript Native Extensions in Rust
JavaScript Native Extensions (C++) • Unsafe • Risky - segfaults!
• Maintenance burden • Contribution barrier • Cross Platform Support
None
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
Cargo - Dependency Manager
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)
Mandelbrot Demo
None
z n+1 = z n 2 + c
DEMO https://github.com/hone/electronjs-mandelbrot https://github.com/hone/neon-mandelbrot
Wire App
None
Neon @ Heroku/Salesforce
Heroku/SFDX CLI
Distribution