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
introduce-rust.pdf
Search
Yoshihito
December 10, 2018
2
520
introduce-rust.pdf
Rustのご紹介 #LINE_DM
Yoshihito
December 10, 2018
Tweet
Share
More Decks by Yoshihito
See All by Yoshihito
TUI App in Rust
yoshihitoh
0
210
Custom Runtime Lambda empowered by Rust
yoshihitoh
0
3k
Rust tutorial - implement a cli tool.
yoshihitoh
0
250
regrowth2018-introduce-reinvent-sessions
yoshihitoh
0
940
mobilemethod-2-about-analytic-data.pdf
yoshihitoh
0
1.1k
cpp-library-on-browse-nodejs
yoshihitoh
0
2.6k
Featured
See All Featured
KATA
mclloyd
29
14k
Let's Do A Bunch of Simple Stuff to Make Websites Faster
chriscoyier
507
140k
Typedesign – Prime Four
hannesfritz
41
2.5k
Java REST API Framework Comparison - PWX 2021
mraible
29
8.4k
Building Flexible Design Systems
yeseniaperezcruz
328
38k
RailsConf 2023
tenderlove
29
1k
Fireside Chat
paigeccino
35
3.2k
The Art of Programming - Codeland 2020
erikaheidi
53
13k
The MySQL Ecosystem @ GitHub 2015
samlambert
251
12k
The Power of CSS Pseudo Elements
geoffreycrofte
75
5.5k
Facilitating Awesome Meetings
lara
53
6.3k
Reflections from 52 weeks, 52 projects
jeffersonlam
348
20k
Transcript
Rustͷ ɹɹɹɹɹɹɹɹɹɹɹɹɹɹɹɹɹɹΫϥεϝιουגࣜձࣾ ɹɹɹɹɹɹɹɹɹɹɹɹɹɹɹɹɹɹɹɹɹɹɹɹ ɹɹฏ 1
About me • ԬΦϑΟεॴଐ • ϞόΠϧΞϓϦαʔϏε෦ • αʔόʔαΠυΤϯδχΞ • ೖࣾͯ͠1ͪΐͬͱ
• ͬͯΔ͜ͱ • AWSͷΠϯϑϥߏங • ϞόΠϧΞϓϦؔ࿈ͷαʔό։ൃ • ੳ༻σʔλͷऩू/Ճ (ETL) 2
Developers.IO 3
Rustͬͯʁ 4
Rust Rustɺ҆શੑɺฒߦੑͷ3ͭͷΰʔϧʹϑΥʔΧεͨ͠γεςϜϓϩάϥϛ ϯάݴޠͰ͢ɻ ಛ • θϩίετநԽ • ϜʔϒηϚϯςΟΫε • อূ͞ΕͨϝϞϦ҆શੑ
• σʔλڝ߹ͷͳ͍εϨου • τϨΠτʹΑΔδΣωϦΫε • ύλʔϯϚονϯά • ܕਪ • ࠷খݶͷϥϯλΠϜ • ޮతͳCόΠϯσΟϯά ެࣜαΠτ(چ) ΑΓҾ༻ 5
Rust (࠷৽) ެࣜαΠτ(৽) ΑΓҾ༻ 6
ੈքதͰѪ͞ΕΔϓϩά ϥϛϯάݴޠ Stack OverflowͷʮMost LovedʯͰ3࿈ଓ1Ґʂ (2016ʙ2018) • 2018 1. Rust
(78.9%) 2. Kotlin (75.1%) 3. Python (68.0%) • 2017 1. Rust (73.1%) 2. Smalltalk (67.0%) 3. TypeScript (64.1%) • 2016 1. Rust (79.1%) 2. SwiG (72.1%) 3. F# (70.7%) 7
h"ps:/ /insights.stackoverflow.com/survey/2016 8
h"ps:/ /insights.stackoverflow.com/survey/2017 9
h"ps:/ /insights.stackoverflow.com/survey/2018 10
༻్ʁ 11
ଟذʹΘͨΔ ެࣜαΠτ(৽) ΑΓҾ༻ 12
AWS LambdaͰ Custom Run1mes Λͬͯ ಈ͔ͤΔΑ͏ʹͳͬͨ • Ҿ༻ݩ • ࠨ:
AWS Open Source Blog h3ps:/ /aws.amazon.com/jp/blogs/opensource/rust-run?me-for-aws-lambda/ • ӈ: GitHub h3ps:/ /github.com/awslabs/aws-lambda-rust-run?me 13
࣮ࡍʹ͑Δͷʁ ϓϩδΣΫτͰ(ͪΐͬͱ͚ͩ)ͬͯ·͢ 14
Կ͕خ͍͠ʁ 15
※Ҏ߱ݸਓͷײͰ͢ 16
ڧྗͳΤίγεςϜ • ίϯύΠϥ • ॴ༗ݖϥΠϑλΠϜͷཧ • Τϥʔϝοηʔδ͕Θ͔Γ͍͢ • ΤίγεςϜ •
rustup • RustπʔϧνΣʔϯͷΠϯετʔϥʔ • cargo • RustͷύοέʔδϚωʔδϟ/Ϗϧυπʔϧ • ๛ͳυΩϡϝϯτ 17
ݴޠػೳ • ๛ͳඪ४ϥΠϒϥϦ • ڧྗͳܕγεςϜ • ޮతͳΤϥʔॲཧ • Cͱ࿈ܞ͍͢͠ •
ϋϚΓ͍͢ͱ͜Ζ͕ݴޠ༷Խ͞Ε͍ͯΔ 18
ϋϚΓ͍͢ͱ͜Ζ: C++ͷ߹ ίϯύΠϧͰ͖Δ͕࣮ߦ࣌ΤϥʔʹͳΔ 19
ϋϚΓ͍͢ͱ͜Ζ: Rustͷ߹ ίϯύΠϧΤϥʔʹͳΔ 20
ͭΒͦ͏ͳͱ͜Ζ • (ݱ࣌ͩͱ)ଞͷݴޠͱൺͯϥΠϒϥϦϑϨʔϜϫʔΫ͕গ ͳ͍ • ֶशίετ͕ߴ͍ • ಛʹॴ༗ݖɾϥΠϑλΠϜ͋ͨΓ 21
·ͱΊ • Rust͍ΖΜͳͰ͑Δ • ߴ͍ੜ࢈ੑ • ॻָ͍͍ͯͯ͠ʂ 22
ͥͻRustΛ͍͖ͬͯ·͠ΐ͏ 23
͓͠·͍ 24