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
86
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
180
Deep Dive: Cloud Native Buildpacks - KubeCon EU 2019
hone
1
330
Intro: Cloud Native Buildpacks - KubeCon EU 2019
hone
0
56
KubeCon 2018 - Intro: Cloud Native Buildpacks
hone
0
160
A Droid's Journey - CodeDaze 2018
hone
0
110
A Droid's Journey - RubyKaigi 2018
hone
0
840
Helix: Native Extensions for Everyone - RubyConf Colombia 2017
hone
1
180
Leveraging Rust with mruby: Loving our fellow Windows® users - FOSDEM 2017
hone
0
280
After A Decade: Still a Rubyist - Red Dot Ruby Conference 2016
hone
0
360
Other Decks in Programming
See All in Programming
new(1.26) ← これすき / kamakura.go #8
utgwkk
0
2.3k
AI駆動開発の本音 〜Claude Code並列開発で見えたエンジニアの新しい役割〜
hisuzuya
4
500
Cyrius ーLinux非依存にコンテナをネイティブ実行する専用OSー
n4mlz
0
140
SourceGeneratorのマーカー属性問題について
htkym
0
190
ポーリング処理廃止によるイベント駆動アーキテクチャへの移行
seitarof
3
1.1k
ふつうの Rubyist、ちいさなデバイス、大きな一年
bash0c7
0
920
OTP を自動で入力する裏技
megabitsenmzq
0
100
AI時代でも変わらない技術コミュニティの力~10年続く“ゆるい”つながりが生み出す価値
n_takehata
2
730
CSC307 Lecture 15
javiergs
PRO
0
240
Understanding Apache Lucene - More than just full-text search
spinscale
0
110
ロボットのための工場に灯りは要らない
watany
10
2.8k
株式会社 Sun terras カンパニーデック
sunterras
0
2.1k
Featured
See All Featured
Making Projects Easy
brettharned
120
6.6k
How to make the Groovebox
asonas
2
2k
Context Engineering - Making Every Token Count
addyosmani
9
750
AI in Enterprises - Java and Open Source to the Rescue
ivargrimstad
0
1.2k
The Power of CSS Pseudo Elements
geoffreycrofte
82
6.2k
The Impact of AI in SEO - AI Overviews June 2024 Edition
aleyda
5
760
SERP Conf. Vienna - Web Accessibility: Optimizing for Inclusivity and SEO
sarafernandez
1
1.3k
The Pragmatic Product Professional
lauravandoore
37
7.2k
The Illustrated Children's Guide to Kubernetes
chrisshort
51
52k
How to Create Impact in a Changing Tech Landscape [PerfNow 2023]
tammyeverts
55
3.3k
Prompt Engineering for Job Search
mfonobong
0
180
JavaScript: Past, Present, and Future - NDC Porto 2020
reverentgeek
52
5.9k
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