Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Rust is the only thing that's left

Rust is the only thing that's left

Florian Gilcher

May 15, 2015
Tweet

More Decks by Florian Gilcher

Other Decks in Programming

Transcript

  1. 

  2. 6DIH r 6WDWLF W\SH V\VWHP ZLWK ORFDO W\SH LQIHUHQFH r

    1XOOSRLQWHU IUHH H[FHSW r 8QLTXH SRLQWHUV DOO WKH ZD\
  3. &RQFXUUHQW r 0XWDELOLW\ DV D ѹUVWFODVV FRQFHSW r 1R VKDUHG

    PXWDEOH VWDWH r ,PSRUWDQW EDVH W\SHV EXLOW LQ
  4. 3UHGLFWDEO\ IDVW r 1R KLGGHQ DOORFDWLRQV r 3UHGLFWDEOH GHDOORFDWLRQV r

    $EVWUDFWLRQV PXVW EH ]HURFRVW RU FKHDS FRPSXWDWLRQZLVH r H[FHSW RSWLRQDO XQVDIH VXEODQ JXDJH
  5. :HȿUH DLPLQJ DW & KHUH r &RQWUROODEOH PHPRU\OD\RXW r &DQ

    JHQHUDWH &$%, ELQDULHV r 1R UXQWLPH r &ORVH WR WKH PDFKLQH
  6. IQ PDLQ ^ SULQWOQ +HOOR 5XVW   SULQWOQ ,

    ZDV UHOHDVHG MXVW D IHZ PLQXWHV  `
  7. SXE W\SH ,G X SXE HQXP .H\7\SH ^ 4XHXH &KXQN

    ` SXE VWUXFW .H\ ^ LG ,G NH\W\SH .H\7\SH `
  8. *HQHULFV HQXP 5HVXOW7 (! ^ 2N 7  (UU (

    ` HQXP 2SWLRQ7! ^ 6RPH 7  1RQH `
  9. LPSO .H\ ^ SXE IQ GHIDXOW ! .H\ ^ .H\

    ^ NH\W\SH 4XHXH LG  ` ` SXE IQ QHZ NH\W\SH .H\7\SH LG ,G ! .H\ ^ .H\ ^ NH\W\SH NH\W\SH LG LG ` ` SXE IQ FRPSDUH VHOI RWKHU .H\ ! 2UGHULQJ ^  ` `
  10. SXE WUDLW &RPSDUDEOH ^ IQ FRPSDUH VHOI RWKHU .H\ !

    2UGHULQJ ` LPSO &RPSDUDEOH IRU .H\ ^ IQ FRPSDUH VHOI RWKHU .H\ ! 2UGHULQJ ^  ` `
  11. DOPRVW HYHU\WKLQJ LV DQ H[SUHVVLRQ IQ PDLQ ^ OHW IRR

    LI NH\NH\W\SH 4XHXH ^ WKLV LV D TXHXH NH\ ` HOVH ^ WKLV LV D FKXQN NH\ ` SULQWOQ IRR  `
  12. IQ PDLQ ^ OHW NH\ .H\ ^ NH\W\SH 4XHXH LG

     ` OHW IRR PDWFK NH\NH\W\SH ^ 4XHXH ! TXHXH NH\ &KXQN ! FKXQN NH\ ` SULQWOQ ^` IRR  `
  13. 6HPDQWLF VHPLFRORQV IQ PDLQ ! ^ +HOOR `  HUURU

    PLVPDWFKHG W\SHV H[SHFWHG C C IRXQG C ɀVWDWLF VWUC H[SHFWHG  IRXQG SWU IQ PDLQ ! ^ +HOOR `
  14. 0XWDELOLW\ IQ PDLQ ^ OHW [ L [ L `

    HUURU UHDVVLJQPHQW RI LPPXWDEOH YDULDEOH C[C [ L 
  15. 5HIHUHQFHV IQ DGGBRQH [ LQW ! LQW ^ [ 

     ` IQ PDLQ ^ DVVHUWBHT  DGGBRQH   `
  16. IQ PDLQ ^ OHW [ L OHW \ PXW [

    ` HUURU FDQQRW ERUURZ LPPXWDEOH ORFDO YDULDEOH C[C DV PXWDEOH IQ PDLQ ^ OHW PXW [ L OHW \ PXW [ `
  17. WUDLW $FFHVV IRU 'DWDEDVH ^ IQ JHW VHOI NH\ >X@

    ^  ` IQ SXW PXW VHOI NH\ >X@ YDOXH >X@ ^  ` `
  18. r (YHU\ UHVRXUFH LQ 5XVW KDV D VLQJOH RZQHU r

    FRQWUROV ZKHQ WKH UHVRXUFH LV GHDO ORFDWHG
  19. 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
  20. IQ PDLQ ^ OHW WHPSGLU WU\ 7HPS'LUQHZ VWUDQJHJURXS  OHW

    PXW WHPSILOH WU\ )LOHFUHDWH WHPSGLUSDWK MRLQ WPS   ORRN QR FORVH QHFHVVDU\ `
  21. IQ PDLQ ^ OHW WHPSGLU WU\ 7HPS'LUQHZ VWUDQJHJURXS  OHW

    PXW WHPSILOH WU\ )LOHFUHDWH WHPSGLUSDWK MRLQ WPS  GURS WHPSILOH  `
  22. >LQOLQH@ >VWDEOH@ SXE IQ GURS7! B[ 7 ^ ` 

    WDNHV RZQHUVKLS GRHV QRWKLQJ
  23. 0XWDELOLW\ WUDFNLQJ D VHW RI FDUHIXOO\ FKRVHQ EDVH WUDLWV DQG

    ERUURZ UXOHV IRUP WKH EDVLV RI PDNLQJ 5XVW D VDIH ODQJXDJH IRU FRQFXUUHQW XVH
  24. )), >UHSU F @ VWUXFW 0\6WUXFW ^ RQH LQW WZR

    LQW `  IUHH PRYHPHQW EHWZHHQ &6SDFH DQG 5XVW6SDFH
  25. >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 ^`
  26. XQVDIH LPSO .H\ ^ SXE IQ IURPBX NH\ >X@ !

    .H\ ^ XVH VWGPHPWUDQVPXWH DVVHUW NH\OHQ  XQVDIH ^ WUDQVPXWH NH\DVBSWU ` ` `
  27. XVH VWGLR7HPS'LU IQ PDLQ ^ 7HPS'LUQHZ VWUDQJHJURXS  ` 

    ZDUQLQJ XQXVHG UHVXOW ZKLFK PXVW EH XVHG >ZDUQ XQXVHGBPXVWBXVH @ RQ E\ GHIDXOW
  28. r 8QXVHG GRFXPHQWDWLRQ r 7\SH FDVLQJ r 8QXVHG FRGH r

    8QXVHG VWUXFW ѹHOGV r SULYDWH VWUXFW OHDNV
  29. *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
  30. 'HSHQGHQF\ PDQDJHPHQW WRROV r &DUJR OLNH %XQGOHU IRU 5XVW r

    7KH WKLUG WU\ r 6DQH GHIDXOW FRGH OD\RXW UXOHV r 3URYLGHV WHVW KDUQHVV
  31. %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
  32. 3URGXFWLRQ XVH r 8VHG WR EXLOG D EURZVHU HQJLQH SDVVLQJ

    $&,'  6HUYR r 8VHG DW VN\OLJKWLR r $ FRXSOH RI VPDOO WRROLQJ WDVNV
  33. 8VDJH 5XVW LV D JRRG ODQJXDJH WR ELQG WR &

    OLEUDULHV DQG SURYLGHV WRROV WR HDVLO\ DEVWUDFW RYHU &
  34. 5XVW DLPV WR IXOѹOO DOO \RXU QHHGV ZKHQ JHQHUDWLQJ QDWLYH

    ELQDULHV GRZQ WR VSHFLѹFV RI PLFURSURFHVVRUV
  35. ([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
  36. 6KRXOG ," ,I \RX DUH LQWR V\VWHPV SURJUDPPLQJ \HV ,I

    QRW 5XVW LV D JUHDW ODQJXDJH WR OHDUQ LW
  37. 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
  38. 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[ ` `
  39. 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
  40. 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