Scheme On The Browser

D32564792887e3fb5955021f9804c0a6?s=47 Edward Fox
December 14, 2017

Scheme On The Browser

2017/12/14
Nihonbashi.js #3 100star以下限定!細かすぎて伝わらない自作ライブラリ選手権
https://nihonbashi-js.connpass.com/event/72065/

D32564792887e3fb5955021f9804c0a6?s=128

Edward Fox

December 14, 2017
Tweet

Transcript

  1. Scheme On The Browser EDWARD FOX 2017/12/14 @Nihonbashi.js #3 100starҎԼݶఆʂࡉ͔͗ͯ͢఻ΘΒͳ͍ࣗ࡞ϥΠϒϥϦબखݖ

  2. @edwardkenfox Edward Fox ɾΤϯδχΞ@Reproגࣜձࣾ ɾ୅ʑ໦ͷํ͔Βདྷ·ͨ͠ ɾRuby, JavaScript, AWS ɾϒϥ΢βٕज़શൠ, PWA,

    Vue.js
  3. ಥવͰ͕͢Έͳ͞Μ

  4. REPLͬͯීஈ ࢖͍·͢ΑͶʁ

  5. REPL ɾRead-Eval-Print Loop ͷུ ɾCLIͰىಈ͢Δݴޠॲཧܥ͕Ұൠత ɾJSͳΒNode.jsɺRubyͳΒirb΍pryɺ Pythonͱ͔PHPͱ͔Haskellͱ͔…

  6. WEBϖʔδ࡞ͬͯΔͱ͖ ;ͱը໘্ʹREPL͕ཉ͍͠ͱ ࢥͬͨ͜ͱ͋Γ·ͤΜ͔ʁ

  7. ͦΕ΋JavaScriptͰ͸ͳ͘ ผͷݴޠͰʂ

  8. ʢͪͳΈʹ๻͸͋Μ·Γͳ͍Ͱ͢ʣ

  9. Nihonbashi.jsͰൃද͢ΔωλͷͨΊʹ ͦ͏ࢥ͏ਓͷͨΊʹ࡞Γ·ͨ͠

  10. scheme-on-the-browser

  11. ʲ஫ҙࣄ߲ʳ

  12. ※໎ϥΠϒϥϦ࿮Ͱ͢

  13. େتརͷճ౴ͩͱࢥͬͯ ฉ͍͍ͯͩ͘͞ ͓΋Ζ͍ͱࢥͬͯ΋Β͑ͨΒ ࠲෍ஂͷϊϦͰ ͍ͩ͘͞

  14. scheme-on-the-browser ɾLispͷํݴͰ͋ΔSchemeͷॲཧܥΛ WebAssemblyͰίϯύΠϧͨ͠΋ͷ = ϒϥ΢βͰಈ͘SchemeͷREPL

  15. ʢຊ౰͸rubyΛϒϥ΢βಈ͔͔ͨͬͨ͠ ͚Ͳ࠳ંͨ͜͠ͱ͸ൿີʣ

  16. ͱΓ͋͑ͣσϞ https://edwardkenfox.com/playground/scheme-on-the-browser/

  17. scheme-on-the-browser ɾC++Ͱॻ͔ΕͨSchemeͷॲཧܥΛEmscriptenͰ wasmʹίϯύΠϧ ɾॲཧܥࣗମ͸Schemeݴޠͷαϒηοτ ɾindex.html -> index.js -> index.wasm ͱϩʔυ࣮͠ߦ͞ΕΔ

  18. ɾ<script>ͱͯ͠ಡΈࠐΉ͚ͩͰ WEBϖʔδͰREPL͕࢖͑Δ ɾwasm͔ͩΒ࣮ߦ͕଎͍

  19. ɾtypo === ࢮ ɾʢʣͷ਺ؒҧ͑Δͱऴྃ ɾpromptͳͷͰଞͷॲཧΛϒϩοΫ͢Δ ɾJS͔Β৮Εͳ͍

  20. ͋Γ͕ͱ͏͍͟͝·ͨ͠