Using Scala.js with the JavaScript ecosystems

6521324f6ab5266cdcde1dd05945a27b?s=47 Shinpei Maruyama
July 14, 2017
1.8k

Using Scala.js with the JavaScript ecosystems

6521324f6ab5266cdcde1dd05945a27b?s=128

Shinpei Maruyama

July 14, 2017
Tweet

Transcript

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

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

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

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

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

  6. JOUFSPQFSBCJMJUZ CFUXFFO 4DBMBKT BOE +BWB4DSJQU

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

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

  9. 1SFEFpOFEUZQFT

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

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

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

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

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

  15. Ұ෦+4Ұ෦4DBMBKT w 1SPT w +4ͷࢿ࢈΍ΤίγεςϜʹͦͷ··৐ΕΔ w $POT w ϧʔϧܾΊͳ͍ͱΧΦεʹͳΔ w

    +4ଆ͸ܕ͕΍Θ͍··ͰɺΞϓϦέʔ γϣϯશମ͕ܕͰकΒΕͳ͍
  16. ιϦϡʔγϣϯͷ ͝঺հ

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

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

  19. .78 7JFX 8IBUFWFS .PEFM 7VF΍Β 3FBDU΍Β ϒϥ΢β΍'8΍ %0.ͷ ౎߹ʹৼΓճ͞ΕΔ ෦෼

    Ͳ͏ͤ ࣗ෼Ͱ ઃܭͯ͠ ॻ͘෦෼
  20. 7VFKTXJUI4DB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͖ͯͳ͍͚Ͳ$MFBO "SDIJUFDUVSFతʹ΋ے͕ྑͦ͞͏ ʹݟ͑Δ

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

  34. ࠓޙͷల๬

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

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

  37. UPCF DPOUJOVFE