File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Groovy and the fly likes Groovy, a new scripting language, yeeeha, so what ? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Languages » Groovy
Bookmark "Groovy, a new scripting language, yeeeha, so what ?" Watch "Groovy, a new scripting language, yeeeha, so what ?" New topic

Groovy, a new scripting language, yeeeha, so what ?

Hussein Baghdadi
clojure forum advocate

Joined: Nov 08, 2003
Posts: 3476

And finally we got an official scripting language for Java platform, so what ?
Java platform already has a couple of languages, Jython ,JRuby and JavaScript -for example- and Java developers
show no intrest in using languages over Java.
And if Groovy is considered the official scripting language for Java platform, why Sun decided to invest in JRuby (As some weblogs in Oreilly mentioned)
So, do you think Groovy is just another (not used) scripting language for Java platform ?
Or it will be the starting point for a new age ?
Or it could be used as a standalone language (without Java) if Grails was really cool ?
Clifton Craig
Ranch Hand

Joined: May 26, 2006
Posts: 103
Yeah you're right. Why get excited over yet another scripting language for the JVM. There's Jython, JRuby, RhinoScript, Judo, Dojo, Kung-fu, and whatever. BUT!!!

There's always a "but" and sometimes it's a big one. Can you compile your JRuby down to byte code? Does your Jython plug seamlessly into Java's API? Does (insert scripting language of choice) add it's own API baggage while giving you dynamic constructs? That's where the Groovy language comes in. You compile your project right along with the Java code that compliments it drop a 1.5MB jar in your classpath and you're set to go. Everything you do in Groovy sits directly on top of the standard Java API while you get all of the goodies from Languages like Ruby, and Lisp. Closures, curry's, functional programming, Meta programming, constructs for creating DSLs and all are built in. Groovy's main strength is two-fold. It's similarity to Java lowers the barrier to entry. It's Meta Object protocol allows you to extend the language to your liking and even invent a language of your own within the language.

As far as starting of a new age, the new Age began a long time ago when people much smarter than us invented concepts like DSLs Meta programming, functional programming and the like. Groovy brings serves it all on a Java platter so that you can jump right in without buying another text book first. If all of this sounds like a bad infomercial (and it does) then just head on over to and look quickly through the quick start documentation.

Holla at me...<br /><a href="" target="_blank" rel="nofollow"></a>
Tug Wilson
Ranch Hand

Joined: Dec 12, 2006
Posts: 33
Firstly Groovy is not the offical scripting language for the JVM. We have simply used the JSR process as a standardisation mechanism. This is a process open to others and has been used for Beanshell.

We are seeing quite a lot of interest from Java and non Java programmers to use Groovy on the JVM. People have been writing real life applications in Groovy for the last two years and many of them are live.

Of course many people see no advantage to using a language like Groovy (or Jython, Jruby,, etc.) and that's fine.

However for Java programmers who find dynamic languages attractive (i.e. they find them lots more productive) we feel that Groovy is the best solution available today.
Ulf Dittmer

Joined: Mar 22, 2005
Posts: 41186
I don't understand where the statement "Java developers show no intrest in using languages over Java." is coming from. Clearly quite a few Java developers are using languages other than Java in conjunction with the Java VM. This page should be sufficient proof. What's more, right now -with the release of Java 6- everybody seems to be talking about the scripting capabilities added via JSR-223, but BSF has been doing most of that for years, so it's not exactly new stuff. New is that it's part of the JRE itself.
[ December 12, 2006: Message edited by: Ulf Dittmer ]

Ping & DNS - my free Android networking tools app
Hussein Baghdadi
clojure forum advocate

Joined: Nov 08, 2003
Posts: 3476

I don't understand where the statement "Java developers show no intrest in using languages over Java." is coming from.

Well, I have been keep tracking , ,IBM dW , OTN and JR scripting languages for a long time and I can hardly see any interest in OOSL.
(Except for Practical Groovy column and alt.lang.jre serie at dW and an articles at about Groovy and XML)
Joe Ess

Joined: Oct 29, 2001
Posts: 8843

Java developers show no intrest in using languages over Java.

I've had the opposite experience. Every place I go seems to use Python/Jython for something. One company I contracted with uses The Grinder to test their Java applications. Another company I contracted with had a support infrastructure built on Zope which was simple enough to maintain they had plenty of time to devote to their main product, a massive Java publish/subscribe network. Right now I'm working with Weblogic which has a Python-scriptable tool (WLST) that comes in handy for automating tasks and managing servers. Then there's always some one-off task I have to code up and writing a script is nearly always faster and easier than writing a Java app to do the same thing.
If Groovy is half as useful as I've found Python to be, I'm sure many knowledgable Java programmers will add it to their toolkit.

"blabbing like a narcissistic fool with a superiority complex" ~ N.A.
[How To Ask Questions On JavaRanch]
Dierk König
Ranch Hand

Joined: Nov 01, 2006
Posts: 43
I'm very glad to hear about so many usages for scripting in the Java world. This aligns with my experiences.

I have seen lots of usages of shell scripting, Perl, Python, Jython, Ruby, and the like in and around Java projects. The unique proposition of Groovy is to allow doing all this useful work in a way that is comparable in simplicity and conciseness while working tightly integrated in the Java platform. With Groovy you stand on the shoulder of giants - not on their feet.

Groovy makes it much easier for the average Java programmer to enter the world of dynamic (scripting) languages. He can leverage his Java knowledge preserving his investment in it.

keep groovin'
Guy Allard
Ranch Hand

Joined: Nov 24, 2000
Posts: 776
Originally posted by John Todd:

... I can hardly see any interest in OOSL.

Ruby? Python? .... OREXX?

It is sorta covered in the JavaRanch Style Guide.
subject: Groovy, a new scripting language, yeeeha, so what ?
Similar Threads
dear oracle
Java v/s PHP
Unsure if this is worthwhile
Advantages of Groovy over other scripting languages ?