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
420
Using Rust to interface with my dive computer
skade
0
170
async/.await with async-std
skade
1
700
Training Rust
skade
1
65
Internet of Streams - IoT in Rust
skade
0
62
How DevRel is failing communities
skade
0
53
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
リリース8年目のサービスの1800個のERBファイルをViewComponentに移行した方法とその結果
katty0324
5
3.6k
gopls を改造したら開発生産性が高まった
satorunooshie
8
250
開発効率向上のためのリファクタリングの一歩目の選択肢 ~コード分割~ / JJUG CCC 2024 Fall
ryounasso
0
370
Boost Performance and Developer Productivity with Jakarta EE 11
ivargrimstad
0
890
Android 15 でアクションバー表示時にステータスバーが白くなってしまう問題
tonionagauzzi
0
140
VR HMDとしてのVision Pro+ゲーム開発について
yasei_no_otoko
0
110
推し活としてのrails new/oshikatsu_ha_iizo
sakahukamaki
3
1.7k
讓數據說話:用 Python、Prometheus 和 Grafana 講故事
eddie
0
350
Snowflake x dbtで作るセキュアでアジャイルなデータ基盤
tsoshiro
2
440
Kubernetes for Data Engineers: Building Scalable, Reliable Data Pipelines
sucitw
1
200
Identifying User Idenity
moro
6
8k
『ドメイン駆動設計をはじめよう』のモデリングアプローチ
masuda220
PRO
8
440
Featured
See All Featured
Templates, Plugins, & Blocks: Oh My! Creating the theme that thinks of everything
marktimemedia
26
2.1k
How to Think Like a Performance Engineer
csswizardry
19
1.1k
How To Stay Up To Date on Web Technology
chriscoyier
788
250k
A designer walks into a library…
pauljervisheath
202
24k
4 Signs Your Business is Dying
shpigford
180
21k
Intergalactic Javascript Robots from Outer Space
tanoku
268
27k
Embracing the Ebb and Flow
colly
84
4.4k
Statistics for Hackers
jakevdp
796
220k
Making Projects Easy
brettharned
115
5.9k
How to Create Impact in a Changing Tech Landscape [PerfNow 2023]
tammyeverts
46
2.1k
The World Runs on Bad Software
bkeepers
PRO
65
11k
Scaling GitHub
holman
458
140k
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 ^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GGBRQH [ LQW ! LQW ^ [
` 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