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
67
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
230
Intro: Cloud Native Buildpacks - KubeCon EU 2019
hone
0
37
KubeCon 2018 - Intro: Cloud Native Buildpacks
hone
0
130
A Droid's Journey - CodeDaze 2018
hone
0
89
A Droid's Journey - RubyKaigi 2018
hone
0
580
Helix: Native Extensions for Everyone - RubyConf Colombia 2017
hone
1
150
Leveraging Rust with mruby: Loving our fellow Windows® users - FOSDEM 2017
hone
0
250
After A Decade: Still a Rubyist - Red Dot Ruby Conference 2016
hone
0
310
Other Decks in Programming
See All in Programming
watsonx.ai Dojo #2 生成AIを使ったアプリ開発入門編
oniak3ibm
PRO
0
190
RAGの回答精度評価用のQAデータセットを生成AIに作らせた話
kurahara
0
250
Kotlin 2.0が与えるAndroid開発の進化
masayukisuda
1
410
Android開発以外のAndroid開発経験の活かしどころ
konifar
2
1k
Shinjuku.rb#95:心の技術書紹介
free_world21
1
110
o1モデルのプロンプトエンジニアリングって?
ktc_wada
0
270
開発を加速する共有Swift Package実践
elmetal
PRO
0
420
マルチモジュールにおけるテスト最適化
fxwx23
0
210
メモリ最適化を究める!iOSアプリ開発における5つの重要なポイント
yhirakawa333
0
420
Lessons by WebAssembly app in production on CDN Edge Computing Service
tetsuharuohzeki
0
210
『ドメイン駆動設計をはじめよう』中核の業務領域
masuda220
PRO
5
1k
What is Parser
yui_knk
9
4.1k
Featured
See All Featured
Fight the Zombie Pattern Library - RWD Summit 2016
marcelosomers
230
17k
How to Create Impact in a Changing Tech Landscape [PerfNow 2023]
tammyeverts
43
2k
個人開発の失敗を避けるイケてる考え方 / tips for indie hackers
panda_program
89
16k
Automating Front-end Workflow
addyosmani
1365
200k
Optimizing for Happiness
mojombo
375
69k
Learning to Love Humans: Emotional Interface Design
aarron
270
40k
Building Your Own Lightsaber
phodgson
101
6k
Building Applications with DynamoDB
mza
90
6k
Pencils Down: Stop Designing & Start Developing
hursman
119
11k
Designing on Purpose - Digital PM Summit 2013
jponch
114
6.8k
Web Components: a chance to create the future
zenorocha
309
42k
Large-scale JavaScript Application Architecture
addyosmani
508
110k
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