Groovy Casts

Screencasts for all things Groovy related.

Get Your Groovy On #2 - Graffiti

If you want to write a simple RESTful service, you’d do well to take a look at Graffiti. It’s both concise and powerful.

This screencast shows us how to get started, how to add new response handlers, and how to formulate JSON payloads in Groovy 1.8. You can run this yourself, as well as look at the code on GitHub.

Graffiti is written by Kerry Wilson.

Get Your Groovy On #2 by Merlyn Albery-Speyer

Comments

Code Transforming Annotations in Groovy 1.8

Groovy 1.8 introduces a number of new annotations that transform your code at compile time.

This screencast walks us through the following additions:

  • @Log
  • @InheritConstructors
  • @Canonical
  • @ToString
  • @EqualsAndHashCode
  • @TupleConstructor
  • @WithReadLock
  • @WithWriteLock
  • @TimedInterrupt

See here for the full list of annotations.

A brief introduction of some new annotations that were added in Groovy 1.8 by Victor Savkin

Comments

bytenotes asked: Would java 7 invokedynamic compensate in speed for what groovy++ does with @Typed?

Hi bytenotes,

Here’s Jochen Theodorou’s answer:

“The performance of inveokedynamic is said to be a little less good as a nor invocation, but not much. There is higher initial cost because of the method selection and such. But there are still many cases in real life using invokedynamic that need adjustments by the VM authors. invokedynamic is still work in progress performance wise.

So it is difficult to answer if Groovy with invokedynamic would be as fast as groovy++ in the end. I think it would be still a bit slower, but not very much…. it depends on the case.

The problem is that for example with EMC there are many cases that don’t fit fully in the way invokedynamic works. That is why we intend to base Groovy2 full and 100% support of every feature on invokedynamic logic. So then everything will be available to invokedynamic and then hopefully we are quite fast.”

Cheers,
Merlyn

Comments

bytenotes asked: Will you have a normal login? I signed up just to ask a question.

Hi bytenotes,

I’m using Tumblr, so I think you’re forced to login using their system.

Cheers,

Merlyn

Comments

Getting Started with Spock and Groovy

Getting Started with Spock and Groovy by Hamlet D’Arcy

This screencast demonstrates how to create Spock testing specifications. Check out the original site for more details.

Comments

Get Your Groovy On

Get Your Groovy On by Merlyn Albery-Speyer

This cast is a quick overview of Groovy to give you a feel for why I love it. Enjoy!

Comments

Groovy CodeNarc: How to Write a Rule

Groovy CodeNarc: How to Write a Rule by Hamlet D’Arcy

Comments

Faster Gradle Builds using the Gradle Daemon

Faster Gradle Builds using the Gradle Daemon by René Gröschke

Comments

Executing Gradle from TextMate

Executing Gradle from TextMate by René Gröschke

Comments

Getting Started with Gradle

Getting Started With Gradle by René Gröschke

Comments