JRuby Great Addition To Java Development
An anonymous reader writes "JRuby combines the object-oriented strength of Smalltalk, the expressiveness of Perl, and the flexibility of the Java class libraries into a single, efficient rapid development framework for the Java platform. This article introduces JRuby, a sophisticated addition to your Java development toolbox."
No, it's a tree-based interpreter like the standard Ruby one AFAIK.
:/
I'm still wondering why we're seeing a story on this so long after it's release, when the likes of Rails, one of the more exciting Ruby libraries in recent memory, gets completely ignored.
Of course, nobody here would really be interested in a powerful, easy way to develop web applications with practically zero configuration. It's just not *fun* without 800k of XML just to configure your ORM library
For a larger view of the language development being done similar to this, take a look at List of Java virtual machine languages.
I should think that most people will find at least something that appeals to them.
The JRuby article is part of the alt.lang.jre series, with announced articles about "Rhino, Nice, and NetRexx, and many other exciting alternate languages for the JRE". It looks like the articles are coming in this order, one around the beginning of each month.
Watch great movie opening scenes!
...just skip Java and go with Ruby.
I needed a small app to analyze SQL query usage, and Ruby worked great. As long as you're conscientious about writing unit tests, you won't miss Java's static typing at all.
The Army reading list
Groovy is, IMO, a near-clone of Ruby designed from the ground up to integrate with Java, and would probably be a better choice than JRuby. I think the Groovy documentation isn't quite there yet, tugh.
Are you adequate?
When you have zero clue how to write the language, I suggest you shut up.
The equivalent Ruby is (sorry about the lack of indentation - Slashdot seems to eat it):
That's exactly one require-line and two blank lines more than your non-idiomatically-indented Java with missing newlines. It is one line less than what I'd consider normal amount of spacing - a newline after the import statement, a newline between the methods, and the {}-block for main actually spaced out.
Eivind.
Doubting the existence of evolution is like doubting the existence of China: It just shows that you're uninformed.