How NokoGiri and JRuby saved my week
http://rosenfeld.herokuapp.com/en/articles/ruby-rails/2012-03-04-how-nokogiri-and-jruby-saved-my-week
I'm not at all surprised that he found using NokoGiri and JRuby much easier for his particular problem -- but was particularly
interested in how simple the code was in JRuby for using multiple threads:
https://gist.github.com/2003503
MRI, the C version of Ruby still uses a GIL (Global Interpreter Lock) which limits how effective using threads can be.
The threads in JRuby are based on Java threads and as long as the code can be run in parallel then it's easy to get all the
cores on your computer working on the problem.
--
You received this message because you are subscribed to the Google Groups "Educoder" group.
To post to this group, send email to educ...@googlegroups.com.
To unsubscribe from this group, send email to educoder+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/educoder?hl=en.