• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Groovy - another OO script

 
Ranch Hand
Posts: 502
jQuery Spring Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Ranch Hand
Posts: 286
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
author
Posts: 43
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Ranch Hand
Posts: 672
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
jQuery Spring Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thanks for your reply.

Is Groovy finally converted into Java Byte code and run in JVM?
 
Ranch Hand
Posts: 33
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Yes Groovy is compiled to bytecode.
 
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
jQuery Spring Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thanks Scott Hickey.
reply
    Bookmark Topic Watch Topic
  • New Topic