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

Rustacean Cafe #0 - Hello World!

Rustacean Cafe #0 - Hello World!

Tarshish

June 06, 2021
Tweet

Other Decks in Programming

Transcript

  1. Rustacean Cafe
    #0 - Hello World!
    TANAKA KOUDAI (@Tarshish09) 2021/06/06

    View full-size slide

  2. ಺༰
    • Rustͷ֓ཁ


    • Rustͷྑ͍ͱ͜Ζɾ·ͩ·ͩͳͱ͜Ζ


    • Կʹ࢖ΘΕ͍ͯΔ͔


    • ࢀߟʹͳΔॻ੶ɾهࣄ

    View full-size slide

  3. ࣗݾ঺հ
    • Twitter : @Tarshish09


    • Rustॳ৺ऀ


    • SecHack365 2021 τϨʔχʔ


    • ϒϩοΫνΣʔϯʹڵຯ͕͋Δ


    • ޷͖ͳήʔϜ͸εϓϥτΡʔϯ

    View full-size slide

  4. Rustͷྺ࢙
    • Mozilla͕։ൃΛࢧԉ͖ͯͨ͠


    • 2015೥ʹ1.0͕ϦϦʔε


    • 2016೥͔Β5೥࿈ଓͰ Stack Over
    fl
    ow Developer Survey ʹͯʮ࠷΋
    Ѫ͞Ε͍ͯΔϓϩάϥϛϯάݴޠʯ̍ҐΛ֫ಘ͠ଓ͚͍ͯΔ


    • 2021೥2݄8೔ʹ AWSɺGoogleɺϑΝʔ΢ΣΠɺMicrosoftɺMozilla
    ͕ Rust Foundation Λ૑ཱʢޙʹFacebook΋ࢀՃʣ

    View full-size slide

  5. Rustͱ͸
    • ͱͯ΋଎͍


    • C, C++ ͷ୅༻ͱͯ͠஫໨͞ΕΔ


    • ΨϕʔδίϨΫλʔ(GC)ͳ͠ͰϝϞϦ؅ཧ͕Ͱ͖Δ


    • ະఆٛಈ࡞΍ϝϞϦ҆શੑʹؔ͢ΔΤϥʔ͕ഉআ͞ΕΔ


    • ฒߦੑʹ༏ΕΔ


    • Ϟμϯͳݴޠػೳ΍πʔϧ

    View full-size slide

  6. Rustͷ͍͍ͱ͜Ζ🤩
    • Τϥʔ͕ஸೡʂʂˡେࣄ


    • εϙʔπΧʔฒΈͷ଎͞


    • ؀ڥߏங͕؆୯


    • ܕ͕ڧྗ


    • ϝϞϦΛ҆શʹ੍ޚͰ͖Δ


    • ίʔυͷಈ͖Λਂ͘ཧղͰ͖Δ

    View full-size slide

  7. Rustͷ͜Ε͔Βʹظ଴͢Δͱ͜Ζ🤔
    • ϥΠϒϥϦͳͲɺΤίγεςϜͷ੔උ͕ൃల్্


    • ؾܰʹॻ͘ʹ͸࿅౓͕ඞཁ


    • ֶशίετ͕ߴ͍


    • ॳ৺ऀ͔Βதڃऀ΁ͷน


    • ͜ΕΒͷ໰୊͸࣌ؒͱڞʹίϛϡχςΟ͕ൃల͢Ε͹ղܾͰ͖Δ💪

    View full-size slide

  8. Rust͸Կʹ޲͍͍ͯΔ͔
    • ௿ϨΠϠશൠʢOSɺTCP/IPɺΠϯλϓϦλͳͲʣ


    • ૊ΈࠐΈ


    • ڝٕϓϩάϥϛϯά


    • WebAssembly


    • ϒϩοΫνΣʔϯ


    • ΄΅ԿͰ΋

    View full-size slide

  9. ͓͢͢ΊͷWebϖʔδ
    • The Rust Programming LanguageɹˠLink


    • ೔ຊޠ༁΋಺༰΋Θ͔Γ΍͍͢Ͱ͢ɻ


    • Rustͷ࠷ॳͷεςοϓɹˠLink


    • Microsoft Learn Ͱֶ΂ΔνϡʔτϦΞϧ


    • RustΛ࢝ΊΔͨΊͷࢿྉूʢyuki͞ΜʣˠLink


    • ৄ͘͠Θ͔Γ΍͘͢·ͱΊΒΕͯ·͢🙏

    View full-size slide

  10. ͓͢͢Ίͷॻ੶


    ʢੵಡ͍ͯ͠Δ΋ͷ΋͋Γ·
    ͕͢…😅ʣ

    View full-size slide

  11. Rustೖ໳
    • ެࣜυΩϡϝϯτΛಡΜͰΈ͚ͨͲ
    ෼͔Βͳ͍ͱ͜Ζ͕͋ͬͨํ΍ɺ
    Ώͬ͘Γཧղ͍ͨ͠ํʹ͓͢͢ΊͰ
    ͢ɻ


    • ແྉ👏


    • Link

    View full-size slide

  12. ࣮ફ


    Rustϓϩάϥϛϯάೖ໳
    • Ұ௨Γೖ໳ॻΛಡΈऴ͙͑ͨΒ͍ͰಡΉͷʹ
    ద͍ͯ͠Δͱࢥ͍·͢ɻ


    • جૅΛαϥοͱɺ࣮ફతͳ಺༰͕٧·͍ͬͯ
    ͯͨΊʹͳΓ·͢ɻ


    • Link

    View full-size slide

  13. RustCoder — AtCoderͱRust
    Ͱ࢝ΊΔڝٕϓϩάϥϛϯάೖ໳
    • ڝٕϓϩάϥϛϯάͷษڧΛ͠ͳ͕ΒRust
    ͷจ๏΋ֶ΂Δૉ੖Β͍͠ॻ੶Ͱ͢ɻ


    • खΛಈ͔͠ͳ͕Βจ๏Λֶͼ͍ͨํʹ͓͢
    ͢ΊͰ͢ɻ


    • ແྉ👏


    • Link

    View full-size slide

  14. جૅ͔ΒֶͿ૊ࠐΈRust
    • ૊ࠐΈʹڵຯ͕͋Δํ͸ͥͻʂ


    • ʮWio TerminalʯͳͲ͕ඞཁʢ౰ͨΓલʣ
    ʢࢲ͸๨Εͯ·ͨ͠…ʣ


    • Rustͷجૅ΋ֶ΂Δ


    • Link

    View full-size slide

  15. Web+DB PRESS


    Vol.122
    • RDBMSΛ؆ܿʹ࣮૷Ͱ͖Δ


    • ஶऀͷํͷYoutube΋͓͢͢Ί


    • Rustͷ؀ڥઃఆͷಈը΋͋Δ


    • Link

    View full-size slide

  16. Programming Rust


    - 2nd Edition
    • 2018೥ʹൃച͞Εͨಉॻ੶ͷΧόʔ


    • 2021/07/20ൃച༧ఆ


    • ҆৺ͷ622ϖʔδ😇


    • Rustͷ͜ͱΛߟ͑ͳ͕Β৸͍ͨਓʹ΋͓͢
    ͢Ί


    • Link

    View full-size slide

  17. RUST FOR
    RUSTACEANS(early)
    • 2021೥11݄ൃച༧ఆ


    • YouTubeͷϥΠϒίʔσΟϯά΋
    ͓͢͢Ί


    • Rustதڃऀ޲͚


    • ϦϯΫ

    View full-size slide

  18. ଞʹ΋͍Ζ͍Ζ…

    View full-size slide

  19. ϥΠϒίʔσΟϯάͷεεϝ


    ʢYouTubeಈը΋ʣ

    View full-size slide

  20. ϥΠϒίʔσΟϯάͷεεϝ(YouTubeಈը΋)
    • Crust of Rust by Jon Gjengsetɹˠ ɹϦϯΫ


    • Educational Rust live coding by David PedersenɹˠɹϦϯΫ


    • Rust Lifetimes by Doug Milfordɹˠ ɹϦϯΫ


    • ULTIMATE Rust Lang Tutorial! by Let’s Get RustyɹˠɹϦϯΫ


    • ͞Βʹ஌Γ͍ͨํ͸ɹˠɹ🍣͞Μͷهࣄ

    View full-size slide

  21. Ͱ͸ɺRustͷੈքʹඈͼࠐΈ·͠ΐ͏ʂ🚀

    View full-size slide

  22. https://www.rust-lang.org/ja/learn/
    get-started

    View full-size slide

  23. ͍͔͕Ͱ͔ͨ͠ʁ

    View full-size slide

  24. ࣍ճ͔Β؆୯ʹղઆ͍ͯ͜͠͏ͱࢥ͍
    ·͢

    View full-size slide

  25. Ͱ͸ɺ࣍ճʂ

    View full-size slide