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
76
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
170
Deep Dive: Cloud Native Buildpacks - KubeCon EU 2019
hone
1
300
Intro: Cloud Native Buildpacks - KubeCon EU 2019
hone
0
48
KubeCon 2018 - Intro: Cloud Native Buildpacks
hone
0
150
A Droid's Journey - CodeDaze 2018
hone
0
100
A Droid's Journey - RubyKaigi 2018
hone
0
760
Helix: Native Extensions for Everyone - RubyConf Colombia 2017
hone
1
160
Leveraging Rust with mruby: Loving our fellow Windows® users - FOSDEM 2017
hone
0
270
After A Decade: Still a Rubyist - Red Dot Ruby Conference 2016
hone
0
350
Other Decks in Programming
See All in Programming
「手軽で便利」に潜む罠。 Popover API を WCAG 2.2の視点で安全に使うには
taitotnk
0
840
Putting The Genie in the Bottle - A Crash Course on running LLMs on Android
iurysza
0
140
ソフトウェアテスト徹底指南書の紹介
goyoki
1
150
250830 IaCの選定~AWS SAMのLambdaをECSに乗り換えたときの備忘録~
east_takumi
0
390
請來的 AI Agent 同事們在寫程式時,怎麼用 pytest 去除各種幻想與盲點
keitheis
0
120
AI時代のUIはどこへ行く?
yusukebe
18
8.8k
Updates on MLS on Ruby (and maybe more)
sylph01
1
180
Deep Dive into Kotlin Flow
jmatsu
1
310
そのAPI、誰のため? Androidライブラリ設計における利用者目線の実践テクニック
mkeeda
2
270
さようなら Date。 ようこそTemporal! 3年間先行利用して得られた知見の共有
8beeeaaat
3
1.4k
Vue・React マルチプロダクト開発を支える Vite
andpad
0
110
AIコーディングAgentとの向き合い方
eycjur
0
270
Featured
See All Featured
Rails Girls Zürich Keynote
gr2m
95
14k
The Myth of the Modular Monolith - Day 2 Keynote - Rails World 2024
eileencodes
26
3k
Understanding Cognitive Biases in Performance Measurement
bluesmoon
29
1.9k
Learning to Love Humans: Emotional Interface Design
aarron
273
40k
Let's Do A Bunch of Simple Stuff to Make Websites Faster
chriscoyier
507
140k
Save Time (by Creating Custom Rails Generators)
garrettdimon
PRO
32
1.5k
Why Our Code Smells
bkeepers
PRO
339
57k
Chrome DevTools: State of the Union 2024 - Debugging React & Beyond
addyosmani
7
840
Music & Morning Musume
bryan
46
6.8k
Measuring & Analyzing Core Web Vitals
bluesmoon
9
580
CoffeeScript is Beautiful & I Never Want to Write Plain JavaScript Again
sstephenson
162
15k
The Art of Delivering Value - GDevCon NA Keynote
reverentgeek
15
1.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