最近没有关注,刚刚发现这个——
NOTICE: sinatra-synchrony is obsolete.
This gem should not be considered for a new application. It is better to use threads with Ruby, rather than EventMachine. It also tends to break when new releases of ruby come out, and EM itself is not maintained very well and has some pretty fundamental problems.
I will not be maintaining this gem anymore. If anyone is interested in maintaining it, feel free to inquire, but I recommend not using EventMachine or sinatra-synchrony anymore.
作者为什么说 It is better to use threads with Ruby ?
#1 楼 @hooopo 莫名,ruby 的 thread 不是 OS thread 么?还有 GIL 的代价,这几个月有技术突破? #6 楼 @ShiningRay celluloid 不熟悉,它里面用的是 thread?
#14 楼 @ShiningRay jruby 问题不大,不过我看到这些讨论的上下文并不是限于 jruby 的,所以才奇怪。 按照你的说法,实际上 celluloid 还是一个 actor 的工作方式,只不过 actor 在 thread 里面调度的?那倒是没问题,不过如果有谁写点 fiber 代码,结果肯定极其意外啊