On Tue, Jun 9, 2009 at 12:44 PM, Tony Arcieri<tony / medioh.com> wrote:
> On Tue, Jun 9, 2009 at 10:06 AM, Charles Oliver Nutter
> <headius / headius.com>wrote:
>
>> Or just use JRuby, and real concurrent/parallel threads will just work
>> out of the box :)
>>
>
> Well, as best they can on Ruby. You guys have done some really great work
> on that, but Ruby's approach to threading is rather poor.

Well, you may have to deal with some peculiarities around
kill/raise/critical and how IO is handled, but in general they really
do "just work". No GIL, no green threading, no futzing around with
processes. Start up N threads and let them go to town, making blocking
calls, doing long-running IO hits, what have you. They'll do it all in
parallel.

I'd certainly love to see Threading and IO improve in Ruby, but they
work pretty darn well right now on JRuby, and you don't have to have N
processes just to do N things at once.

- Charlie