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

Using Scala.js with the JavaScript ecosystems

Shinpei Maruyama
July 14, 2017
2.1k

Using Scala.js with the JavaScript ecosystems

Shinpei Maruyama

July 14, 2017
Tweet

Transcript

  1. CZ͠Μ΃͍BLBೣܕ஝Իػ
    6TJOH4DBMBKTXJUI
    UIF+BWB4DSJQU
    FDPTZTUFN

    View full-size slide

  2. BCPVUNF
    w ג
    ϝσΟϩϜ
    w ීஈ͸4DBMBͱ͔+4ͱ͔
    w 1FSM 3VCZ΋ͨ͠ͳΉఔ౓ʹ
    w UXJUUFS!TIJOQFJ

    View full-size slide

  3. 4DBMBKT
    w 4DBMBUP+BWB4DSJQUͳτϥϯ
    εύΠϥ
    w WXBTBOOPVODFEJO
    +VMZ

    View full-size slide

  4. &YBNQMF
    4DBMBKTެࣜυΩϡϝϯτΑΓҾ༻

    IUUQTXXXTDBMBKTPSHEPDJOUFSPQFSBCJMJUZFYQPSUUPKBWBTDSJQUIUNM

    View full-size slide

  5. )PXUPUSBOTQJMF
    w TCUʹϓϥΪϯͭͬ͜ΜͰTCUͰ
    USBOTQJMF͢Δ
    w UBSHFUσΟϨΫτϦҎԼʹ+4
    ϑΝΠϧ͕ు͔ΕΔ

    View full-size slide

  6. JOUFSPQFSBCJMJUZ
    CFUXFFO
    4DBMBKT
    BOE
    +BWB4DSJQU

    View full-size slide

  7. VTJOH4DBMBKTGSPN+4
    w TCUͰు͔Εͨ+4ΛXFCQBDLͰ
    ͕ͬͪΌΜ͢ΔͳΓͦͷ··ಡΈࠐ
    ΉͳΓͯ͠࢖͑͹ྑ͍

    View full-size slide

  8. VTJOH+4GSPN4DBMBKT
    w CSJEHFJOUFSGBDFΛ4DBMBKT
    ଆͰఆٛͯ͠΍Δ
    w ৄ͘͠͸ެࣜυΩϡϝϯτΛ

    View full-size slide

  9. 1SFEFpOFEUZQFT

    View full-size slide

  10. 4DBMBKTͱ
    OBUJWF+4ͷ
    ར༻ઓུΛߟ͑Δ

    View full-size slide

  11. બ୒ࢶ
    w શ෦4DBMBKTͰ΍Δ
    w Ұ෦4DBMBKTҰ෦+BWB4DSJQU
    Ͱ΍Δ

    View full-size slide

  12. શ෦4DBMBKTͰ΍Δ
    w 1SPT
    w ΞϓϦέʔγϣϯશମ͕ݎ࿚ͳܕͰकΒ
    ΕΔ
    w +4ଆͱͷڥ໨Λ͋·Γҙࣝ͠ͳͯ͘ࡁ
    Ή

    View full-size slide

  13. શ෦4DBMBKTͰ΍Δ
    w $POT
    w +4ͷϥΠϒϥϦࢿ࢈ͳͲΛͲ͏΍ͬͯ
    ࢖͏͔ͱ͍͏໰୊͕͋Δ
    w ࣗ෼ͰJOUFSGBDFΛఆٛ͢Δʁ·͡Ͱʁ
    w ͱ͸͍͑༗໊Ͳ͜Ζ͸͢Ͱʹ༗ࢤ͕༻ҙ
    ͯ͘͠ΕͨΓ͢Δ

    View full-size slide

  14. શ෦4DBMBKTͰ΍Δ
    w $POTʢଓ͖ʣ
    w IUUQTXXXTDBMBKTPSH
    MJCSBSJFTGBDBEFTIUNM
    w 7VFKTͱ͔ͷ୯ҰϑΝΠϧίϯϙʔω
    ϯτͲ͏͢ΜͶΜͱ͔+4ͷΤίγεςϜ
    ʹ৐Γ੾Εͳ͍ײ͡͸͋Δ

    View full-size slide

  15. Ұ෦+4Ұ෦4DBMBKT
    w 1SPT
    w +4ͷࢿ࢈΍ΤίγεςϜʹͦͷ··৐ΕΔ
    w $POT
    w ϧʔϧܾΊͳ͍ͱΧΦεʹͳΔ
    w +4ଆ͸ܕ͕΍Θ͍··ͰɺΞϓϦέʔ
    γϣϯશମ͕ܕͰकΒΕͳ͍

    View full-size slide

  16. ιϦϡʔγϣϯͷ
    ͝঺հ

    View full-size slide

  17. ιϦϡʔγϣϯ
    w 6*૚͸ૉ௚ʹ+4ͷ6*ϑϨʔϜϫʔ
    ΫͰͦͷ··ॻ͘
    w Ϟσϧ૚ҎԼΛ4DBMBKTͰॻ͍ͯɺ
    ͔ͦ͜Β+4͸৮Βͳ͍

    View full-size slide

  18. .78
    7JFX
    8IBUFWFS
    .PEFM
    6*
    -BZFS
    .PEFM
    -BZFS

    View full-size slide

  19. .78
    7JFX
    8IBUFWFS
    .PEFM
    7VF΍Β
    3FBDU΍Β
    ϒϥ΢β΍'8΍
    %0.ͷ
    ౎߹ʹৼΓճ͞ΕΔ
    ෦෼
    Ͳ͏ͤ
    ࣗ෼Ͱ
    ઃܭͯ͠
    ॻ͘෦෼

    View full-size slide

  20. 7VFKTXJUI4DBMBKT
    7VF$PNQPOFOU
    7JFX7JFX.PEFM
    .PEFM
    7VFKT
    4DBMBKT
    $PNNBOE 2VFSZ
    &WFOU
    XBUDI

    View full-size slide

  21. 7VFKTXJUI4DBMBKT
    7VF$PNQPOFOU
    7JFX7JFX.PEFM
    .PEFM
    7VFKT
    4DBMBKT
    $PNNBOE 2VFSZ
    &WFOU
    JOWPLF
    ෭࡞༻

    View full-size slide

  22. 7VFKTXJUI4DBMBKT
    7VF$PNQPOFOU
    7JFX7JFX.PEFM
    .PEFM
    7VFKT
    $PNNBOE 2VFSZ
    &WFOU
    OPUJGZ
    4DBMBKT

    View full-size slide

  23. 7VFKTXJUI4DBMBKT
    7VF$PNQPOFOU
    7JFX7JFX.PEFM
    .PEFM
    7VFKT
    Ͳ͏ͤ
    ࣗ෼Ͱ
    ઃܭͯ͠
    ॻ͘෦෼
    $PNNBOE 2VFSZ
    &WFOU
    GFUDI

    View full-size slide

  24. σʔλϑϩʔ͸୯ํ޲
    7VF$PNQPOFOU
    7JFX7JFX.PEFM
    .PEFM
    7VFKT
    Ͳ͏ͤ
    ࣗ෼Ͱ
    ઃܭͯ͠
    ॻ͘෦෼
    $PNNBOE 2VFSZ
    &WFOU

    View full-size slide

  25. αϯϓϧίʔυ
    w αʔόʔͱಉظ͢ΔλΠϓͷ
    5PEP"QQ
    w IUUQTHJUIVCDPN
    4IJOQFJN
    4DBMBKT5PEP&YBNQMF

    View full-size slide

  26. "QQMJDBUJPO4FSWJDF

    View full-size slide

  27. ී௨ͷ4DBMB

    View full-size slide

  28. ී௨ͷ୯ҰϑΝΠϧ
    ίϯϙʔωϯτ

    View full-size slide

  29. .PEFMϨΠϠʔ
    "QQMJDBUJPO૚
    ϐϡΞ4DBMBͰॻ͚Δ
    $PNNBOEͳͲ͸
    +4ଆʹ&YQPSU

    %PNBJO૚ ϐϡΞ4DBMBͰॻ͚Δ
    *OGSBTUSVDUVSF૚ 4DBMBͰॻ͚ͳ͍ʂ

    View full-size slide

  30. %*ͰղܾͰ͖ͦ͏
    w *OGSB૚ͷ*'Λ%PNBJO૚ʹॻ͘
    w ͦͷ*'Λຬͨͨ͠ɺ+4ଆͰॻ͍ͨ
    ࣮૷Λ%*͢Ε͹Αͦ͞͏
    w ·࣮ͩݧͰ͖ͯͳ͍͚Ͳ$MFBO
    "SDIJUFDUVSFతʹ΋ے͕ྑͦ͞͏
    ʹݟ͑Δ

    View full-size slide

  31. ͦ΋ͦ΋αΠζେ͖͍
    w 5PEP"QQϨϕϧͰɺNJOJGZ͋Γ
    Ͱ΋.#௒͑
    w ݫ͍͠

    View full-size slide

  32. ࠓޙͷల๬

    View full-size slide

  33. ͋Δఔ౓ෳࡶͳ(6*ΞϓϦॻ͖͍ͨ
    w ෳࡶʹͳΕ͹ͳΔ΄Ͳ4DBMBͷྑ
    ͕͞ޮ͍ͯ͘Δ͸ͣ

    View full-size slide

  34. FMFDUSPOʹ࢖͍͍ͨ
    w &MFDUSPOͳΒ΂ͭʹ+4ͷαΠζ
    େ͖͘ͳͬͯ΋໰୊ͳ͘ͳ͍ʁ
    w ͔ͨ͠ʹʂʂʂ
    w 4DBMBͰ(6*ΞϓϦέʔγϣϯ։
    ൃ΍ʂʂʂʂ

    View full-size slide

  35. UPCF
    DPOUJOVFE

    View full-size slide