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
CSC509 Lecture 13
javiergs
PRO
0
110
3 Effective Rules for Using Signals in Angular
manfredsteyer
PRO
0
110
どうして僕の作ったクラスが手続き型と言われなきゃいけないんですか
akikogoto
1
130
タクシーアプリ『GO』のリアルタイムデータ分析基盤における機械学習サービスの活用
mot_techtalk
6
1.6k
Vapor Revolution
kazupon
2
600
Make Impossible States Impossibleを 意識してReactのPropsを設計しよう
ikumatadokoro
0
300
Duckdb-Wasmでローカルダッシュボードを作ってみた
nkforwork
0
140
Quine, Polyglot, 良いコード
qnighy
4
650
rails new flags - `rails new` のフラグから Rails を構成するコンポーネントの変遷をザックリ眺める
snaka
0
1.8k
Remix on Hono on Cloudflare Workers
yusukebe
1
310
CSC509 Lecture 11
javiergs
PRO
0
180
NSOutlineView何もわからん:( 前編 / I Don't Understand About NSOutlineView :( Pt. 1
usagimaru
0
350
Featured
See All Featured
Building Applications with DynamoDB
mza
90
6.1k
Build The Right Thing And Hit Your Dates
maggiecrowley
33
2.4k
Statistics for Hackers
jakevdp
796
220k
Mobile First: as difficult as doing things right
swwweet
222
8.9k
Art, The Web, and Tiny UX
lynnandtonic
297
20k
Done Done
chrislema
181
16k
Speed Design
sergeychernyshev
25
620
Become a Pro
speakerdeck
PRO
25
5k
Building Flexible Design Systems
yeseniaperezcruz
327
38k
Save Time (by Creating Custom Rails Generators)
garrettdimon
PRO
27
850
The Success of Rails: Ensuring Growth for the Next 100 Years
eileencodes
44
6.8k
How to train your dragon (web standard)
notwaldorf
88
5.7k
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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LQ ^ 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