tribaloid.com is coming soon This domain is managed at
by Alexey Kachayev, 2012 About me Position: CTO at Kitapps Inc. Production experience: Python, Java, JS, Go, Scala, Clojure, Erlang Looked at: Haskell, Lisp, Scheme Goals Short functional paradigm presentation Dispel popular myths about FP Characterize Python & FP relations Why should I care? How can I make my code better? More How, less Why About functional Imperative programming (С/C++, Java) De
最近、non-bloking I/O+強調スレッド+prefork(multiprocessing)なサーバフレームワーク的なものを 作ろうかと試行錯誤してる。 (aioはその次) でこいつを実現する上で重要なgreenletの解説があんましないので書いてみる。 greenletとは stackless pythonのようにマイクロスレッド(この言い方好きじゃないけど)が使えるようになるライブラリ。 (実際にはstackコピーと復元を行って継続をサポートする。それを応用してスレッドを実現) こいつはモジュールとして提供されるのでstacklessのように処理系を丸ごと入れ替えることなく使用できる。 yieldを使ったマイクロスレッドとは異なりどこからでもスイッチ可能。 (ネストの影響を受けない) ネイティブスレッドではないのでスイッチなどの処理は自前で行う必要がある。 (協調スレッド) メ
Prelude Generators and coroutines are a some of the most powerful and often misunderstood structures in modern Python. Even though both have been around since Python 2.5, there is very little good information on their advanced usage. Comprehensions Lets do a quick course in comprehensions, since these will be constantly in the examples for iterators, generators and coroutines. List Comprehensions
リリース、障害情報などのサービスのお知らせ
最新の人気エントリーの配信
処理を実行中です
j次のブックマーク
k前のブックマーク
lあとで読む
eコメント一覧を開く
oページを開く