Fibur !!
這是今早凌晨一堆 Ruby 界大大在推上很宅的笑話...
http://twitter.com/#!/tenderlove/status/148828305322295296
@tenderlove 發佈了一個新 gem 'fibur',強調可以做以下 ooxx 事...
http://gist.github.com/1498215
Fibur
Fibur is a library that allows concurrency during Ruby I/O operations without needing to make use of callback systems. Traditionally in Ruby, to achieve concurrency during blocking I/O operations, programmers would make use of Fibers and callbacks. Fibur eliminates the need for wrapping your I/O calls with Fibers and a callback. It allows you to write your blocking I/O calls the way you normally would, and still have concurrent execution during those I/O calls.
@wycats 也湊了一腳,在 hackernews 上插一腳為 fibur 開一個討論串
http://news.ycombinator.com/item?id=3370450
還有人覺得 fibur 這個 gem 沒有寫測試,他不安心,於是補了一個測試 pull request
http://github.com/tenderlove/fibur/pull/2
一整個快笑死....
其實就是 Thread 而已...
好惡搞 XDDD
Fibur = Thread
行为艺术啊.... :)
fibur / lib / fibur.rb
> Fibur = Thread
坑跌!