19e786a2a74377ff6e052d87fd8d1fa8

Fibur !!

2011-12-20 03:05:52 +0800xditeGem 節點 中發起
最後由 blackanger2011-12-22 16:02:15 +0800回應 , 290次閱讀

這是今早凌晨一堆 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 而已...

截至 2011-12-22 16:02:15 +0800,共收到 3 條回應
C814acfd2c0897d2fc20de6800b76293
hSATAC 1樓, 於2011-12-20 10:08:05 +0800回應

好惡搞 XDDD

Fibur = Thread

85a64fb3375926c0be5c75eccf40e853
poshboytl 2樓, 於2011-12-20 11:18:50 +0800回應

行为艺术啊.... :)

Ea44bd120ed7cf301d561bcc3e7a6c96
blackanger 3樓, 於2011-12-22 16:02:15 +0800回應

fibur / lib / fibur.rb

> Fibur = Thread

坑跌!

需要 登入 後方可回應,如果你還沒有帳號按這裡 註冊