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?

Reference:

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

The following two tabs change content below.
Content Team

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!
Content Team

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!

  • Content Team

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

  • Noname

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

  • Noname

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

  • Noname

    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!

  • Noname

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

  • Noname

    Groovy wil be better when it will be with interpreter.

  • Noname

    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.

  • Noname

    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.

  • Noname

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

  • Noname

    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]