タグ

javascriptとGeneratorに関するgologo13のブックマーク (2)

  • ジェネレータの解説と非同期への適用 - Block Rockin’ Codes

    update 2014-01-16 ご指摘頂いたので修正しました。ありがとうございます! @Jxck_ 動画すごくわかりやすかった!一個、重箱の隅っこなんだけど、convert関数のapplyしてるところ、fn.apply(fn, args) になってるけど fn.apply(this, args) が正しい気がしました!— Kazuhito Hokamura (@hokaccha) 2014, 1月 13 https://gist.github.com/Jxck/8380852 は修正済みです。動画の取り直しは勘弁して下さい(汗 - fn.apply(fn, args); + fn.apply(this, args); intro あけましておめでとうございます。 今年からはてなブログへ移行しました。 去年末くらいから流行っている Express の後継 Koa では JS の新機能ジェ

    ジェネレータの解説と非同期への適用 - Block Rockin’ Codes
    gologo13
    gologo13 2014/11/09
    generatorについてわかりやすく解説。coの内部実装がどうなっているか理解できた。
  • Regenerator

    Several months have passed since support for generator functions and the yield keyword arrived in Node.js v0.11.2. This news was greeted with great excitement, because generator syntax provides a much cleaner alternative to using callbacks when writing asynchronous server-side code. One of the biggest benefits of using JavaScript on the server is that you can (in theory at least) run the very same

    Regenerator
    gologo13
    gologo13 2014/11/08
    isomorphicなJSコードを実現するため、ES6で利用可能なgeneratorを使ったコードをES5で利用可能にする技術
  • 1