users
[Top] [All Lists]

RE: [cinjug-users] Sharpening the Saw - Groovy

To: <users@xxxxxxxxxx>
Subject: RE: [cinjug-users] Sharpening the Saw - Groovy
From: "Weirich, James" <James.Weirich@xxxxxxx>
Date: Tue, 27 Jul 2004 10:01:00 -0400
Delivered-to: mailing list users@cinjug.org
Mailing-list: contact users-help@cinjug.org; run by ezmlm
Thread-index: AcRz2o/kcrtI3V/eRX2itxPvWl6yogAA3XaQ
Thread-topic: [cinjug-users] Sharpening the Saw - Groovy
> Ruby/JRuby is another good option (Some would say better then python),

> but last I herd  (I could be wrong here, Jim?) JRuby is GNU 
> licensed, so no go for commercial apps.

Two comments:
(1) I think you meant "proprietary" rather than "commercial".
(2) As Jason pointed out, Jruby can be distributed under the LGPL 
    which allows the proprietary portion of your code to be 
    distributed source-less.

But on the topic of Groovy, I've been keeping my eye on it for a while.

It is very Ruby-like.  For example ...

  Groovy:  value = [1,2,3].inject('counting: ') { str, item | str + item
}
  Ruby:    value = [1,2,3].inject('counting: ') { |str, item| str +
item.to_s }

The big advantage to Groovy in an all-Java environment is that Groovy is

designed to use the Java libraries, where both (J)Ruby and (J|P)ython
come 
with their own system libraries. 

There will be a session on Groovy by Christopher Judd at the Southern
Ohio 
Software Symposium (e.g. No Fluff, Just Stuff) this year (Aug 6-8).

I'm thinking of doing a talk on Groovy for CinJUG.  Any interest?

-- Jim Weirich

<Prev in Thread] Current Thread [Next in Thread>