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 - Dreamforce 2017 OSS Booth
Search
hone
November 06, 2017
Programming
0
58
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
150
Deep Dive: Cloud Native Buildpacks - KubeCon EU 2019
hone
1
180
Intro: Cloud Native Buildpacks - KubeCon EU 2019
hone
0
33
KubeCon 2018 - Intro: Cloud Native Buildpacks
hone
0
100
A Droid's Journey - CodeDaze 2018
hone
0
80
A Droid's Journey - RubyKaigi 2018
hone
0
470
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
290
Other Decks in Programming
See All in Programming
孤独のCTOグルメという やや奇抜な企画をやった目的と効果
shoheimitani
3
1k
object-oriented-conference-2024
fuwasegu
6
1.9k
自動テスト実行結果の目的を整理する / Organizing objectives of automated test results
twada
PRO
10
2.1k
TCA魔法学入門🪄
dazy
0
280
Learning PHP and Static Analysis with PHP Parser
inouehi
1
250
WinUI 3デモ - "CommunityToolkit.Mvvm"NuGetパッケージ編
andrewkeepcoding
0
140
OpenAPI を守るのは難しい
ohmori_yusuke
1
140
GitHub Copilot Tips and Tricks
yuichielectric
26
7.5k
TCAの Shared Stateって どういう仕組みになってんの?
yimajo
0
330
ONE WEDGE_Company_Information
1wedge
0
180
15分間でふんわり理解するDocker @ Matsuriba MAX
ukwhatn
PRO
1
340
PHP8の機能を使って堅牢にコードを書く
fendo181
6
2.6k
Featured
See All Featured
Testing 201, or: Great Expectations
jmmastey
27
6.3k
ピンチをチャンスに:未来をつくるプロダクトロードマップ #pmconf2020
aki_iinuma
67
38k
Refactoring Trust on Your Teams (GOTO; Chicago 2020)
rmw
24
2.2k
What the flash - Photography Introduction
edds
64
11k
Fight the Zombie Pattern Library - RWD Summit 2016
marcelosomers
226
16k
Bash Introduction
62gerente
604
210k
A Philosophy of Restraint
colly
195
15k
XXLCSS - How to scale CSS and keep your sanity
sugarenia
240
1.2M
Visualizing Your Data: Incorporating Mongo into Loggly Infrastructure
mongodb
34
8.8k
Facilitating Awesome Meetings
lara
39
5.5k
Clear Off the Table
cherdarchuk
82
310k
Building Adaptive Systems
keathley
29
1.8k
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