Interested by Groovy but never used it... You will be please to use this nice tutorial available on the Groovy site:
Thanks to Graham Miller's contribution...
Interested by Groovy but never used it... You will be please to use this nice tutorial available on the Groovy site:
Thanks to Graham Miller's contribution...
With all the Java Scripting language around (Groovy, Rhino, Ruby, Jython... and so on) it is always interesting to understand where this come from... but also be able to talk with people about it, especially when they do not understand why scripting is interesting...
Googling around looking for some information on scripting benefits for a presentation I found this very intersting article from John Ousterhout, (he wrote the article in 1998) but I am sure you will still appreciate it...
Scripting: Higher Level Programming for the 21st Century.
One of the most interesting part in this context is the paragraph 4:
A scripting language is not a replacement for a system programming language or vice versa. Each is suited to a different set of tasks. For gluing and system integration, applications can be developed 5-10x faster with a scripting language; system programming languages will require large amounts of boilerplate and conversion code to connect the pieces, whereas this can be done directly with a scripting language. For complex algorithms and data structures, the strong typing of a system programming language makes programs easier to manage. Where execution speed is key, a system programming language can often run 10-20x faster than a scripting language because it makes fewer run-time checks.
This new Java World article compares the different Java scripting languages (Groovy, JudoScript, Pnuts, JRuby, Jacl, Jython, Rhino, and BeanShell), and list the issues that you have to select the good one...
In this article that I like I would like to read a little about the JSR-223 that should help with the integration part.
I will be very interested to know how you use Java Scripting language in your projects, so feel free to drop me a comment or mail ( tugdual at gmail)