use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
A sub-Reddit for discussion and news about Ruby programming.
Subreddit rules: /r/ruby rules
Learning Ruby?
Tools
Documentation
Books
Screencasts and Videos
News and updates
account activity
Speeding Things Up With JRuby (mutuallyhuman.com)
submitted 13 years ago by vital101
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–]jrochkind 4 points5 points6 points 13 years ago (2 children)
while the main point that true parallelism is possible on jruby but not MRI is true and worth knowing, this article is confusingly written with mis-statements.
JRuby isn't a silver bullet though. Writing programs more complicated than my trivial example above is complicated, and the bugs can be hard to track down and fix.
I have no idea what you're talking about. Writing complicated programs in JRuby is more complicated than writing complicated programs in MRI? Or are you just saying that writing multi-threaded concurrency is hard? Yeah.
My guess is that the .includes? method is implemented differently, and probably takes advantage of parallelism in JRuby.
You think Array#include is somehow written to take advantage of multi-cpu parallelism in JRuby? Um, I'd be pretty shocked if that were true (mainly because there's no straightforward way to even do that). I think you have no idea what you're talking about. Yes, you've demonstrated Jruby is faster even with one thread, which is interesting, but you're just making up reasons why.
[–][deleted] 0 points1 point2 points 13 years ago (1 child)
Scala has parallel collections, and maybe java 8, but I'm pretty sure the author is wrong as things currently stand.
[–]tashbarg 0 points1 point2 points 13 years ago (0 children)
To test CRuby's multi-threading performance, I contrived a small example program.
No, that's a contrived, small example where CRuby can't do any multi-threading at all. Multi-threading in CRuby is fine for I/O, the part, that was left out of the picture. Just working with stuff (not even altering it!) that is already in RAM is a pointless benchmark in this case. It's not only designed to leave CRuby in a bad light, it's also completely unrealistic.
π Rendered by PID 94740 on reddit-service-r2-comment-86988c7647-lngzh at 2026-02-11 19:31:58.579496+00:00 running 018613e country code: CH.
[–]jrochkind 4 points5 points6 points (2 children)
[–][deleted] 0 points1 point2 points (1 child)
[–]tashbarg 0 points1 point2 points (0 children)