Forum: JRuby ruby vs jruby

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
141ba9da10720dd8117f738988efd7d3?d=identicon&s=25 K2B K2BSolutions (k2bsolutions)
on 2015-02-26 10:36
Hi friends,

what is advantages in JRuby?

Thanks
K2B Solutions
C2ce1c3fca3afdd935883fcf9e13f036?d=identicon&s=25 Cristiano D. (cristiano_d)
on 2015-02-26 15:49
I think the right answer is that jruby alows us to have diversity and
flexibilty to use java libs and take the high performance of
multhreading and use some resources like java web servers like Tomcat
and the VirtualMachine etc.

There are a project called Ruboto that use jruby is main language to
develop apps for android OS.
http://ruboto.org/
141ba9da10720dd8117f738988efd7d3?d=identicon&s=25 K2B K2BSolutions (k2bsolutions)
on 2015-03-23 08:38
Hi Cristiano D,

Thanks for sharing the information.
what is the difference in ruby and jruby?
Caa2df9372ffa0a9e95b2bab1e8fea34?d=identicon&s=25 Karol Bucek (Guest)
on 2015-03-23 13:43
(Received via mailing list)
We can not answer this question without knowing what you're "really"
looking for.

In general, for Ruby-ists used to MRI the "main" difference is GIL-free
multi-threading (Ruby code can actually run in parallel utilizing your
CPU
cores).

It's similar to Rubinius (also GIL-free) and is probably something that
from time-to-time confuses Ruby developers if they have little
experience
with concurrency.
This is usually not something you need to worry about (as popular gems
are
thread-safe), but you might hit it eventually e.g. with web applications
in
your own user code.

Unlike Rubinius however, JRuby does not support MRI style C-extension
gems,
luckily most popular ones have alternatives or versions using
Java-extension.

The most notable difference you'll notice when trying JRuby out is that
it's slower to start, however with a few tricks (jruby --dev) it's not
that
bad once you're using it for a while.

... all that being said JRuby is just Ruby and you can use it just like
MRI.

Good JLuck, K.

On Mon, Mar 23, 2015 at 8:38 AM, K2B K2BSolutions <lists@ruby-forum.com>
This topic is locked and can not be replied to.