昨天又发邮件问了一下,结论就是最好不用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
>