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

EnumerableをRubyで再実装してみた

 EnumerableをRubyで再実装してみた

110cd4dcaed019b3bd9809e541afdeb6?s=128

Masafumi Okura

April 12, 2019
Tweet

Transcript

  1. RejectKaigi2019 LT EnumerableΛRubyͰ࠶࣮૷ͯ͠Έͨ େ૔խ࢙ʢ@okuramasafumiʣ 2019-04-12, Pixiv

  2. EnumerableΛRubyͰ࠶࣮૷ ͯ͠Կ͕͏Ε͍͠ͷʁ

  3. ͕͜͜͏Ε͍͠ʂ • ීஈ࢖Θͳ͍๨Ε͍ͯͨϝιουΛ֮͑Δ • RubyͷදݱྗʹվΊͯײँ͢Δ • eachͱblockͷ࢖͍ํʹशख़Ͱ͖Δ

  4. Pro tip: RubiniusͰ౴͑߹Θͤ

  5. Rubunius͸ศར • Rubinius͸CRubyͱ͸ผͷॲཧܥ • ΄ͱΜͲͷίʔυ͕RubyͰ࣮૷͞Ε͍ͯΔ • CRubyͩͱCݴޠͰ࣮૷͞Ε͍ͯΔEnumerable΋RubyͰॻ͔Ε͍ͯΔͷ Ͱɺ٧·ͬͨΒͪ͜ΒΛݟΔͱΑ͍

  6. ૣ଎΍ͬͯΈΑ͏ʂ

  7. ࠷ޙʹɿ ͜Μͳײ͡ͷ͜ͱΛ ίϛϡχςΟͰ΍Γ͍ͨ

  8. Grow.rb • ઌ೔ୈ0ճΛ։࠵ • ϋϯζΦϯͬΆ͍ελΠϧͰEnumerableΛΈΜͳͰ࠶࣮૷ • ͍Ζ͍Ζ࠶࣮૷ͯ͠ΈͨΓ࣮ݧͯ͠ΈͨΓͯ͠Rubyͷ஌ࣝΛਂΊ͍͖ͯͨ ͍ • https://growrb.connpass.com/

  9. ࣍͸Grow.rbͰ ͓ձ͍͠·͠ΐ͏ʂ