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

KLabエキスパートキャンプ成果発表

teru0x1
August 29, 2019

 KLabエキスパートキャンプ成果発表

teru0x1

August 29, 2019
Tweet

More Decks by teru0x1

Other Decks in Technology

Transcript

  1. ͳͥRUST͔ • CݴޠฒΈͷߴ͍ύϑΥʔϚϯε • ܕ҆શੑɺϝϞϦ҆શੑ - ະఆٛಈ࡞͕ൃੜ͠ͳ͍ - ແޮͳϙΠϯλ͸࡞੒͞Εͳ͍ʢؔ਺͔ΒϩʔΧϧม਺΁ͷϙΠ ϯλΛฦ͢ͳͲʣ

    - ίϯύΠϧ௨ͬͨ࣌ͷ҆৺ײ͕͍͢͝ • ߴ͍දݱྗ(ΫϩʔδϟɺΠςϨʔλ) • ॆ࣮ͨ͠ඪ४ϥΠϒϥϦʢϋογϡςʔϒϧɺλϓϧʣ
  2. ࢓༷ͳͲ • TCPͷιέοτϥΠϒϥϦͱͯ͠ΞϓϦέʔγϣϯ͔Βར༻Ͱ͖Δ Α͏ʹͨ͠ • ࣮૷ͨ͠API - connect(): 3-way-handshakeΛߦ͍઀ଓΛཱ֬͢Δ -

    bind(): Ϧεχϯάιέοτͷੜ੒ɺࢦఆͨ͠ΞυϨεͰϦοεϯ - accept(): ઀ଓࡁΈιέοτΛฦ͢ - read(): ઀ଓࡁΈιέοτ͔ΒಡΈࠐΉ - write(): ઀ଓࡁΈιέοτ΁ॻ͖ࠐΉ • ࠶ૹ੍ޚ
  3. ײ૝ͳͲ • TCP׬શʹཧղͨ͠ งғؾ͕গ͠Θ͔ΔΑ͏ʹͳͬͨ - ίωΫγϣϯ؅ཧͷख๏͕Θ͔ͬͨ - ঢ়ଶΛ࣋ͭͱҰؾʹෳࡶʹͳΔ • 1೔ʹҰճ͸σουϩοΫͰϋϚͬͨ

    - Ͱ΋ɺʮσουϩοΫͯ͠ΔΑʂʯͱॲཧܥ͕ڭ͑ͯ͘ΕΔ • ggͬͯ΋ग़ͯ͜ͳ͍ਂ͍஌ࣝʹ͍࣭ͭͯ໰Ͱ͖ͯษڧʹͳͬͨɻ • ߨٛͷํ΋ฉ͍ͯΈ͔ͨͬͨ • Rust͸͍͍ͧʂʂʂʂʂʂʂʂʂ ϝϯλʔ͞Μɺνϡʔλʔ͞ΜɺӡӦ͞Μɺ͋Γ͕ͱ͏͍͟͝·ͨ͠ɻ