Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Speaker Deck
PRO
Sign in
Sign up for free
Neon: JavaScript Native Extensions in Rust - Dreamforce 2017 OSS Booth
hone
November 06, 2017
Programming
0
44
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
130
Deep Dive: Cloud Native Buildpacks - KubeCon EU 2019
hone
1
120
Intro: Cloud Native Buildpacks - KubeCon EU 2019
hone
0
25
KubeCon 2018 - Intro: Cloud Native Buildpacks
hone
0
72
A Droid's Journey - CodeDaze 2018
hone
0
40
A Droid's Journey - RubyKaigi 2018
hone
0
310
Helix: Native Extensions for Everyone - RubyConf Colombia 2017
hone
1
140
Leveraging Rust with mruby: Loving our fellow Windows® users - FOSDEM 2017
hone
0
230
After A Decade: Still a Rubyist - Red Dot Ruby Conference 2016
hone
0
250
Other Decks in Programming
See All in Programming
git on intellij
hiroto_kitamura
0
170
Cross Deviceチームにおけるスマートテレビアプリ開発ってどんな感じ?
cokaholic
0
120
Web API連携でCSRF対策がどう実装されてるか調べた / how to implements csrf-detection on Web API
yasuakiomokawa
2
470
Meet Swift Regex
usamik26
0
370
iOS 16からのロック画面Widget争奪戦に備える
tsuzuki817
0
250
JetPackComposeは宣言型プログラミングパラダイムって実はよくわかってないんですが、別に使ってもいいんですよね、
conigashima
0
190
Android Compose Component - mapping.
taehwandev
0
140
From Java through Scala to Clojure
lagenorhynque
0
230
開発速度を5倍早くするVSCodeの拡張機能を作った
purp1eeeee
2
160
Get Ready for Jakarta EE 10
ivargrimstad
0
970
パターンマッチングを学んで新しいJavaの世界へ!Java 18までの目玉機能をおさらいしよう / Java 18 pattern matching
ihcomega56
3
420
Java初心者が知っておくべきプログラミングのこと - JJUG CCC 2022 Spring
kishida
5
550
Featured
See All Featured
Building Better People: How to give real-time feedback that sticks.
wjessup
344
17k
KATA
mclloyd
7
8.7k
A better future with KSS
kneath
225
15k
Building an army of robots
kneath
299
40k
Cheating the UX When There Is Nothing More to Optimize - PixelPioneers
stephaniewalter
269
11k
Making Projects Easy
brettharned
98
4.3k
Creatively Recalculating Your Daily Design Routine
revolveconf
207
10k
XXLCSS - How to scale CSS and keep your sanity
sugarenia
236
1M
Scaling GitHub
holman
451
140k
Done Done
chrislema
174
14k
GraphQLの誤解/rethinking-graphql
sonatard
28
6.6k
Documentation Writing (for coders)
carmenhchung
48
2.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