My favorites | Sign in
Project Home Downloads Wiki Issues Source
Search
for
Welcome  
What is Groovy++
Featured
Updated May 27, 2011 by HamletDRC

What is Groovy++?

Groovy++ is a statically typed extension to the Groovy programming language. Groovy++ provides high performance and compile time type checking for compiled code.

Beyond all the goodies of standard Groovy, this project adds a lot of functionality

  • compile time checking of code
  • as fast as Java performance of compiled code
  • easy mixing of statically and dynamically typed code
  • very powerful type inference
  • tail recursion
  • traits (interfaces with default implementation)
  • extension methods (compile time categories)
  • standard library of utilities for functional programming, concurrency and distributed computing (early prototype stage)

Hello, World!

Here is simple "Hello, World" application with Groovy++. The call to the String.toLowerCase method is statically resolved by the compiler

@Typed package mypackage

["Hello, ", "World!"].each {
   print it.toLowerCase ()
}
println ()

Curious about the @Typed annotation above? Read how does it work

Why Groovy++?

Read this interview with Alex Tkachman, creator of Groovy++, to learn more about the goals and ideas behind the project

Comment by iamk...@gmail.com, May 18, 2010

Is there any plan to merge Groovy++ into Groovy? If not, what is the long term plan?

Comment by bummer...@gmail.com, May 10, 2011

with groovy 1.8 and 1.9 performance improvements will this extra step still matter that much

most of the time we want the terse dynamicness of Groovy anyways

Comment by justn...@mail.ru, May 12, 2011

I like the strictness which Java imposes, but I hate the ubiquitous redundant verboseness. G++ is a solution for that kinda programming approach. With Groovy in essence being an alternative to Java having its benefits and weak spots in that sense, G++ looks more like an evolution of Java. G++ tries to solve several weaknesses of Groovy's step away from Java keeping the sacrifice of benefits to a minimum.


Sign in to add a comment
Powered by Google Project Hosting