タグ

2014年9月14日のブックマーク (5件)

  • Node.js — V8 Memory Corruption and Stack Overflow (fixed in Node v0.8.28 and v0.10.30)

    V8 Memory Corruption and Stack Overflow (fixed in Node v0.8.28 and v0.10.30) A memory corruption vulnerability, which results in a denial-of-service, was identified in the versions of V8 that ship with Node.js 0.8 and 0.10. In certain circumstances, a particularly deep recursive workload that may trigger a GC and receive an interrupt may overflow the stack and result in a segmentation fault. For i

    Node.js — V8 Memory Corruption and Stack Overflow (fixed in Node v0.8.28 and v0.10.30)
  • 「for やめろ」またはイベントループと nextTick() - Block Rockin’ Codes

    ものすごく遅レスですが、LLDiver で @esehara さんの LT であった話。 forやめろ、あるいは「繰り返し」という呪縛から逃れるために 簡単に言うと、 1~10 までを出力する方法を複数考えるというもの。 for, while, 再帰, goto etc.. と出て、途中で終わっちゃったので結論はよくわかりませんでしたが、 Node ではどれも使わずにできるな、と思ったのでちょっと例を出してみます。 ちなみに、タイトルでネタバレしている通りイベントループの話です。 そしてよくある「イベントループとは何か」「なぜ止めてはいけないのか」「process.nextTick() とは何か」「setImmediate() と何が違うのか」 などを解説する良い例だったので、書いてるうちに実はそっちがメインの解説となりました。 サンプルの実行結果は Node v0.11.13 です。(書

    「for やめろ」またはイベントループと nextTick() - Block Rockin’ Codes
  • デバッグを必修科目にするべき理由 | POSTD

    更新版: まずはここで私がコンソール ロギングでのデバッグを非難したり、無視しようとしているのではないということをはっきりさせておきたいと思います。コンソール ロギングは組み込み型プログラムやIDEがソースコードをスタックフレームに正しくマッピングできない場合、ブレークポイントが進捗を妨げてしまう場合等、様々な場合に使われます。要は他に適した方法がある時にコンソール ロギングを使うことを悪いと思っているのです。 プログラミングでは新しい機能を加える代わりに、 コードのメンテナンス と問題の解決にそのほとんどの時間を費やされるということが常識になっています。また、デバッグを通じて問題を発見できてもそのバグの解決方法がわからないということが多いのです。また ハイゼンバグやネッシーバグ のような再現できないバグに遭遇することもありますが、通常はどこを探すべきかが全くわからない状態で、大規模なコー

    デバッグを必修科目にするべき理由 | POSTD
    ama-ch
    ama-ch 2014/09/14
  • OSCON - React Architecture

    React Architecture CHRISTOPHER “VJEUX” CHEDEAU FACEBOOK OPEN SOURCE String Concatenation — 2004 $str = ''; foreach ($talks as $talk) { $str += '' . $talk->name . ''; } $str += ''; Way back in time, in the early days of Facebook when Mark Zuckerberg was still in his dorm room, the way you would build websites using PHP is with string concatenation. It turns out that it’s a very good way to build we

    OSCON - React Architecture
  • Cron As A Service

    Simple Dashboard Our easy to use web console makes it simple to set up and monitor your cron jobs where ever you are. On your phone or on your laptop, you are in control. Build cron into your app Our REST api makes it so easy to build scheduled tasks into your application. Want to schedule Stripe billing for a new customer? Call the API to set up a new monthly job.

    Cron As A Service