Jython vs Groovy

Jython has been around a long time and is based on a mature language, Python. However, its development seems to have stalled in recent years. Groovy is a relatively new language and is still in its initial stages.

Jython has two main advantages. First, the language is Python and has all of its strengths, including clean and consistent syntax, introspection, dynamic creation of classes, properties and attributes. Second, it runs at the speed of the JVM.

Groovy is a new language based on features from Ruby, Python and Haskell. However, its runtime environment is any JVM. The language syntax attempts to be Java-like, while making the form of the language much simpler.

Groovy is a statically typed language, so it requires a compile step before producing Java byte code. Groovy does not currently have an interpreter, although it does have a shell.

Seeing current trend and the growing usage of scripting languages, the question today is “Should you go with the established Jython or adopt the new kid on the block, Groovy?”

What do you think?


>> Jython Home Page
>> Groovy – Home
>> Programming Tools: Java Scripting Languages

Content Team

The IndicThreads Content Team posts news about the latest and greatest in software development as well as content from IndicThreads' conferences and events. Track us social media @IndicThreads. Stay tuned!

0 thoughts on “Jython vs Groovy

  • February 11, 2007 at 9:51 am

    you can also find scjp mock exams at [URL=http://www.skillfox.com]skillfox.com[/URL]

  • November 7, 2005 at 9:49 pm

    i have used groovy and it’s fine for what it does.

  • October 3, 2005 at 8:52 pm

    I have tried Groovy, but I didn’t find the reason why it sucks. Anyone who said it sucks please detail the reason.

  • July 21, 2005 at 12:31 pm

    I have tried Groovy too. It realy, realy, realy sucked. It must be the most amateuristic product I have ever worked with. I can’t believe its a JSR, and that it had several JavaOne sessions on it!

  • July 21, 2005 at 9:32 am

    If you have tried Groovy you cannot say it is good. Jython is better. BeanShell is better. PNuts is way better!

  • July 19, 2005 at 3:41 am

    Groovy wil be better when it will be with interpreter.

  • July 18, 2005 at 4:15 pm

    Groovy is not statically typed, it’s a dynamic languages which supports static typing.
    It has an interpreted mode but which creates java bytecode on the fly. So it supports both interpreted and compiled modes.
    Regarding speed, Groovy hasn’t been optimized much yet, but on the rare micro-benchmarks I’ve seen (not done by the Groovy team or the Jython team), Groovy often performs better than Jython — but you know how benchmarks aren’t really relevant anyway.

  • July 18, 2005 at 3:14 pm

    Jython just shipped an alpha upgrade to 2.2. It’s far from stalled. Groovy is still being being designed, despite the JSR. I’m not sure if its development has picked up; it had slowed down for a while.

  • July 18, 2005 at 12:59 pm

    There is a new alpha release of Jython 2.2 today. Hopefully Jython development will pick up steam again.

  • July 18, 2005 at 11:18 am

    There’s a JSR behind Groovy, so it should be a better bet for Java folk

    [URL=http://docs.codehaus.org/display/GroovyJSR/Home]Groovy JSR[/URL]

Leave a Reply