Are there any difference between Ruby on Railse and JRuby?

12 views
Skip to first unread message

jiangchister

unread,
Jul 24, 2008, 4:14:03 AM7/24/08
to rubyonra...@googlegroups.com
I have just started ROR using netbeans ... they talk about RUBY is JRuby ... ref. http://www.netbeans.org/kb/61/ruby/rapid-ruby-weblog.html

Is this differs from normal RUBY ON RAILS development? I am new to this..i am confused on this
 
2008-07-24

jiangchister

jney

unread,
Jul 24, 2008, 6:53:37 AM7/24/08
to Ruby on Rails: Talk
yes, there is some differences between ruby (native c interpreter) and
jruby (java).
some gems are usable by the one and not by the others.
anyway you can change ruby platform in netbeans choosing /usr/local/
bin/ruby in example if you really prefer the c implementation of ruby.

On Jul 24, 10:14 am, jiangchister <jiangchis...@gmail.com> wrote:
> I have just started ROR using netbeans ... they talk about RUBY is JRuby ... ref.http://www.netbeans.org/kb/61/ruby/rapid-ruby-weblog.html
>
> Is this differs from normal RUBY ON RAILS development? I am new to this..i am confused on this
>
> 2008-07-24
>
> jiangchister

Scott Arbeitman

unread,
Jul 24, 2008, 7:05:00 AM7/24/08
to Ruby on Rails: Talk
Sure, there are some differences. For a beginner, none of the
following should matter AT ALL.

Still, key differences:
* as mentioned, there are some gem compatibility issues
* speed: JRuby has one more layer of abstraction over Ruby, so is
likely to be slower
* deployment: JRuby offers deployment on Java application servers as
WAR files. (If that doesn't mean anything to you, move on.)
* database compatibility: JRuby offers dabase connection via a JDBC
drivers which, I suspect, are easier to find than native Ruby
varieties.
* library support: JRuby allows access to allow the native Java API
and additional Java libraries. (Netbeans offers good support for JRuby
with Java libraries)

The bottom line is that for Rails, there is essentially no difference.
The language is same (both Ruby) and the framework is the same (both
Rails). If your IDE is using JRuby and things are working, leave it
for now.

jiangchister

unread,
Jul 24, 2008, 8:24:54 PM7/24/08
to rubyonra...@googlegroups.com
thanks a lot!
 
 
2008-07-25

jiangchister

发件人: jney
发送时间: 2008-07-24  18:53:54
收件人: Ruby on Rails: Talk
抄送:
主题: [Rails] Re: Are there any difference between Ruby on Railse andJRuby?
yes, there is some differences between ruby (native c interpreter) and
jruby (java).
some gems are usable by the one and not by the others.
anyway you can change ruby platform in netbeans choosing /usr/local/
bin/ruby in example if you really prefer the c implementation of ruby.
 
On Jul 24, 10:14燼m, jiangchister  <jiangchis...@gmail.com > wrote:

Roderick van Domburg

unread,
Jul 25, 2008, 4:05:19 PM7/25/08
to rubyonra...@googlegroups.com
Scott Arbeitman wrote:
> * speed: JRuby has one more layer of abstraction over Ruby, so is
> likely to be slower

That's not always the case and certainly not the intention of the JRuby
developers. In fact when I spoke with Charles Nutter little over a month
ago he set out to make JRuby the fastest implementation of Ruby out
there. And that's entirely possible too, considering the many man-years
that have gone into the JVM.

What is true is that it shouldn't matter to a beginner.

--
Roderick van Domburg
http://www.nedforce.nl

--
Posted via http://www.ruby-forum.com/.

Scott Arbeitman

unread,
Jul 26, 2008, 8:37:22 AM7/26/08
to Ruby on Rails: Talk
Good point, Roderick. I must admit that I certainly don't have any
data to back that up.

On Jul 26, 6:05 am, Roderick van Domburg <rails-mailing-l...@andreas-
Reply all
Reply to author
Forward
0 new messages