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
71
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
250
Intro: Cloud Native Buildpacks - KubeCon EU 2019
hone
0
39
KubeCon 2018 - Intro: Cloud Native Buildpacks
hone
0
140
A Droid's Journey - CodeDaze 2018
hone
0
90
A Droid's Journey - RubyKaigi 2018
hone
0
640
Helix: Native Extensions for Everyone - RubyConf Colombia 2017
hone
1
160
Leveraging Rust with mruby: Loving our fellow Windows® users - FOSDEM 2017
hone
0
260
After A Decade: Still a Rubyist - Red Dot Ruby Conference 2016
hone
0
320
Other Decks in Programming
See All in Programming
はてなにおけるfujiwara-wareの活用やecspressoのCI/CD構成 / Fujiwara Tech Conference 2025
cohalz
2
2.6k
CQRS+ES の力を使って効果を感じる / Feel the effects of using the power of CQRS+ES
seike460
PRO
0
240
オニオンアーキテクチャを使って、 Unityと.NETでコードを共有する
soi013
0
370
EC2からECSへ 念願のコンテナ移行と巨大レガシーPHPアプリケーションの再構築
sumiyae
3
580
Fibonacci Function Gallery - Part 2
philipschwarz
PRO
0
210
Jaspr Dart Web Framework 박제창 @Devfest 2024
itsmedreamwalker
0
150
Androidアプリのモジュール分割における:x:commonを考える
okuzawats
1
270
責務を分離するための例外設計 - PHPカンファレンス 2024
kajitack
9
2.3k
サーバーゆる勉強会 DBMS の仕組み編
kj455
1
300
ゼロからの、レトロゲームエンジンの作り方
tokujiros
3
1k
ドメインイベント増えすぎ問題
h0r15h0
2
560
BEエンジニアがFEの業務をできるようになるまでにやったこと
yoshida_ryushin
0
190
Featured
See All Featured
Music & Morning Musume
bryan
46
6.3k
How to Ace a Technical Interview
jacobian
276
23k
Mobile First: as difficult as doing things right
swwweet
222
9k
Put a Button on it: Removing Barriers to Going Fast.
kastner
60
3.6k
How to Think Like a Performance Engineer
csswizardry
22
1.3k
The Illustrated Children's Guide to Kubernetes
chrisshort
48
49k
[RailsConf 2023] Rails as a piece of cake
palkan
53
5.1k
Site-Speed That Sticks
csswizardry
2
250
Faster Mobile Websites
deanohume
305
30k
A Tale of Four Properties
chriscoyier
157
23k
Save Time (by Creating Custom Rails Generators)
garrettdimon
PRO
29
950
Dealing with People You Can't Stand - Big Design 2015
cassininazir
365
25k
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