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
530
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
3.1k
Rust tutorial - implement a cli tool.
yoshihitoh
0
260
regrowth2018-introduce-reinvent-sessions
yoshihitoh
0
980
mobilemethod-2-about-analytic-data.pdf
yoshihitoh
0
1.1k
cpp-library-on-browse-nodejs
yoshihitoh
0
2.7k
Featured
See All Featured
Intergalactic Javascript Robots from Outer Space
tanoku
272
27k
The Web Performance Landscape in 2024 [PerfNow 2024]
tammyeverts
9
810
実際に使うSQLの書き方 徹底解説 / pgcon21j-tutorial
soudai
PRO
188
55k
How GitHub (no longer) Works
holman
315
140k
Writing Fast Ruby
sferik
628
62k
Chrome DevTools: State of the Union 2024 - Debugging React & Beyond
addyosmani
7
850
Why You Should Never Use an ORM
jnunemaker
PRO
59
9.5k
No one is an island. Learnings from fostering a developers community.
thoeni
21
3.4k
4 Signs Your Business is Dying
shpigford
184
22k
Docker and Python
trallard
46
3.6k
Building Better People: How to give real-time feedback that sticks.
wjessup
368
19k
Optimizing for Happiness
mojombo
379
70k
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