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
93
0
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
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
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
360
Intro: Cloud Native Buildpacks - KubeCon EU 2019
hone
0
72
KubeCon 2018 - Intro: Cloud Native Buildpacks
hone
0
180
A Droid's Journey - CodeDaze 2018
hone
0
120
A Droid's Journey - RubyKaigi 2018
hone
0
870
Helix: Native Extensions for Everyone - RubyConf Colombia 2017
hone
1
200
Leveraging Rust with mruby: Loving our fellow Windows® users - FOSDEM 2017
hone
0
290
After A Decade: Still a Rubyist - Red Dot Ruby Conference 2016
hone
0
370
Other Decks in Programming
See All in Programming
Contextとはなにか
chiroruxx
1
370
jQueryをバージョンアップする前に使いたいjQuery Migrate
matsuo_atsushi
0
580
PHPで使える日時の表現と、その知り方 #frontend_phpcon_do
o0h
PRO
0
260
Go1.27で導入されるジェネリクスメソッドでできること
mackee
0
170
AIだと陥りがちなJakarta EE最新技術への移行時の落とし穴と解決策
tnagao7
0
120
例外の正しい扱い方 そのエラー try-catchして大丈夫?
jinwatanabe
0
280
脅威をエンジニアリングの糧にして――現場編 / Turning Threats into Engineering Fuel — Field Edition
nrslib
0
300
[2026年度第1回ORセミナー] 計画最適化ベンチャーと競技プログラミング人材
terryu16
0
270
Language Server 使ってる? 〜VSCode と Zed の場合〜 / Are you using a Language Server? ~For VS Code and Zed~
handlename
0
800
Lemonade + Foundry Toolkit でお手軽アプリ開発
seosoft
1
370
「AIで開発し、AIを届ける」をEvalでつなぐ 〜AIネイティブに始めるプロダクト開発の実践〜 / Connecting "Develop with AI, deliver AI" with Eval
rkaga
4
5.4k
キャリア迷子上等 ─ "ない道"は自分で作ればいい
16bitidol
3
2.2k
Featured
See All Featured
The B2B funnel & how to create a winning content strategy
katarinadahlin
PRO
1
400
Documentation Writing (for coders)
carmenintech
77
5.4k
Understanding Cognitive Biases in Performance Measurement
bluesmoon
32
2.9k
Public Speaking Without Barfing On Your Shoes - THAT 2023
reverentgeek
1
430
Building an army of robots
kneath
306
46k
From π to Pie charts
rasagy
0
220
DevOps and Value Stream Thinking: Enabling flow, efficiency and business value
helenjbeal
1
240
XXLCSS - How to scale CSS and keep your sanity
sugarenia
250
1.3M
Site-Speed That Sticks
csswizardry
13
1.2k
Fantastic passwords and where to find them - at NoRuKo
philnash
52
3.7k
Skip the Path - Find Your Career Trail
mkilby
1
150
"I'm Feeling Lucky" - Building Great Search Experiences for Today's Users (#IAC19)
danielanewman
230
23k
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