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

Edge Computing with Rust and WebAssembly / RustとWebAssemblyでEdge Computing

5d769d109697012317c09c6a27a6a4bf?s=47 linyows
September 13, 2019

Edge Computing with Rust and WebAssembly / RustとWebAssemblyでEdge Computing

Fukuoka.rs #5 でお話しした資料です @Sep 13, 2019

5d769d109697012317c09c6a27a6a4bf?s=128

linyows

September 13, 2019
Tweet

Transcript

  1. 3VTU8FC"TTFNCMZͰ&EHF$PNQVUJOH 5PNPIJTB0EBŠ(.01FQBCP *OD 'VLVPLBST4FQ 

  2. Fukuoka.rs #5 !MJOZPXT CMPHUPNPIJTBPEBDPN (.0ϖύϘϓϦϯγύϧΤϯδχΞ 2

  3. Fukuoka.rs #5 3 ϓϥΠϕʔτϓϩδΣΫτ MJOVYϢʔβͷ໊લղܾΛ (JU)VC͔ΒϚοϐϯά͢Δ ιϑτ΢ΣΞ 0$501"44 %&8: ϦϙδτϦͷϦιʔεมߋΛݕ

    ஌ͯ͠ΞϓϦ͕ೳಈతʹσϓϩ ΠΛߦ͏ιϑτ΢ΣΞ ΦʔΨφΠβʔ 'VLVPLBHP (PMBOHίϛϡχςΟ ʹΛ։࠵༧ఆ 'VLVPLBUT 5ZQF4DSJQUίϛϡχςΟ ʹΛ։࠵༧ఆ
  4. Fukuoka.rs #5 QSJOUMO )FMMP3VTUBDFBOT  4

  5. Fukuoka.rs #5 ۀ຿Ͱ8FC"TTFNCMZ࢖͍ͬͯ·͔͢ʁ 5

  6. Fukuoka.rs #5 ͓͞Β͍ɿ8FC"TTFNCMZ w 8FC"TTFNCMZ͸+4Ͱิ͑ͳ͍ϒϥ΢βͷ֦ுʢࠓ͸+4͕ͳ͍ͱݺͼग़ͤͳ͍ʣ w ήʔϜ΍ಈըɺը૾΍ԻָฤूͳͲɺେྔͷԋࢉʢίϯϐϡʔτϦιʔεʣʹ࢖ ༻͠ɺωΠςΟϒίʔυʹ͍ۙύϑΥʔϚϯεΛൃش͢Δ w ৴པੑͷ௿͍ΞϓϦΛTBOECPY؀ڥͰ࣮ߦͯ҆͠શੑʢηΩϡϦςΟʣΛߴΊΔ

    w "TTFNCMZݴޠͱ͍͑Ͳ֓೦Ϛγϯͷ΋ͷͳͷͰ༷ʑͳ04ʹରԠͰ͖Ҡ২ੑ ʢϙʔλϏϦςΟʣ͕ߴ͍ w ϙʔλϏϦςΟͱηΩϡϦςΟ͕جຊݪଇ 6
  7. Fukuoka.rs #5 8FC"TTFNCMZ*OUFSGBDF8"4* w 8FC"TTFNCMZ*OUFSGBDF͸ɺϒϥ΢β֎Ͱ8"4.Λ࣮ߦ͢Δ৔߹ʹඞཁͳ γεςϜϦιʔεʢϑΝΠϧɺϝϞϦɺωοτϫʔΫʣͱ઀ଓ͢ΔͨΊͷ ΠϯλʔϑΣʔε࢓༷ w ༷ʑͳϚγϯ΁ͷόΠφϦ഑෍ͱ͍͏104*9ͷઌΛ࣮ݱ͢ΔͨΊͷ΋ͷ w

    .P[JMMBͷΤϯδχΞ-JO$MBSLΛத৺ʹ8"4.ͷαϒάϧʔϓͱͯ͠ඪ४Խ ͱͯٞ͠࿦ΛਐΊ͍ͯΔ 7
  8. Fukuoka.rs #5 8

  9. Fukuoka.rs #5 'BTUMZͷΤοδίϯϐϡʔςΟϯά؀ڥ 9

  10. Fukuoka.rs #5 10

  11. Fukuoka.rs #5 -VDFUͷߏ੒ 11 $POUFOU %FTDSJQUJPO MVDFUD -VDFUίϯύΠϥʔ MVDFUSVOUJNF MVDFUDΛհͯ͠ίϯύΠϧ͞Εͨ8FC"TTFNCMZϞδϡʔϧͷϥϯλΠϜ

    MVDFUXBTJ 8"4*ͷϥϯλΠϜαϙʔτΛఏڙ͢ΔDSBUF MVDFUXBTJTEL $MBOHπʔϧνΣʔϯͷϏϧυɺ8"4*ࢀরTZTSPPUɺ͓Αͼ8"4*TZTDBMMTʹجͮ͘$ϥΠϒϥϦΛύοέʔδԽ͢Δ$SBOFMJGUϓϩδΣΫτ MVDFUNPEVMFEBUB MVDFUDΛ࢖༻ͯ͠ڞ༗ΦϒδΣΫτʹग़ྗ͠ɺMVDFUSVOUJNFͰಡΈऔΔσʔλߏ଄ఆٛͱγϦΞϧԽػೳΛඋ͑ͨDSBUF MVDFUBOBMZ[F MVDFUDʹΑͬͯੜ੒͞Εͨڞ༗ΦϒδΣΫτͷ಺༰Λݕࠪ͢ΔͨΊͷ3VTU࣮ߦՄೳϑΝΠϧ MVDFUJEM *OUFSGBDF%FTDSJQUJPO-BOHVBHFʢ*%-ʣΛհͯ͠ίʔυੜ੒Λ࣮૷͢Δ3VTU࣮ߦՄೳϑΝΠϧ MVDFUTQFDUFTU MVDFUD͓ΑͼMVDFUSVOUJNFɺ͓Αͼʢ֎෦ʣXBCUDSBUFΛ࢖༻ͯ͠ɺެࣜͷ8FC"TTFNCMZ࢓༷ςετεΠʔτΛ࣮ߦ͢Δ3VTUDSBUF MVDFUCVJMUJOT MJCDϓϦϛςΟϒͷ࠷దԽ͞ΕͨωΠςΟϒόʔδϣϯΛఏڙ͢Δ$ϥΠϒϥϦɻ͜ͷϦϙδτϦͷ΄ͱΜͲͷίʔυʹ͸ɺ୯ମςετ ͱ౷߹ςετɺ͓ΑͼϕϯνϚʔΫπʔϧ͕͋Γ·͢ɻ
  12. Fukuoka.rs #5 w -VDFU͸ɺΫϥ΢υΤοδϩέʔγϣϯͰ͋Δ$%/ʢ'BTUMZʣͰ 8FC"TTFNCMZΛߴ଎ىಈ͔ͭ҆શʹՔಇͤ͞Διϑτ΢ΣΞ w ωΠςΟϒίϯύΠϥʔͱϥϯλΠϜʹߏ੒͞ΕɺγεςϜίʔϧతͳ΋ ͷ͸ɺఏڙ͞Ε͍ͯΔDSBUFͰ͋ΔIUUQ@HVFTUΛ࢖ͬͯωοτϫʔΫʹ઀ଓ ͨ͠ΓͰ͖Δ w

    ݱঢ়ɺ5FSSBSJVNͱ͍͏-VDFU͕෼͚ͩಈ͘؀ڥͷΈ͕ఏڙ͞Ε͍ͯΔ 12 -VDFU8FC"TTFNCMZίϯύΠϥʔϥϯλΠϜ
  13. Fukuoka.rs #5 13

  14. Fukuoka.rs #5 5FSSBSJVNΛ࢖ͬͯ΍ͬͨ͜ͱ w 5FSSBSJVNΤϯυϙΠϯτʹϦΫΤετ͢Δ w 8FC"TTFNCMZ͔Β֎෦ϦιʔεͰ͋Δը૾Λऔಘ͢Δ w ϦΫΤετ͔Βը૾ͷϦαΠζ w

    ΫϥΠΞϯτ͸ը૾Λऔಘ͢Δ 14
  15. Fukuoka.rs #5 EBZTͷ։ൃ߹॓ͱ͍͏੍࣌ؒݶʹΑΓஅ೦ ϨϙʔτهࣄIUUQTUFDIQFQBCPDPNLBHPTIJNBLJCBOIBDLBUIPO 15

  16. Fukuoka.rs #5 w 5FSSBSJVNΤϯυϙΠϯτʹϦΫΤετ͢Δ w 8FC"TTFNCMZ͔Β֎෦ϦιʔεͰ͋Δը૾Λऔಘ͢Δ w ϦΫΤετ͔Βը૾ͷϦαΠζԿ΋ͤͣฦ͢ w ΫϥΠΞϯτ͸ը૾Λऔಘ͢Δ

    16 5FSSBSJVNΛ࢖ͬͯ΍ͬͨ͜ͱ
  17. Fukuoka.rs #5 17

  18. Fukuoka.rs #5 ͜Ε͚ͩ 3VTUŠ3VTUDˠ8FC"TTFNCMZŠ-VDFUDˠ/BUJWF$PEFŠ-VDFU 3VOUJNFˠ&YFDVUFE 18

  19. Fukuoka.rs #5 .BDͰͷ࣮ߦϑϩʔ 19 3VTUŠ3VTUDˠ8FC"TTFNCMZŠ-VDFUDˠ/BUJWF$PEFŠ-VDFU3VOUJNFˠ&YFDVUFE

  20. Fukuoka.rs #5 5FSSBSJVNͷϑϩʔ 20 3VTUŠUFSSDUMˠ5FSSBSJVNŠ-VDFUDˠ/BUJWF$PEFŠ-VDFU3VOUJNFˠ%FQMPZ 6QMPBE

  21. Fukuoka.rs #5 %FNP IUUQTHJUIVCDPNMJOZPXTSVUPVDIUFSSBSJVN 21

  22. Fukuoka.rs #5 ·ͱΊ w 8F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