Groovy

I’ve recently needed to support creating a Groovy DSL that can be called from Java, to allow scripting of some server activities.  The aim was to load a file, script.groovy, and run it so that it uses the server’s API.

 

Researching the subject, most articles discuss how to create nicer looking syntax when working from within Groovy. Things like being able to write 5.euro. But in our scenario there were other goals:

ittayd 18/06/2010 - 14:40

I need a recommendation on "light" in-memory database for small groovy web-application.

 

Thanks!

liya 03/03/2010 - 15:23

http://stronglytypedblog.blogspot.com/2010/02/java-vs-scala-vs-groovy-vs-groovy.html

 

The blog post compares the performance of quicksort implemented in Java, Scala, Groovy and Groovy++. 

 

(Groovy++ is an effort to create a statically typed variant of Groovy, so that dynamic and static programming can be mixed).

 

Bottom line: Scala and Java compare in performance, Groovy is 512 times slower and Groovy++ is only 42 times slower. This is obviously just a micro-benchmark, but I don't see how manipulating any other sort of data will make the difference in performance smaller. 

 

ittayd 07/02/2010 - 23:02
Syndicate content