Save 37% off PRO during our Black Friday Sale! »

Aizu.go

7d5b3d3d16438dfeeb7fee44e721889a?s=47 Yamashou
July 22, 2017
54

 Aizu.go

ELM&serverless

7d5b3d3d16438dfeeb7fee44e721889a?s=128

Yamashou

July 22, 2017
Tweet

Transcript

  1. Aizu.go ࢁຊ঵ଠ

  2. ࣗݾ঺հ ࢁຊ঵ଠ Yamashou ֶ෦3೥ σβΠχ΢Ϝ ৭ʑ΍ͬͯ·͢

  3. ࠓ·ͰGoͰ CLI api ࡞੒ʢझຯʣ εΫϨΠϐϯά Bot

  4. ΋͏ͪΐͬͱผͷ ͜ͱ΍ͬͯΈΑ

  5. Go ݴޠʹΑΔELM • ػցֶश
 (ELM = Extreme Learning Machine) •

    ಈػɿݚڀͰઌഐํ͕࢖͍ͬͯΔ
  6. ELMͱ͸ʁ • Extreme Learning Machine • ߴ଎ͳػցֶशΞϧΰϦζϜ
 (DeeplearningͷਅٯͱݴΘΕ͍ͯΔ) • ؆୯ͳ࣮૷

  7. https:/ /tech.d-itlab.co.jp/ml/229/

  8. ͕ͩ…

  9. ೋिؒલ Ұिؒલ ࡾ೔લ ࠓ೔ ML΍Ζʙ &-.

  10. ཁҼ ٖࣅٯߦྻੜ੒ ͦ΋ͦ΋ͷߦྻԋࢉ͕͠ΜͲ͍
 (github.com/gonum/matrix) ͋ͱ΋͏গ͠ʂͩͱࢥͬͯ͠·ͬͨ

  11. ͓ئ͍ ٖࣅٯߦྻΛٻΊΔϥΠϒϥϦ͋ͬͨΒ ڭ͍͑ͯͩ͘͞ʂʂʂ

  12. ͋ͱ΋͏গ͠ʂ

  13. ͳͷͰͳΜͱ͔͢Δ

  14. όΠτͰGo

  15. ͳͥʁ

  16. ࣗ෼ ࣾһ͞Μ XX࡞ͬͯ ͳΒpython͕͍ ͍͔΋Ͱ͢Ͷ JSͰ͓ئ͍ Ұճ࡞ͬͨ͜ͱ͋ ΔGo͕͍͍Ͱ͢ OO࡞ͬͯʂ ૣٸʹ

    ྃղͰ͢ʂ JSͰ͓ئ͍ ྃղͰ͢ʂ ZZ͓ئ͍Ͱ͖ Δʁ ྃղͰ͢ʂ JSͰ͢Ͷʂ
  17. ཧ༝ AWS LambdaΛओʹ࢖༻ ࣗ෼͕ఏࣔ͢Δݴޠ͕ࣾһ͞ΜಡΊ ͳ͍͔Β ͲΜͳ࣌Ͱ΋ΘΓͱແཧ໼ཧjs͕ଟ͍

  18. AWS Lambda&API GatewayͰαʔόʔϨ εΞϓϦέʔγϣϯΛߏங͢Δπʔϧ ˞αʔόʔϨεΞʔΩςΫνϟ
 ϝϯςφϯεΛؾʹ͠ͳ͍ʰඇৗறܕϓϩηεʱΛΠϕϯτΛτϦΨʔ ʹ͢ΔΠϯϑϥετϥΫνϟͩͱࢥͬͯ·͢ https:/ /github.com/serverless

  19. ͱ͍͏͜ͱͰ

  20. ແཧ໼ཧʹ΋൓߅ ͍ͨ͠ʂ

  21. ࢼͨ͠΋ͷ Apex eawsy serverless-go

  22. Apex lambdaϏϧυ&σϓϩΠΛ؆୯ʹͰ͖Δʂ Node.js Go Python Java Rust Clojure ެࣜʹରԠ͍ͯ͠ͳ͍΋ͷ΋ରԠʂ http:/

    /apex.run/
  23. όΠφϦ

  24. eawsy GoΛlambda্Ͱ࣮ߦͰ͖ΔΑ͏ʹ͢Δ جຊతʹ΍ΕΔ͜ͱ͸ApexมΘΒͳ͍ make࣮ߦ https:/ /github.com/eawsy

  25. cgo؀ڥ shared library zip http:/ /tdoc.info/blog/2016/11/02/eawsy_lambda.html GO C֦ு

  26. ͍͍ͱ͜Ζ ApexɿCLI͔ͩΒ࡞੒ɾσϓϩΠɾ࣮ߦ؆୯ eawsyɿlog͕ग़ͤΔʂɾॻ͚ͩ͘ʂɾϑϨʔϜϫʔΫରԠ

  27. ඍົͳͱ͜Ζ Apexɿapigateway͕खಈʁ eawsyɿzipͷޙखಈʁ

  28. eawsy͸ਐԽ͢Δʂ

  29. serverless-go eawasy ͷ֦ு serverless΁౤͛Δʂ

  30. cgo؀ڥ shared library http:/ /tdoc.info/blog/2016/11/02/eawsy_lambda.html ➕

  31. ͍͍ͱ͜Ζ makeͰserverlessͰdeploy·Ͱ ॻ͖ํ΋ී௨ͷgoͬΆ͍ʂ

  32. eawasy Apex python ̍ճ໨ 0.02s 0.11s 0.02s ̎ճ໨ 0.02s 0.12s

    0.02s ̏ճ໨ 0.02s 0.09s 0.02s αΠζ 3.3MB 799.3kB 354bytes
  33. ൺֱ Apexͷ͕Bbild͕ૣ͍ eawsyͷ͕Ϩεϙϯε͸ૣ͍ αΠζ͸΍ͬͺΓຊՈ͕͍͍ײ͡

  34. ͜Ε͔Β ELM͸׬੒Λ໨ࢦ͢ʂʂʂʂ lambdaͰgo͸ҰԠόΠτઌͰใࠂ͠ ͯΈΑ͏͔ͳ