# Are there any difference between Ruby on Railse and JRuby?

**URL:** <https://www.ruby-forum.com/t/are-there-any-difference-between-ruby-on-railse-and-jruby/143986>\
**Category:** Rails\
**Created:** [July 24, 2008, 12:35pm UTC](https://www.ruby-forum.com/t/are-there-any-difference-between-ruby-on-railse-and-jruby/143986 "2008-07-24T12:35:18Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![jiangchister](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/4491bb/32.png) [@jiangchister](https://www.ruby-forum.com/u/jiangchister)\
**Post date:** [July 24, 2008, 12:35pm UTC](https://www.ruby-forum.com/t/are-there-any-difference-between-ruby-on-railse-and-jruby/143986/1 "2008-07-24T12:35:18Z")

</div>

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](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

---

<div class="post-metadata">

**Author:** ![jiangchister](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/4491bb/32.png) [@jiangchister](https://www.ruby-forum.com/u/jiangchister)\
**Post date:** [July 24, 2008, 12:54pm UTC](https://www.ruby-forum.com/t/are-there-any-difference-between-ruby-on-railse-and-jruby/143986/2 "2008-07-24T12:54:09Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![jiangchister](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/4491bb/32.png) [@jiangchister](https://www.ruby-forum.com/u/jiangchister)\
**Post date:** [July 24, 2008, 1:05pm UTC](https://www.ruby-forum.com/t/are-there-any-difference-between-ruby-on-railse-and-jruby/143986/3 "2008-07-24T13:05:27Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![jiangchister](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/4491bb/32.png) [@jiangchister](https://www.ruby-forum.com/u/jiangchister)\
**Post date:** [July 25, 2008, 4:07am UTC](https://www.ruby-forum.com/t/are-there-any-difference-between-ruby-on-railse-and-jruby/143986/4 "2008-07-25T04:07:12Z")

</div>

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 \<removed\_email\_address@domain.invalid \> 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](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

–~–~---------~–~----~------------~-------~–~----~  
You received this message because you are subscribed to the Google  
Groups “Ruby on Rails: Talk” group.  
To post to this group, send email to removed\_email\_address@domain.invalid  
To unsubscribe from this group, send email to  
removed\_email\_address@domain.invalid  
For more options, visit this group at  
[http://groups.google.com/group/rubyonrails-talk?hl=en](http://groups.google.com/group/rubyonrails-talk?hl=en)  
-~----------~----~----~----~------~----~------~–~—

---

<div class="post-metadata">

**Author:** ![jiangchister](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/4491bb/32.png) [@jiangchister](https://www.ruby-forum.com/u/jiangchister)\
**Post date:** [July 26, 2008, 2:38pm UTC](https://www.ruby-forum.com/t/are-there-any-difference-between-ruby-on-railse-and-jruby/143986/5 "2008-07-26T14:38:10Z")

</div>

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-

---

<div class="post-metadata">

**Author:** ![jiangchister](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/4491bb/32.png) [@jiangchister](https://www.ruby-forum.com/u/jiangchister)\
**Post date:** [July 25, 2008, 10:05pm UTC](https://www.ruby-forum.com/t/are-there-any-difference-between-ruby-on-railse-and-jruby/143986/6 "2008-07-25T22:05:19Z")

</div>

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

> **[De domeinnaam Nedforce.nl is te koop.](http://www.nedforce.nl)**
>
> Deze mooie domeinnaam kan al over een paar minuten van jou zijn. Betalen gaat eenvoudig en vertrouwd via iDEAL. Direct na de betaling ontvang je de verhuiscode per e-mail en kun je aan de slag.
