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

Beyond the Boundaries

Issei Naruta
February 10, 2018

Beyond the Boundaries

Cookpad TechConf 2018 Keynote
10 Feb, 2018
https://techconf.cookpad.com/2018/

Issei Naruta

February 10, 2018
Tweet

More Decks by Issei Naruta

Other Decks in Technology

Transcript

  1. 3

  2. 4

  3. 5

  4. 7

  5. 9

  6. 15

  7. ΫοΫύουͷ Ruby ΁ͷߩݙ Ruby 2.5 (2017/12) • VM ͷߴ଎Խʢ஗ԆProcੜ੒ɺtrace໋ྩ࡟আͳͲʣʢ࡫ాʣ •

    ந৅ߏจ໦ͷ࠶ߏஙɺ෼ذΧόϨοδͷ௥Ճʢԕ౻ʣ Ruby 3 (2020?) • ฒྻฒߦػߏʢ࡫ాʣ • ੩తղੳʢԕ౻ʣ 22 ϑϧλΠϜRuby։ൃऀ͕ೋਓฒΜͰ։ൃ͍ͯ͠Δͷ͸্࢙ॳ NEW
  8. ΤϯδχΞߦಈنൣ "Beyond The Boundaries" (ڥքΛ௒͑Δ) • ໾ׂʹର͢Δࢥ͍ࠐΈ • ࣗ෼ࣗ਎ͷٕज़ྗ •

    OSS ΁ͷίϯτϦϏϡʔτ • ݴޠɺࠃڥ • ৽نࣄۀ΁ͷ௅ઓ 27 ʮڥքʯΛೝࣝ͠ɺ৐Γӽ͑Δڧ͍૊৫΁ NEW
  9. ࠲ֶ + Hack Λ1೔ͰΈͬͪΓ΍Δ ීஈ৮ΕΔػձͷͳ͍ٕज़ʹ৮ΕΔ • ୈ1ճ: Ruby ΠϯλϓϦλ (MRI)

    ։ൃ • ୈ2ճ: ػցֶश • ୈ3ճ: ࣾ಺ISUCON (αʔόαΠυνϡʔχϯά) Hackarade: શΤϯδχΞࢀՃͷϋοΧιϯ NEW
  10. 36

  11. 37

  12. 42

  13. 43

  14. 44

  15. 45

  16. 48 ڞಇ͖ͷ૿Ճ ୯਎ऀͷ૿Ճ ߴྸऀͷ Ұਓ฻Β͠ ඇߦͷ૿Ճ ྉཧεΩϧ ͷݮগ ྉཧจԽ͕ Ոఉ಺Ͱ

    ఻ঝ͞Εͳ͍ ๩͘͠ ੈଳௐཧ࣌ؒ ͷݮগ ௐཧεΩϧ ͷݮগ ௐཧͷश׳Խ͕ ͞Εͳ͍ ֎৯ɾத৯ͳͲ Ճ޻৯඼΁ґଘ ྉཧͷࣾձత ೝ஌ɾ஍Ґ ͷ௿Լ ࡉ೶Ո ͷࠔځ ͷຄڵ ޻ۀԽ ݽ৯ͷ૿Ճ ࢠͲ΋ɾ୯਎ऀ
  17. 49 ֩Ո଒Խ ౎ࢢʹ͓͍ͯ࣌ؒͷ ࢖͍ಓ ʢPS࢖͍ํʣ ͷ ڝ߹͕ଟ͍ ڞಇ͖ͷ૿Ճ Ոఉʹ͓͚Δ ૯࿨࣌ؒͷݮগ

    ୯਎ऀͷ૿Ճ ߴྸऀͷ Ұਓ฻Β͠ ॴಘͷೋۃԽ ඇߦͷ૿Ճ ྉཧεΩϧ ͷݮগ ྉཧจԽ͕ Ոఉ಺Ͱ ఻ঝ͞Εͳ͍ ஍ํͷաૄԽͱ ίϛϡχςΟ ͷ૕ࣦ ๩͘͠ ੈଳௐཧ࣌ؒ ͷݮগ ௐཧεΩϧ ͷݮগ ௐཧͷश׳Խ͕ ͞Εͳ͍ ֎৯ɾத৯ͳͲ Ճ޻৯඼΁ґଘ ௿௞ۚ ࿑ಇ ݈߁ण໋ ͷ୹ॖԽ ྉཧͷࣾձత ೝ஌ɾ஍Ґ ͷ௿Լ ྉཧ΁ͷ ڵຯͷ௿Լ ྉཧจԽͷ ૕ࣦ ྵࡉ೶Ո ͷࠔځ ৯ࡐͷ ύοέʔδ ঎඼Խ େن໛ εʔύʔϞʔϧ ͷຄڵ ৯࢈ۀ ͷ޻ۀԽ ֨ ϧ ࡐͷ ɾൢച ըҰԽ ಉ͡৯ࡐ͕ ৯ྉ඼ళʹฒͿ ݽ৯ͷ૿Ճ ࢠͲ΋ɾ୯਎ऀ
  18. 50 ৯ͷܦࡁγεςϜ ৯ͷจԽ ੈ ք ݸ ਓ ΞϨϧΪʔ ͷ૿Ճ ࣾձ՝୊

    ྉཧʹؔ͢Δ ݱ৅ ຌྫ ࢠͲ΋ͷංຬ ֩Ո଒Խ ౎ࢢʹ͓͍ͯ࣌ؒͷ ࢖͍ಓ ʢPS࢖͍ํʣ ͷ ڝ߹͕ଟ͍ ͪΌΜͱ ྉཧΛ͠ͳ͍͜ͱ ʹର͢ΔແҙࣝԼ ͷࡑѱײ จԽతՁ஋ ͷྼޙ ྉཧ͸ঁੑ͕ ΍Δ΂͖ͩͱ͍͏ ࣾձతՁ஋؍ ڇͷࣂྉͷ େྔੜ࢈ ؀ڥഁյ ࢿຊओٛʹΑΔ ࢢ৔ݪཧγεςϜ 850 ʹ͓͚Δ ࣗ༝๵қମ੍ ϑʔυϩεͷ ૿Ճ (.0 ٕज़ʹΑΔ େن໛೶ۀԽ ԕ༸ړۀ ʹΑΔཚ֫ ڞಇ͖ͷ૿Ճ Ոఉʹ͓͚Δ ૯࿨࣌ؒͷݮগ ୯਎ऀͷ૿Ճ ߴྸऀͷ Ұਓ฻Β͠ ॴಘͷೋۃԽ ඇߦͷ૿Ճ ৯ࡐͷߴಅ څ৯ͷఀࢭ ྉཧεΩϧ ͷݮগ ྉཧจԽ͕ Ոఉ಺Ͱ ఻ঝ͞Εͳ͍ ஍ํͷաૄԽͱ ίϛϡχςΟ ͷ૕ࣦ ౎ࢢԽ ౎ࢢ΁ͷਓޱूத Ոఉͱ஍ҬͰ ա࣌ؒ͢͝ ͷݮগ ۚમՁ஋΁ͷ ґଘ ๩͘͠ ੈଳௐཧ࣌ؒ ͷݮগ ௐཧεΩϧ ͷݮগ ௐཧͷश׳Խ͕ ͞Εͳ͍ ֎৯ɾத৯ͳͲ Ճ޻৯඼΁ґଘ ౎ࢢԽͱ஍Ҭ ίϛϡχςΟͷ ૕ࣦ ෆ݈߁ ͳ৯ੜ׆ ֎৯ɾத৯ͳͲͷ Ճ޻৯඼΁ґଘ ௐཧεΩϧ ͷݮগ ௿௞ۚ ࿑ಇ ௿ॴಘऀ૚ ͷෆ݈߁ ೱ͍ຯ΁ͷ ཉٻ͕૿Ճ ຯ֮ຑᙺ ͷਐߦ ݈߁ण໋ ͷ୹ॖԽ ຯ֮ຑᙺ ྉཧͷࣾձత ೝ஌ɾ஍Ґ ͷ௿Լ ങ͍෺ͷ ָ͠Έͷݮগ ྉཧ΁ͷ ڵຯͷ௿Լ ྉཧจԽͷ ૕ࣦ ۚમՁ஋Ҏ֎ͷ Ձ஋ྼޙԽ (%1 ͷ ܦࡁࢦඪԽ Ոఉʹ͓͚Δ ΞϯϖΠυϫʔΫ ͷ௿ධՁ ྉཧՁ஋ ͷ௿ධՁ ྉཧՁ஋ͷ ඇφϥςΟϒԽ ྵࡉ೶Ո ͷࠔځ ৯ࡐͷ ύοέʔδ ঎඼Խ େن໛ εʔύʔϞʔϧ ͷຄڵ ৯඼Ճ޻೑ ͷେྔੜ࢈ ৯࢈ۀ ͷ޻ۀԽ ৯ੜ࢈ͷ େن໛Խ ৯ੜ࢈ͷ ஍Ҭతภࡏ ΧϩϦʔχʔζ ͷ૿Ճ ੈքਓޱͷ૿Ճ ੈքਓޱ૿Ճͱ ৯ੜ࢈ͷେن໛Խ +"ɾ೶ڠ ͳͲʹΑΔՁ֨ ίϯτϩʔϧ ৯ࡐͷ ྲྀ௨ɾൢച ͷըҰԽ ಉ͡৯ࡐ͕ ৯ྉ඼ళʹฒͿ ੜ࢈ऀ ʢ೶Ո ɾ ړࢣͳͲʣ ͕ѻ͏ଟ༷ͳ ඼छΛѻΘͳ͍ ৯ҭͷػձ ͷݮগ ੜ࢈ͱফඅ͕ ཭ΕΔ ݽ৯ͷ૿Ճ ࢠͲ΋ɾ୯਎ऀ ৯ͱྉཧʹ·ͭΘΔ ࣾձ՝୊Ϛοϓ ɹ͜ͷϚο ϓ͸ɺ ৯ͱྉཧʹؔ͢Δࣾձ՝୊Λɺ ՝୊ಉ࢜ͷؔ܎ੑʹண໨ͯ͠੔ཧͨ͠΋ͷͰ͢ɻ ੔ཧͨ݁͠Ռɺ Ոఉʹ͓͚ΔྉཧʹӨڹΛ༩͑Δ͍͘ ͔ͭͷѱ॥؀͕͋Δ͜ͱ͕෼͔Γ·ͨ͠ɻ ɹԣ࣠Ͱ͸ɺ ͦͷѱ॥؀͕ى͍ͬͯ͜ΔγεςϜͷن໛Λੈք͔Βݸਓ·Ͱද͠ɺ ॎ࣠Ͱ͸ɺ ৯ͷ ܦࡁγεςϜʹؔΘΔ໨ʹݟ͑ΔαΠ Ϋϧͱɺ ͦͷഎܠͰى͍ͬͯ͜Δ৯ͷจԽʹؔΘΔ໨ʹݟ͑ ͳ͍αΠ Ϋϧʹ෼ྨ͠·ͨ͠ɻ