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

文字列操作に見るRubyとRustの比較文字列操作に見るRubyとRustの比較

 文字列操作に見るRubyとRustの比較文字列操作に見るRubyとRustの比較

Kazushige Tominaga

October 25, 2017
Tweet

More Decks by Kazushige Tominaga

Other Decks in Programming

Transcript

  1. 10 վળલͷϑϩʔ  ϓϧϦΫΛϚʔδ  ΫϦοϓϘʔυʹίϐʔ  εΫϦϓτΛ࣮ߦ PO-PDBM 

     HJUIVCͷUBH࡞੒ϖʔδͷϦϯΫ͕දࣔ͞ΕΔ  ΫϦοΫͨ͠ϦϯΫΛ౿ΜͰϦϦʔε PO(JUIVC
  2. 11  ϓϧϦΫΛϚʔδ  ΫϦοϓϘʔυʹίϐʔ  εΫϦϓτΛ࣮ߦ PO-PDBM  

    HJUIVCͷUBH࡞੒ϖʔδͷϦϯΫ͕දࣔ͞ΕΔ  ΫϦοΫͨ͠ϦϯΫΛ౿ΜͰϦϦʔε PO(JUIVC ͜ͷ෦෼ΛࣗಈԽ վળલͷϑϩʔ
  3. 19 ߟ࡯ w লུՄೳ˱جຊతʹ͸ඞਢ w DBTFจ˱ύλʔϯϚον w ಈతʹม਺ΛఆٛՄೳ˱࢖༻͢Δม਺ ΋͘͠͸ߏ଄ ͸ࣄલʹએݴඞਢ

    w ೚ҙͷέʔεͷΈࢦఆ͢Ε͹0,˱͢΂ͯͷύλʔϯͷ໢ཏ͕ඞਢ w 3VCZ,BJHJͰ3VCZͷύλʔϯϚονͷఏҊ͕͋Γ·ͨ͠Ͷ w ಈతͳύλʔϯϚονΒ͍͠ w ࠓճ͸໰୊ͳ͔ͬͨͷͰεϧʔͯ͠Δ͚Ͳɺ3VCZͩͱਖ਼نදݱͯ͠·͢Ͷ
  4. 36 ·ͱΊ w ΍ͬͯΈͨΒͦΕͧΕͷݴޠͷߟ͑ํͷҧ͍Λͻ͠ͻ͠ͱײͨ͡ w 3VCZ w ʮͱΓ͋͑ͣಈ͘ʯ͜ͱͷ͋Γ͕ͨΈͱੜ࢈ੑ w งғؾͰॻ͚Δ͍͍ͬͯΑͶ

    w ͪΌͪΌͬͱԿ͔Λ࡞Δʹ͸࠷ద w 3VTU w ࣗ෼͕ԿΛ͍ͨ͠ͷ͔ɻΛਅ݋ʹߟ͑ΔػձΛ༩͑ͯ͘ΕΔ w งғؾͰ͸ઈରʹॻ͚ͳ͍ w ίϯύΠϧ࣌఺Ͱࣗ෼Ͱ༧ظ͠ͳ͍όάͳͲΛ௵ͯ͘͠ΕΔ w ܦݧ͸ͳ͍͚Ͳ ͋Δఔ౓Ҏ্ͷن໛ ਓ਺ɾཁ݅΋Ζ΋Ζ ͷγεςϜ Λݫີʹ࡞͍ͬͯ͘ͷʹ޲͍ͯΔͷ͔΋͠Εͳ͍