File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Groovy - another OO script

 
Prabhu Venkatachalam
Ranch Hand
Posts: 502
Java jQuery Spring
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
why we need one more OO script? what is advantage of Groovy over Python,RUBY etc...?

In what kind project we can use Groovy?


Thanks.
 
Arno Reper
Ranch Hand
Posts: 286
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Maybe one of is advantage is that you can use it right into your java code...but so you can with JRuby, Jython or JHaskell, maybe its easier?
Does anyone tests the java Mustang (6.0) release? I wouldd like to install it but the examens are coming and I want to be sure its not to risky

arno
 
Dierk K├Ânig
author
Ranch Hand
Posts: 43
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The main premise of Groovy is that it is both
- feature rich
- and Java friendly
which makes it unique in the landscape or OO languages for the JVM.

ciao
Dierk
 
Bruce Jin
Ranch Hand
Posts: 672
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The main premise of Groovy is that it is both
- feature rich


What are main features that Groovy has and Java does not?

Thanks!
[ December 12, 2006: Message edited by: Bruce Jin ]
 
Prabhu Venkatachalam
Ranch Hand
Posts: 502
Java jQuery Spring
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks for your reply.

Is Groovy finally converted into Java Byte code and run in JVM?
 
Tug Wilson
Ranch Hand
Posts: 33
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Yes Groovy is compiled to bytecode.
 
Scott Hickey
Greenhorn
Posts: 5
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Speaking from my experience of using Groovy as part of a large Java J2EE project, there were several factors that made Groovy stand out.

The component being targeted by a language other than Java involved alot of complicated math and data set manipulation. Like Ruby, Groovy has really nice language support for manipulating collections of object. Unlike many of the other languages including Ruby,Python and Rexx, Groovy naturally understands Java classes and can be precompiled into Java byte code so deployment is a piece of cake. To the corporate infrastructure folks, it's just another Java jar.

One area that Groovy stood out from ALL of the other languages we looked at (besides Rexx) was the native BigDecimal support. Since accuracy is important in any business application that deals with money, this was a big plus. Using a float or double would not be appropriate for any of the decimal attributes we use. All of the other languages we looked required explicit calls to create BigDecimal objects.

Groovy has many other great features but these were the ones that were significant given the business domain and the need to integrate into a Java environment.
 
Prabhu Venkatachalam
Ranch Hand
Posts: 502
Java jQuery Spring
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks Scott Hickey.
 
Consider Paul's rocket mass heater.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic