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

journey through the programming language(censored edition)

takkanm
January 16, 2015

journey through the programming language(censored edition)

http://esminc.doorkeeper.jp/events/18782 で話した資料です。
コード例があったのですが、口での説明がないと誤解をうみそうな感じな気がするので、このエディションでは削除しています

takkanm

January 16, 2015
Tweet

More Decks by takkanm

Other Decks in Programming

Transcript

  1. KPVSOFZUISPVHIUIF
    QSPHSBNJOHMBOHVBHF
    Ӭ࿨γεςϜϚωδϝϯτ
    ΞδϟΠϧࣄۀ෦
    ࡾଜӹོ

    View full-size slide

  2. NF
    ✓ ৽ଔ೥໨
    ✓ (JU)VCUBLLBON
    ✓ ύʔϑΣΫτ3VCZͰϝλϓ
    ϩάϥϛϯά·ΘΓΛॻ͍ͯ
    ·͢

    View full-size slide

  3. 5-%3
    ͨ͘͞ΜͷϓϩάϥϛϯάݴޠΛ
    ஌Δ͜ͱ͸
    Α͍ίʔυΛॻ͘खॿ͚ʹͳΔ

    View full-size slide

  4. ࠓ೔ͷର৅ऀ
    ࢓ࣄͰ࢖͏ϓϩάϥϛϯάݴޠ͙Β͍͔͠
    ஌Βͳ͍ਓ

    View full-size slide

  5. ΞδΣϯμ
    ✓ ԿނΘ͕ͨ͠ϓϩάϥϛϯάݴޠʹڵຯΛ࣋ͭ
    Α͏ʹͳͬͨͷ͔
    ✓ ϓϩάϥϛϯάݴޠ͸ͨ͘͞Μଘࡏ͢Δ
    ✓ Կނͨ͘͞ΜͷϓϩάϥϛϯάݴޠΛֶͿͱΑ
    ͍ͷ͔

    View full-size slide

  6. Θ͕ͨ͠Կނ
    ϓϩάϥϛϯάݴޠʹ
    ڵຯΛ࣋ͬͨͷ͔

    View full-size slide

  7. େֶ࣌୅ɺतۀͰ͸$ݴޠɺ
    ՈͰ͸3VCZ

    View full-size slide

  8. )BTLFMMΛ஌Δ

    View full-size slide

  9. ͦΕ·Ͱ΋$΍3VCZҎ֎ʹ΋ݴޠ͕
    ͋Δ͜ͱ͸஌͍͕ͬͯͨɺ)BTLFMMͷ
    ଞͷݴޠͱҧͬͨॻ͖ํΛ͠ͳ͍ͱ͍͚
    ͳ͍ͱ͜ΖʹিܸΛ͏͚ͨɻ

    View full-size slide

  10. ϓϩάϥϛϯάݴޠ͸
    ͨ͘͞Μଘࡏ͢Δ

    View full-size slide

  11. ੈͷதʹ͸ɺଟ਺ͷϓϩάϥϛϯάݴޠ͕
    ଘࡏ͍ͯ͠·͢ɻ༷ʑͳϓϩάϥϛϯάݴޠͷ
    ॻ͖ํΛݟ͍͖ͯɺϓϩάϥϛϯάݴޠͷ
    ੈքΛ೷͍ͯΈ·͠ΐ͏ɻ

    View full-size slide

  12. ͜͜Ͱ঺հ͢Δݴޠ
    ✓ खଓ͖ܕݴޠ$ݴޠ
    ✓ खଓ͖Λهड़ͯ͠ϓϩάϥϛϯά͢Δ
    ✓ ΦϒδΣΫτࢦ޲ݴޠ+BWB *P
    ✓ ΦϒδΣΫτʹϝοηʔδΛૹͬͯϓϩάϥϛ
    ϯά͢Δ

    View full-size slide

  13. ؔ਺ ϝιου
    ఆٛ

    View full-size slide

  14. ͜͜Ͱ঺հ͢Δݴޠ
    ✓ ಈతܕ෇͚ݴޠ3VCZ
    ✓ ม਺ͷܕ͕࣮ߦ࣌ʹಈతʹܾఆ͞ΕΔ
    ✓ ੩తܕ෇͚ݴޠ+BWB )BTLFMM
    ✓ ม਺ͷܕ͕࣮ߦલʹܾఆ͞ΕΔ

    View full-size slide

  15. ϓϩάϥϛϯάݴޠ͕มΘΔͱ
    ಉ͜͡ͱΛ΍Δ͚ͩͳͷʹ
    ॻ͖ํ΋มΘΔ

    View full-size slide

  16. ධՁઓུ
    ϓϩάϥϛϯάݴޠ͕͔ΘΔͱ͕ࣜධՁ͞ΕΔλΠϛϯ
    ά͕ҧ͏͜ͱ΋͋Δɻ3VCZ΍+BWBͳͲ͸ઌߦධՁͱ
    ݺ͹Εɺࣜ͸͙͢ʹධՁ͞ΕΔɻҰํɺ)BTLFMM͕࠾༻
    ͍ͯ͠Δ஗ԆධՁ͸ɺ஋͕ඞཁʹͳͬͨͱ͖ʹඞཁͳͿΜ
    ͔͠ධՁ͞Εͳ͍Α͏ʹͳ͍ͬͯΔɻ

    View full-size slide

  17. ͜ͷΑ͏ʹҰޱʹʮϓϩάϥϛϯάݴޠʯͱ͍ͬͯ΋ɺ
    ϓϩάϥϜͷॻ͖ํ͔ΒධՁͷ࢓ํ౳ɺ༷ʑͳҧ͍͕͋Δɻ
    ͔͠͠ɺϓϩάϥϜΛ࣮ߦͯ͠ಘΒΕΔ݁Ռ͸ɺ
    ͲͷݴޠΛ༻͍ͯ΋࠷ऴతʹ͸ಉ݁͡ՌΛಘΔ͜ͱ͕Ͱ͖Δɻ

    View full-size slide

  18. Կނͨ͘͞Μͷ
    ϓϩάϥϛϯάݴޠΛ
    ֶͿͱΑ͍ͷ͔

    View full-size slide

  19. Կނ͔
    ✓ ࣗ෼ʹ༩͑ΔӨڹ
    ✓ ݴޠ͕ଞͷݴޠ͔Βड͚
    ΔӨڹ

    View full-size slide

  20. ࣗ෼ʹ༩͑ΔӨڹ

    View full-size slide

  21. ͍Ζ͍ΖͳϓϩάϥϛϯάݴޠΛ
    ஌Δ͜ͱͰɺ༷ʑͳߟ͑ํ΍දݱ
    ํ๏ʹ৮ΕΔ͜ͱ͕Ͱ͖Δ

    View full-size slide

  22. ໰୊Λղ͘ͱ͖΍
    ཧղ͢Δͱ͖ͷ
    ݟํ΍ߟ͑ํΛ
    ม͑Δ͖͔͚ͬʹͳΔ

    View full-size slide

  23. աڈͷܦݧྫ

    View full-size slide

  24. 3VCZΛ஌ͬͨޙʹ
    )BTLFMMΛษڧ

    View full-size slide

  25. ͳΜͰ΋Ϧετͱͯ͠
    ෭࡞༻ͳ͠Ͱܭࢉͨ͘͠ͳΔ

    View full-size slide

  26. ྫͭͷ഑ྻͷಉ͡ཁૉ൪
    ߸ͷ֤ཁૉΛ͔͚͋Θͤͯɺ
    ͢΂ͯ߹ܭ͍ͨ͠

    View full-size slide

  27. ଞͷݴޠͰΑ͍ͱ͞Ε͍ͯΔ͜ͱ͚ͩͰɺ
    ॻ͘ͱࠔΔ͜ͱ΋͋Δ

    View full-size slide

  28. ѱ͍ྫ
    ςΩετ

    View full-size slide

  29. ͓͢͢Ίͷํ๏
    ผͷݴޠͰΑ͍ͱ͞Ε͍ͯΔॻ͖ํ΍
    ߟ͑ํΛ஌͔ͬͨΒͱ͍ͬͯશ෦ʹ
    ࢖͍ͨ͘ͳΔؾ࣋ͪΛ͓͑ͭͭ͞ɺ
    ⓸Λݟͯࢼ͍ͯ͘͠

    View full-size slide

  30. ݴޠ͕ଞͷݴޠ͔Β
    ड͚ΔӨڹ

    View full-size slide

  31. ଞͷݴޠͷߟ͑ํ͕
    ผͷݴޠʹऔΓೖΕΒΕΔ

    View full-size slide

  32. 3VCZ͕1FSM΍-JTQ͔ΒͷӨڹΛड͚͍ͯΔΑ
    ͏ʹɺݴޠ͕ੜ·Ε͖ͯͨͱ͖͔ΒɺଞͷݴޠͷӨ
    ڹΛड͚͍ͯΔ͜ͱ͕͋Δɻ·ͨɺ+BWBͷϥϜ
    μࣜ΍3VCZͷ-B[Z౳ɺଞͷݴޠͰΑ͍ͱ͞Ε
    ͍ͯΔ΋ͷ͕ݴޠʹͱΓ͜·Ε͍ͯ͘͜ͱ΋͋Δɻ
    ଞͷݴޠͰ͋ͨΓ·͑ͱ͞ΕΔߟ͑ํ͕ɺΑ͍ελ
    Πϧͩͱ͍ΘΕͩ͢͜ͱ΋͋Δɻ

    View full-size slide

  33. ͍Ζ͍ΖͳϓϩάϥϛϯάݴޠΛֶͿ͜ͱ
    ͸ɺීஈॻ͘ίʔυʹӨڹΛ༩͑Δɻ·ͨɺ
    ͦͷ஌ࣝ͸;ͩΜ࢖͍ͬͯΔݴޠʹରͯ͠
    ৽͍͠ൃݟΛ͋ͨ͑ͯ͘ΕΔ͜ͱ͕͋Δɻ

    View full-size slide

  34. –ୡਓϓϩάϥϚ ୈ1 ষ ୡਓͷ఩ֶ
    lຖ೥গͳ͘ͱ΋ʔͭͷݴޠΛֶश͢Δz

    View full-size slide

  35. ࠓ೔ͷࢀߟจݙ
    ✓ ͭͷݴޠͭͷੈք ΦʔϜࣾ

    ✓ िؒݴޠͰͭͷݴޠΛֶ΂Δຊ
    ✓ ίʔσΟϯάΛࢧ͑Δٕज़ ٕज़ධ࿦ࣾ

    ✓ ༷ʑͳϓϩάϥϛϯάͷߟ͑ํΛϘτϜΞοϓʹ঺հ͢Δຊ
    ✓ ϓϩάϥϛϯάݴޠͷ֓೦ͱߏ଄ ϐΞιϯ

    ✓ ͍ΖΜͳݴޠͰϓϩάϥϛϯάύϥμΠϜΛ঺հͯ͘͠ΕΔ
    ͕ɺϐΞιϯͷͨΊೖखࠔ೉ʜ

    View full-size slide

  36. ͞Βʹϓϩάϥϛϯά
    ݴޠʹڵຯΛ࣋ͬͨΒ

    View full-size slide

  37. USZ
    ✓ ݴޠͷػೳ͕Ͳ͏΍࣮ͬͯ૷͞Ε
    ͍ͯΔ͔ʹڵຯΛ࣋ͬͯΈΑ͏
    ✓ ݴޠ͕Ͳ͏΍࣮ͬͯ૷͞Ε͍ͯΔ
    ͔ʹڵຯΛ࣋ͬͯΈΑ͏

    View full-size slide

  38. ࣈ۟ղੳ
    ߏจղੳ
    ίϯύΠϧ
    ࣮ߦ

    View full-size slide