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
Exploring the Power of Turbo Streams & Action Cable | RailsConf2023
kevinliebholz
30
4.6k
Refactoring Trust on Your Teams (GOTO; Chicago 2020)
rmw
33
2.8k
YesSQL, Process and Tooling at Scale
rocio
172
14k
The Straight Up "How To Draw Better" Workshop
denniskardys
232
140k
Distributed Sagas: A Protocol for Coordinating Microservices
caitiem20
330
21k
Creating an realtime collaboration tool: Agile Flush - .NET Oxford
marcduiker
27
1.9k
Automating Front-end Workflow
addyosmani
1368
200k
Testing 201, or: Great Expectations
jmmastey
42
7.2k
Code Review Best Practice
trishagee
67
18k
Making Projects Easy
brettharned
116
6k
Keith and Marios Guide to Fast Websites
keithpitt
411
22k
Mobile First: as difficult as doing things right
swwweet
223
9.4k
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