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
hone
November 06, 2017
Programming
0
71
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
Tweet
Share
More Decks by hone
See All by hone
Limitless - RubyUnconf Hamburg 2019
hone
0
160
Deep Dive: Cloud Native Buildpacks - KubeCon EU 2019
hone
1
260
Intro: Cloud Native Buildpacks - KubeCon EU 2019
hone
0
40
KubeCon 2018 - Intro: Cloud Native Buildpacks
hone
0
140
A Droid's Journey - CodeDaze 2018
hone
0
92
A Droid's Journey - RubyKaigi 2018
hone
0
690
Helix: Native Extensions for Everyone - RubyConf Colombia 2017
hone
1
160
Leveraging Rust with mruby: Loving our fellow Windows® users - FOSDEM 2017
hone
0
260
After A Decade: Still a Rubyist - Red Dot Ruby Conference 2016
hone
0
330
Other Decks in Programming
See All in Programming
PHPのバージョンアップ時にも役立ったAST
matsuo_atsushi
0
230
プログラミング言語学習のススメ / why-do-i-learn-programming-language
yashi8484
0
160
pylint custom ruleで始めるレビュー自動化
shogoujiie
0
150
CSS Linter による Baseline サポートの仕組み
ryo_manba
1
150
未経験でSRE、はじめました! 組織を支える役割と軌跡
curekoshimizu
1
150
生成AIで加速するテスト実装 - ロリポップ for Gamersの事例と 生成AIエディタの活用
kinosuke01
0
120
「個人開発マネタイズ大全」が教えてくれたこと
bani24884
1
190
もう僕は OpenAPI を書きたくない
sgash708
5
1.9k
Ruby on cygwin 2025-02
fd0
0
180
kintone開発を効率化するためにチームで試した施策とその結果を大放出!
oguemon
0
150
PRレビューのお供にDanger
stoticdev
1
230
Jakarta EE meets AI
ivargrimstad
0
340
Featured
See All Featured
Measuring & Analyzing Core Web Vitals
bluesmoon
6
250
10 Git Anti Patterns You Should be Aware of
lemiorhan
PRO
656
59k
The Art of Delivering Value - GDevCon NA Keynote
reverentgeek
10
1.3k
[RailsConf 2023 Opening Keynote] The Magic of Rails
eileencodes
28
9.3k
Six Lessons from altMBA
skipperchong
27
3.6k
Designing on Purpose - Digital PM Summit 2013
jponch
117
7.1k
Raft: Consensus for Rubyists
vanstee
137
6.8k
We Have a Design System, Now What?
morganepeng
51
7.4k
It's Worth the Effort
3n
184
28k
Fireside Chat
paigeccino
34
3.2k
YesSQL, Process and Tooling at Scale
rocio
172
14k
Embracing the Ebb and Flow
colly
84
4.6k
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