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
410
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
440
Using Rust to interface with my dive computer
skade
0
190
async/.await with async-std
skade
1
720
Training Rust
skade
1
73
Internet of Streams - IoT in Rust
skade
0
65
How DevRel is failing communities
skade
0
55
The power of the where clause
skade
0
550
Three Years of Rust
skade
1
150
Rust as a CLI language
skade
1
180
Other Decks in Programming
See All in Programming
선언형 UI에서의 상태관리
l2hyunwoo
0
270
ChatGPT とつくる PHP で OS 実装
memory1994
PRO
3
190
Package Traits
ikesyo
1
210
Flatt Security XSS Challenge 解答・解説
flatt_security
0
730
watsonx.ai Dojo #6 継続的なAIアプリ開発と展開
oniak3ibm
PRO
0
170
ある日突然あなたが管理しているサーバーにDDoSが来たらどうなるでしょう?知ってるようで何も知らなかったDDoS攻撃と対策 #phpcon.2024
akase244
2
7.7k
月刊 競技プログラミングをお仕事に役立てるには
terryu16
1
1.2k
KMP와 kotlinx.rpc로 서버와 클라이언트 동기화
kwakeuijin
0
300
.NETでOBS Studio操作してみたけど…… / Operating OBS Studio by .NET
skasweb
0
120
LLM Supervised Fine-tuningの理論と実践
datanalyticslabo
8
1.9k
Jaspr Dart Web Framework 박제창 @Devfest 2024
itsmedreamwalker
0
150
PicoRubyと暮らす、シェアハウスハック
ryosk7
0
210
Featured
See All Featured
CSS Pre-Processors: Stylus, Less & Sass
bermonpainter
356
29k
Scaling GitHub
holman
459
140k
Navigating Team Friction
lara
183
15k
Fight the Zombie Pattern Library - RWD Summit 2016
marcelosomers
232
17k
Build your cross-platform service in a week with App Engine
jlugia
229
18k
I Don’t Have Time: Getting Over the Fear to Launch Your Podcast
jcasabona
30
2.1k
Code Reviewing Like a Champion
maltzj
521
39k
The Straight Up "How To Draw Better" Workshop
denniskardys
232
140k
How to Ace a Technical Interview
jacobian
276
23k
Art, The Web, and Tiny UX
lynnandtonic
298
20k
4 Signs Your Business is Dying
shpigford
182
22k
A designer walks into a library…
pauljervisheath
205
24k
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 VW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[
` IQ PDLQ ^ DVVHUWBHT DGGBRQH `
IQ PDLQ ^ OHW [ L OHW \ PXW [
` HUURU FDQQRW ERUURZ 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