LOTD #9: Advantages of JRuby over MRI


Andreas blogged about why he likes JRuby even though he dislikes Java.

JRuby is "It's just Ruby" with more than 50,000 tests to ensure MRI compliance. The blog highlights that there is no need to know Java, at all, to run JRuby. Here are some advantages that are described in the blog:
  1. JVM runtime optimization
  2. Efficient memory usage
  3. Native threads to spread work on multiple cores
  4. Great garbage collection to make memory usage more efficient
  5. JIT and AOT compilation
  6. Inegration with Java libraries
  7. Running Rails applications on existing Java application servers
  8. Documentation and specs
Read more details here.

Do you know Rails applications can be deployed (without any packaging) on GlassFish v3 ? Check out more details here.

Technorati: lotd jruby ruby rubyonrails glassfish
Comments:

I am also a java enthusiast and is overwhelmed by the power and flexibility it delivers to programmers.
But I am now doing an encryption program and is using java as my platform. I want to have a very fast file reading and writing mechanism. Truly speaking all the methods for file operations in java are very slow( compared to cpp or ruby).
Do you think that the jruby could be a solution for my problem?.

Posted by Sandeep G.R on February 12, 2009 at 08:55 PM PST #

Sandeep, JRuby allows to run Ruby scripts on a Java Virtual Machine. With JRuby, Ruby scripts can be invoked from Java and vice versa. I'm not very familiar with Ruby programming language but if Ruby language has better file reading/writing capabilities, then you can consider using those libraries.

Posted by Arun Gupta on March 02, 2009 at 03:03 AM PST #

I dont believe that you make more than 50k tests for it.

Posted by eskort on March 08, 2009 at 07:43 AM PDT #

First of all , thank you so much for taking the time to provide me a reply for my last post.
Now I have one more request.
I have written an Encrypter Program in Java. Though it was naive in the beginning,it has evolved much over time. Now I have uploaded the ver 3.1 of my program on sourceforge.net
Though it has crossed 500 downloads, I have not received any feedback about my program.
I am person who has very limited net access, so don't know much about algorithm analysts. I would like to review my algorithm(s) by some one who know what it does.So kindly take a look at it. I am planning for a re-structuring of the program and I don't want errors and mistakes to be repeated in the new program.
I consider you as a person with the capability to review it. Please look into it sir.
The download link for the program is:
http://sourceforge.net/project/platformdownload.php?group_id=223465

Posted by Sandeep G.R on March 20, 2009 at 10:01 PM PDT #

Sandeep, please post your question to one of the forums at: http://forums.sun.com/category.jspa?categoryID=32

Posted by Arun Gupta on March 27, 2009 at 04:33 AM PDT #

Post a Comment:
Comments are closed for this entry.
About

profile image
Arun Gupta is a technology enthusiast, a passionate runner, author, and a community guy who works for Oracle Corp.


Java EE 7 Samples

Stay Connected

Search

Archives
« April 2014
SunMonTueWedThuFriSat
  
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
   
       
Today