NetBeans Quick Tip #32 - Faster and More Stable Ruby Support



Here's a quick tip for those who use Ruby support in NetBeans. By default NetBeans uses bundled JRuby. It currently comes in version 0.9.8 and there can be some issues when running more complex applications because JRuby is not 100% compatible with native Ruby yet. Also when you use Rails, new JVM is started each time you use a generate command with JRuby, which is pretty slow. Tor promised this be fixed in the future, however there is a solution now available.

If you want better performance and stability you can switch from default JRuby to native Ruby. Just install Ruby (which you probably have anyway) and set the Ruby binaries inside NetBeans to the Ruby ones instead of JRuby.


The drawback of course is that you're using Ruby so you can't take advantages of some of the features of JRuby (calling Java code from Ruby and vice versa). But if you don't need that, Ruby can be a better option for you - at least at this very moment when JRuby is not in final version yet.
Comments:

Hi Roumen

Would you be able to bullet point what all the advantages of using JRuby when using Netbeans for Ruby/Rails development (i.e. assuming target hosting environment is still Ruby) please? I thought I read debugging support in Netbeans was one area?

Thanks
Greg

Posted by GregH on březen 23, 2007 at 01:26 odp. CET #

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

Roman Strobl

Search

Archives
« duben 2014
PoÚtStČtSoNe
 
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