groovy-stream updates and Java integration
So a quick post about the latest release (0.8.0) of groovy-stream.
In a nutshell, this update has removed a couple of things, and added support for using groovy-stream from Java.

JBB: An Artblog!
cherry valley forever
hello vonnie
Stranger Things
No title available
Cosimo Galluzzi

@theartofmadeline
we're not kids anymore.
h
RMH
"I'm Dorothy Gale from Kansas"

❣ Chile in a Photography ❣
Xuebing Du
Misplaced Lens Cap
Today's Document
YOU ARE THE REASON

oozey mess
Three Goblin Art
Keni
No title available

seen from Netherlands

seen from Brazil
seen from Malaysia

seen from Poland

seen from Israel

seen from United States

seen from Malaysia
seen from United States
seen from Australia
seen from Sweden

seen from India

seen from Mexico

seen from United States

seen from Germany
seen from United Kingdom
seen from United States
seen from United States
seen from Canada

seen from Spain
seen from United States
@bloidonia
groovy-stream updates and Java integration
So a quick post about the latest release (0.8.0) of groovy-stream.
In a nutshell, this update has removed a couple of things, and added support for using groovy-stream from Java.
caterpillar-case, camelCase and snake_case, oh my!
There's no support for UPPERCASE-CATERPILLAR-CASE unfortunately, but all the following should pass (here I've added a caseFormat method to String to make the code a bit more readable)
Have fun!
@tim_yates
A miniKanren in Groovy
Finally got a working implementation of a miniKanren in Groovy (I basically ported the ruby version that can be found here).
Changing body class in Grails
The solution is to use the pageProperty call to fetch the property from the view and inject it into the layout before the page is rendered (as documented here):
@tim_yates
groovy-common-extensions v0.5
Taken from Ruby, the tap method executes the closure using the object as the delegate - internally, it just calls self.with c and then it returns self.
This allows you to tap into a method chain:
@tim_yates
Rendering anti-aliased text over semi-transparent backgrounds in Java/Groovy
Another blog post that's more for me in the future so I don't forget ;-)
Thought it might be of use to someone else as well, so posted it here for posterity.
Rock Paper Scissors with Groovy-stream
Anyway, on to the code
@tim_yates
Object destructuring with getAt in Groovy
One thing I only recently learned about Groovy is that by implementing the getAt method, you can destructure your Object via multiple assignment.
As an example, consider a class Vector2D which represents a two-dimensional vector:
Lazy squares using groovy-stream
Last night, I saw a post on my twitter feed titled "Why Functional Programming in Java is Dangerous" where the author tries to implement the clojure code
in a functional style in Java, then concludes that "Functional idioms in Java are performance bugs waiting to bite you" after trying to load all of the Integers Java can handle into an ArrayList.
Groovy-stream library now on Maven
Buoyed by my success pushing the groovy-common-extensions library to maven, I pushed the groovy-stream library to maven as well, so it's now possible (without any messing around with @GrabResolver) to give the library a whirl.
Groovy Common Extensions on Maven
Last week I pushed my groovy-common-extensions project to maven via sonatype using the brilliant Gradle Nexus plugin by @bmuschko
Groovy 2.0.6: Bugfix for @Immutable allows use of Clojure collections
A quick note to myself. I found a bug in Groovy 2.0.5 that prevented you having an Immutable class that contained one of either Clojure's PersistentList and PersistentVector.
The bug was fixed for Groovy 2.0.6, and I just tested it and it all works great (thanks Paul for the fix)
Get up and running with GroovyFX on the Raspberry Pi
This Christmas, I received a Raspberry Pi from Santa, so thought I'd have a go at getting JavaFX running on it. Of course, due to my interest in all things Groovy, I decided to go straight for getting GroovyFX running. After a day or two of foozling around (and at least half a day getting distracted by the RASPBMC media centre), I succeeded so thought I would post the steps I took here so others can follow my path to GroovyFX happiness.
Automated Javadoc testing in a Gradle built Groovy project
One of the things I love about how Groovy is built, is that quite a few of the examples in the Javadoc are automatically tested when you run ./gradlew test
99 bottles using a groovy-stream
Saw a tweet from Rob Fletcher about the 99 bottles of beer song written in LOLcode
99 Bottles of Beer in #LOLCODE 99-bottles-of-beer.net/language-lolco… #nextbiglanguage /via @cressie176
— Rob Fletcher (@rfletcherEW) December 6, 2012
And decided to see what it would look like with a groovy-stream.
This is what I ended up with:
@tim_yates
Stripping Microsoft Word "Smart Quotes" out of text with Groovy
A good few years ago, I wrote a Java helper class to convert the most common of these symbols back into ASCII, and just recently I converted it to Groovy and thought I'd share.
It's not complete, there are bound to be loads of characters that are missed in the conversion, but it catches enough to be of use to me.
@tim_yates
Using Clojure and core.logic from Groovy
Lately I've been interested in core.logic, a Clojure library written by David Nolen that implements miniKanren in Clojure.