The Artima Developer Community
Sponsored Link

Ruby Buzz Forum
It ain't easy being green

0 replies on 1 page.

Welcome Guest
  Sign In

Go back to the topic listing  Back to Topic List Click to reply to this topic  Reply to this Topic Click to search messages in this forum  Search Forum Click for a threaded view of the topic  Threaded View   
Previous Topic   Next Topic
Flat View: This topic has 0 replies on 1 page
Daniel Berger

Posts: 1383
Nickname: djberg96
Registered: Sep, 2004

Daniel Berger is a Ruby Programmer who also dabbles in C and Perl
It ain't easy being green Posted: Feb 13, 2006 12:53 PM
Reply to this message Reply

This post originated from an RSS feed registered with Ruby Buzz by Daniel Berger.
Original Post: It ain't easy being green
Feed Title: Testing 1,2,3...
Feed URL: http://djberg96.livejournal.com/data/rss
Feed Description: A blog on Ruby and other stuff.
Latest Ruby Buzz Posts
Latest Ruby Buzz Posts by Daniel Berger
Latest Posts From Testing 1,2,3...

Advertisement
One of the "knocks" against Ruby is that its thread model is somewhat feeble, i.e. it uses "green" (select based) threads, but does not support "native" threads. That means no SMP support.

But is native thread support all its cracked up to be? James Robertson has been following the likes of Tim Bray for some interesting discussion on the subject, including mentions of JRuby. Here are some links of interest, which in turn include other useful links and comments:

http://www.cincomsmalltalk.com/blog/blogView?showComments=true&entry=3303013147
http://www.tbray.org/ongoing/When/200x/2005/08/27/Ruby
http://www.cincomsmalltalk.com/blog/blogView?showComments=true&entry=3317024880
http://pezra.barelyenough.org/blog/2006/02/dynamic-languages-and-the-jvm/

The gist of the overall conversation seems to be that native threads aren't all they're cracked up to be because they're more expensive and most people aren't bright enough to use them anyway. Better to scale out, using multiple processes and interprocess communication, than scale up.

That being said, I'd still like native thread support in Ruby, especially on Windows, where the select based model has issues.

Read: It ain't easy being green

Topic: Fun with DenyHosts Previous Topic   Next Topic Topic: Frost-safe DSL'ing with instance_exec

Sponsored Links



Google
  Web Artima.com   

Copyright © 1996-2019 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use