jruby与ruby的不同

jruby与ruby的不同

在网上找了一段话,看了好久才算看明白,一句话,不影响大部分用户,大家可以放心使用了,哈!

以下是引用的网址:
http://www.netbeans.org/communit ... charlie-nutter.html


The differences between php?name=Ruby" onclick="tagshow(event)" class="t_tag">Ruby and Jphp?name=Ruby" onclick="tagshow(event)" class="t_tag">Ruby are largely the differences between writing php?name=Java" onclick="tagshow(event)" class="t_tag">Java code and writing native C code: php?name=Ruby" onclick="tagshow(event)" class="t_tag">Ruby exposes many platform-specific or low-level operations we can't support directly in Jphp?name=Ruby" onclick="tagshow(event)" class="t_tag">Ruby. However the lack of those issues hasn't stopped us from running Rails, arguably the largest and most complicated framework yet written in php?name=Ruby" onclick="tagshow(event)" class="t_tag">Ruby. So the short answer is that the differences don't impact most users.
昨天又发邮件问了一下,结论就是最好不用jruby,以下是邮件内容:

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.

On Jul 24, 8:53爌m, jney <jeansebastien....@gmail.com> wrote:
> 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.
>

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