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
Rust is the only thing that's left
Search
Florian Gilcher
May 15, 2015
Programming
2
400
Rust is the only thing that's left
Florian Gilcher
May 15, 2015
Tweet
Share
More Decks by Florian Gilcher
See All by Florian Gilcher
A new contract with users
skade
1
430
Using Rust to interface with my dive computer
skade
0
170
async/.await with async-std
skade
1
710
Training Rust
skade
1
65
Internet of Streams - IoT in Rust
skade
0
64
How DevRel is failing communities
skade
0
55
The power of the where clause
skade
0
530
Three Years of Rust
skade
1
150
Rust as a CLI language
skade
1
170
Other Decks in Programming
See All in Programming
距離関数を極める! / SESSIONS 2024
gam0022
0
280
イベント駆動で成長して委員会
happymana
1
320
Kaigi on Rails 2024 〜運営の裏側〜
krpk1900
1
200
Make Impossible States Impossibleを 意識してReactのPropsを設計しよう
ikumatadokoro
0
170
LLM生成文章の精度評価自動化とプロンプトチューニングの効率化について
layerx
PRO
2
190
3rd party scriptでもReactを使いたい! Preact + Reactのハイブリッド開発
righttouch
PRO
1
600
色々なIaCツールを実際に触って比較してみる
iriikeita
0
330
Laravel や Symfony で手っ取り早く OpenAPI のドキュメントを作成する
azuki
2
120
Less waste, more joy, and a lot more green: How Quarkus makes Java better
hollycummins
0
100
Ethereum_.pdf
nekomatu
0
460
Amazon Qを使ってIaCを触ろう!
maruto
0
400
AWS IaCの注目アップデート 2024年10月版
konokenj
3
3.3k
Featured
See All Featured
Music & Morning Musume
bryan
46
6.2k
The Pragmatic Product Professional
lauravandoore
31
6.3k
JavaScript: Past, Present, and Future - NDC Porto 2020
reverentgeek
47
5k
Principles of Awesome APIs and How to Build Them.
keavy
126
17k
Speed Design
sergeychernyshev
24
610
The Illustrated Children's Guide to Kubernetes
chrisshort
48
48k
Navigating Team Friction
lara
183
14k
Testing 201, or: Great Expectations
jmmastey
38
7.1k
4 Signs Your Business is Dying
shpigford
180
21k
A designer walks into a library…
pauljervisheath
203
24k
Practical Orchestrator
shlominoach
186
10k
Why You Should Never Use an ORM
jnunemaker
PRO
54
9.1k
Transcript
5XVW LV WKH 2QO\ 7KLQJ 7KDWȿV /HIW
5XVW GHYHORSPHQW r 6WDUWHG ! \HDUV DJR r +REE\
SURMHFW SLFNHG XS E\ 0R]LOOD
5XVW GHYHORSPHQW r )LUVW GHYHORSHG E\ *UD\GRQ +RDUH r &KDQJHG
WHDP PXOWLSOH WLPHV LQ EHWZHHQ
7KUHH JRDOV r 6DIH r &RQFXUUHQW r 3UHGLFWDEO\ IDVW
6DIH r 6WDWLF W\SH V\VWHP ZLWK ORFDO W\SH LQIHUHQFH r
1XOOSRLQWHU IUHH H[FHSW r 8QLTXH SRLQWHUV DOO WKH ZD\
&RQFXUUHQW r 0XWDELOLW\ DV D ѹUVWFODVV FRQFHSW r 1R VKDUHG
PXWDEOH VWDWH r ,PSRUWDQW EDVH W\SHV EXLOW LQ
3UHGLFWDEO\ IDVW r 1R KLGGHQ DOORFDWLRQV r 3UHGLFWDEOH GHDOORFDWLRQV r
$EVWUDFWLRQV PXVW EH ]HURFRVW RU FKHDS FRPSXWDWLRQZLVH r H[FHSW RSWLRQDO XQVDIH VXEODQ JXDJH
:HȿUH DLPLQJ DW & KHUH r &RQWUROODEOH PHPRU\OD\RXW r &DQ
JHQHUDWH &$%, ELQDULHV r 1R UXQWLPH r &ORVH WR WKH PDFKLQH
:KDW GRHV LW ORRN OLNH"
IQ PDLQ ^ SULQWOQ +HOOR 5XVW SULQWOQ ,
ZDV UHOHDVHG MXVW D IHZ PLQXWHV `
%UDFHV OLNH 5LFKLH LQGHQWHG
>GHSUHFDWHG VLQFH @ IQ ODPHBGHQQLVBULFKLHBMRNH ^ KDYH WR
ERUURZ P\VHOI D QHZ RQH `
SXE W\SH ,G X SXE HQXP .H\7\SH ^ 4XHXH &KXQN
` SXE VWUXFW .H\ ^ LG ,G NH\W\SH .H\7\SH `
>UHSU X @ SXE HQXP .H\7\SH ^ 4XHXH &KXQN `
>UH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URZ LPPXWDEOH ORFDO YDULDEOH C[C DV PXWDEOH IQ PDLQ ^ OHW PXW [ L OHW \ PXW [ `
WUDLW $FFHVV IRU 'DWDEDVH ^ IQ JHW VHOI NH\ >X@
^ ` IQ SXW PXW VHOI NH\ >X@ YDOXH >X@ ^ ` `
0XWDELOLW\ UXQV GHHS
2ZQHUVKLS ERUURZLQJ
r (YHU\ UHVRXUFH LQ 5XVW KDV D VLQJOH RZQHU r
FRQWUROV ZKHQ WKH UHVRXUFH LV GHDO ORFDWHG
r PD\ OHQG WKDW UHVRXUFH LPPXWDEO\ DV PXFK DV ZDQWHG
r PD\ OHQG WKDW UHVRXUFH PXWDEO\ WR D VLQJOH ERUURZHU r ERUURZV FDQQRW RXWOLYH WKH RZQHU
5HIFRXQWLQJ IRU SHRSOH WKDW FDQ RQO\ FRXQW WR RQH
2ZQHUVKLS FDQ PRYH EXW QHYHU EH FRSLHG
9DOXHV FDQ EH FRSLHG FORQHG HWF DQG ZLOO WKHQ EH
RZQHG E\ VRPHRQH HOVH
'HFLGDEOH DW FRPSLOH WLPH
3UHGLFWLEOH VDIH PHPRU\ PDQDJHPHQW ZLWKRXW JDUEDJH FROOHFWLRQ
IQ PDLQ ^ OHW WHPSGLU WU\ 7HPS'LUQHZ VWUDQJHJURXS OHW
PXW WHPSILOH WU\ )LOHFUHDWH WHPSGLUSDWK MRLQ WPS ORRN QR FORVH QHFHVVDU\ `
'HDOORFDWLRQ DQG GHVWUXFWRUV UXQ ZKHQ OHDYLQJ WKH VFRSH
IQ PDLQ ^ OHW WHPSGLU WU\ 7HPS'LUQHZ VWUDQJHJURXS OHW
PXW WHPSILOH WU\ )LOHFUHDWH WHPSGLUSDWK MRLQ WPS GURS WHPSILOH `
>LQOLQH@ >VWDEOH@ SXE IQ GURS7! B[ 7 ^ `
WDNHV RZQHUVKLS GRHV QRWKLQJ
0XWDELOLW\ WUDFNLQJ D VHW RI FDUHIXOO\ FKRVHQ EDVH WUDLWV DQG
ERUURZ UXOHV IRUP WKH EDVLV RI PDNLQJ 5XVW D VDIH ODQJXDJH IRU FRQFXUUHQW XVH
1R PXWDEOH ERUURZV RYHU ERXQGDULHV VSHFLDO WUDLWV IRU WKLQJV WKDW
FDQ EH VHQW EHWZHHQ WDVNV
)), >UHSU F @ VWUXFW 0\6WUXFW ^ RQH LQW WZR
LQW ` IUHH PRYHPHQW EHWZHHQ &6SDFH DQG 5XVW6SDFH
>OLQN QDPH WVP @ H[WHUQ ^ SXE IQ WVPBYWHBQHZ RXW
PXW PXW WVPBYWH FRQ PXW WVPBVFUHHQ ZULWHBFE WVPBZULWHBFE GDWD PXW FBYRLG ORJ 2SWLRQWVPBORJBW! ORJBGDWD PXW FBYRLG ! FBLQW ` H[WHUQ & IQ ZULWHBFE B FRQVW WVPBYWH B FRQVW X B VL]HBW B FBYRLG ^`
XQVDIH LPSO .H\ ^ SXE IQ IURPBX NH\ >X@ !
.H\ ^ XVH VWGPHPWUDQVPXWH DVVHUW NH\OHQ XQVDIH ^ WUDQVPXWH NH\DVBSWU ` ` `
$ VXEODQJXDJH IRU SRLQWHU ѹGGOLQJ XQVDIH PHPRU\ RSHUDWLRQV IRU VSHHG
LQWHUIDFLQJ ZLWK & HWF
None
$JJUHVVLYH ELDV WRZDUGV XVLQJ WKH ODQJXDJH WR JDLQ LQVLJKW
5XVW ZDQWV \RX WR GHFODUH D ORW
5XVW KDV D FRPSODLQHU
7KH DPRXQW RI OLQWV EXLOW LQWR WKH FRPSLOHU LV PLQGERJJOLQJ
VWULFW DQG YHU\ XVHIXO
XVH VWGLR7HPS'LU IQ PDLQ ^ 7HPS'LUQHZ VWUDQJHJURXS `
ZDUQLQJ XQXVHG UHVXOW ZKLFK PXVW EH XVHG >ZDUQ XQXVHGBPXVWBXVH @ RQ E\ GHIDXOW
XVH VWGLR7HPS'LU >GHQ\ XQXVHGBPXVWBXVH @ IQ PDLQ ^ 7HPS'LUQHZ VWUDQJHJURXS
` HUURU XQXVHG UHVXOW ZKLFK PXVW EH XVHG
5HVXOWV DUH HYHU\ZKHUH
>GHQ\ PLVVLQJBGRFV @ >GHQ\ ZDUQLQJV @ .DUPD ERRVW
7KLV LV D ѹUVWFODVV ODQJXDJH IHDWXUH QRW D FRPSLOHU IHDWXUH
r 8QXVHG GRFXPHQWDWLRQ r 7\SH FDVLQJ r 8QXVHG FRGH r
8QXVHG VWUXFW ѹHOGV r SULYDWH VWUXFW OHDNV
*RRG GRF WRROV r UXVWGRF DOORZV WHVWLQJ RI HPEHGGHG FRGH
r PRVW H[DPSOH FRGH LQ WKH UXVW ZRUOG LV UXQQDEOH IRU WKDW UHDVRQ r SOD\UXVWODQJRUJ DOORZV SOD\LQJ ZLWK LW
'HSHQGHQF\ PDQDJHPHQW WRROV r &DUJR OLNH %XQGOHU IRU 5XVW r
7KH WKLUG WU\ r 6DQH GHIDXOW FRGH OD\RXW UXOHV r 3URYLGHV WHVW KDUQHVV
%LDV WRZDUGV JRRG GRFXPHQWDWLRQ r *XLGH FXUUHQWO\ ZULWWHQ E\ D
SDLG DXWKRU 6WHYH .ODEQLN r *RRG GRFXPHQWDWLRQ RI WKH VWDEOH VWGOLE r 6WDELOLW\PDUNHUV WKURXJKRXW
3URGXFWLRQ XVH r 8VHG WR EXLOG D EURZVHU HQJLQH SDVVLQJ
$&,' 6HUYR r 8VHG DW VN\OLJKWLR r $ FRXSOH RI VPDOO WRROLQJ WDVNV
6WDELOLW\ 5XVW KDV QR UXQWLPH 7KH UHVXOWLQJ ELQDULHV DUH RI
JRRG TXDOLW\
8VDJH 5XVW LV D JRRG ODQJXDJH WR ELQG WR &
OLEUDULHV DQG SURYLGHV WRROV WR HDVLO\ DEVWUDFW RYHU &
,W LV DOVR D JRRG ODQJXDJH WR UHSODFH & OLEUDULHV
5XVW DLPV WR IXOѹOO DOO \RXU QHHGV ZKHQ JHQHUDWLQJ QDWLYH
ELQDULHV GRZQ WR VSHFLѹFV RI PLFURSURFHVVRUV
*DPH GHYHORSPHQW WDNHV KXJH LQWHUHVW
([WUHPH IRFXV RQ FRPPXQLW\ r &RPPXQLW\ FRGH RI FRQGXFW r
WKDW KDV VHHQ QHFHVVLW\ DQG XVH r )XOO PRGHUDWLRQ WHDPV IRU KWWSVXVHUVUXVWODQJRUJ KWWSVLQWHUQDOVUXVWODQJRUJ KWWSVUHGGLWFRPUUXVW UXVW ,5& r $ZHVRPH FRPPXQLW\ FRGH UHYLHZV
r :HHNO\ QHZVOHWWHUV DERXW FKDQJHV r RSHQ FRUH PHHWLQJV r
PHHWXS JURXSV DURXQG WKH ZRUOG
&DQ , XVH LW QRZ" <HV
6KRXOG ," ,I \RX DUH LQWR V\VWHPV SURJUDPPLQJ \HV ,I
QRW 5XVW LV D JUHDW ODQJXDJH WR OHDUQ LW
7\SH V\VWHP 5XVW XVHV D OLQHDU DIѹQH WR EH H[DFW
W\SH V\VWHP ZLWKRXW HYHU PHQWLRQLQJ LW RU KDYLQJ \RX ERWKHU ZLWK LW
$ ELW RI KLVWRU\ 5XVW \HDUV DJR
IQ GUDZBDBVTXDUHBDQGBDBFLUFOH JI[ JUDSKLFVBFRQWH[W ^ OHW V #VTXDUH
OHW F #FLUFOH OHW REMV >V DV GUDZ F DV GUDZ@ GUDZBDOO JI[ REMV ` IQ GUDZBPDQ\'GUDZ! JI[ JUDSKLFVBFRQWH[W GUDZDEOHV >'@ ^ IRU GUDZDEOHVHDFK ^_GUDZDEOH_ GUDZDEOHGUDZ JI[ ` `
r &ODVVHV ,QWHUIDFHV r 2SWLRQDO *DUEDJH FROOHFWLRQ r 7DVN5XQWLPH XVLQJ
OLEXY XQGHU WKH KRRG ODWHU PXOWLSOH r 6WDU :DUV UHGHѹQHG a # DV SRLQWHU VLJLOV r $ ORW PRUH VSHFLDO FDVHV HJ RZQHG SRLQWHUV YV JFHG SRLQWHUV
,I WKHUH DUH WZR ZD\V OHWȿV GR WKHP ERWK
5XVW WRGD\
r 7UDLWV 6WUXFWV DQG (QXPV RQO\ r 1R JDUEDJH FROOHFWLRQ
r $OO WUDFHV RI UXQWLPHV UHPRYHG r 6WDU :DUV ROGVFKRRO DUH WKH RQO\ VLJLOV OHIW r D UDWKHU OHDQ ODQJXDJH
7KHUH DUH PXOWLSOH ZD\V OHWȿV SURYLGH WKH EXLOGLQJ EORFNV
0XOWLSOH UHZULWHV RI LPSRUWDQW SDUWV RI WKH VWGOLE
7ULPPLQJ DQG WKURZLQJ DZD\ LV D VWURQJ SDUW RI WKH
FXOWXUH XQWLO UHOHDVH
&OHDU IRFXV DQG WDUJHW
5XVW LV WKH RQO\ WKLQJ WKDWȿV OHIW DIWHU WKDW
7KDQN \RX