Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Groovy's history and current status

Groovy's history and current status

Invited to talk at BreizhCamp about the past, present, future of the Groovy programming language project, with its move to the Apache Foundation, and talking about professional Open Source

Guillaume Laforge

June 11, 2015
Tweet

More Decks by Guillaume Laforge

Other Decks in Technology

Transcript

  1. Bob McWhirter James Strachan James Strachan and Bob McWhirter gave

    birth to Groovy: a dynamic and agile scripting language for the JVM. […] James always used to say that it was all Bob's fault, but indeed, James had so many groovy ideas that it's hard to believe it's not his own fault. He kept saying: "Wouldn't it be groovy if we could do this and that...". Hence the name "Groovy". That's roughly how it all started.
  2. 7 Groovy pre-1.0 • Closures available since 2003 on Java

    1.4+ • All the nice shortcuts already, inspired by Python & Ruby • native syntax for lists, maps, etc… • Tons of useful methods to simplify 
 common Java boiler-plate code • Initially dynamically-typed only
  3. I join the project in 2003, patches after patches, become

    committer, then lead when founders left
  4. 5

  5. 11 Groovy in 2004 • A brand new parser based

    on Antlr • after two hand-rolled versions • by John Rose and Jeremy Rainer • Jochen « blackdrag » Theodorou joins the project
  6. 6

  7. 17 First paid committer • Jochen becomes the first full-time

    paid committer • sponsored by BigSky Technologies / No Fluff Just Stuff
  8. 1.0

  9. 24 Groovy in 2007 — Groovy 1.5 • The long

    awaited Java 5 update • annotations, enums, generics… • Joint compiler! • Varargs support • Static imports (including import aliasing) • Named parameters without parentheses
  10. 30 Groovy++ fork! • Not the first fork, but 3rd

    • by Alex Tkachman (former G2One co-founder) • Big focus on static compilation • interesting playground for our forthcoming static type checking and static compilation support
  11. I can honestly say if someone had shown me the

    Programming Scala book back in 2003, I’d probably have never created Groovy
  12. 40 Groovy 1.6 • Performance improvements with call-site caching •

    Multiple assignments • Optional return in if/else, try/catch, switch/case • More AST transformations • @Singleton, @Lazy, @Immutable, @Delegate • The Grape module system with @Grab • OSGi support
  13. 41 Groovy 1.7 • Nested and inner classes, and nested

    static classes • Missing annotation definition support • Power Asserts from Spock • Customize the Groovy Truth! • AST viewer and AST builder • SQL support improvements
  14. 7

  15. 47 Groovy 1.8 • Command chain expressions • GPars bundled

    with the Groovy distribution • Primitive calculation optimizations • Closures • as annotation parameters • currying, memoization and tail recursion • Built-in JSON support
  16. 52 Groovy 2.0 • Static type checking and static compilation

    • type inference, flow typing… • « Project Coin » enhancements • binary literals, underscore in numbers, multicatch block • Initial « invoke dynamic » support • Modularity of the Groovy code base with modules
  17. 56 Groovy 2.1 • Full « invoke dynamic » support

    • Type-checking extensions • Meta-annotations • @DelegatesTo annotation • Compiler customization scripts • Distribution bundling GPars 1.0
  18. 57 Groovy 2.2 • Implicit closure coercion to SAM types

    • Java lambda friendly! • Pre-compiled type checking extensions • @Memoized transformations for methods
  19. 8

  20. 61 Groovy 2.3 • Traits! • Improved JDK 8 support

    • Drastic performance improvement for JSON • New AST transformations & improvements • @Builder,@Sortable,@SourceURI, @BaseScript • New markup template engine • More NIO support
  21. 66 In Groovy 2.4 also… • Optimized bytecode • Bytecode

    size reduction • Reduced memory consumption • Traits @SelfType annotation • More handy GDK methods • More AST transformation refinements • Groovysh improvements
  22. 80 Incubation — mentors • Emmanuel Lécharny • Bertrand Delacrétaz

    • Roman Shaposhnik • Jim Jagielski • Andrew Bayer
  23. 81 Incubation — initial committers • Paul King • Cédric

    Champeau • Pascal Schumacher • Jochen Theodorou • Guillaume Laforge
  24. 82 Incubation — infrastructure • Mailing-lists created • archived by

    Nabble • JIRA issues imported • Sources moved to Apache’s Git • with a mirror on Github Please Star it!
  25. 83 Incubation — new committers • Officially joined the project

    as committer • Andrés Almiray • To be announced soon too! • Dierk König • Russel Winder
  26. 84 Incubation — next steps • The next key step

    is make a first release! • following the Apache guidelines • Made a first attempt June 7th, 
 but still some things to tweak to be fully ready!
  27. 86 Groovy 2.4.4 / 2.5 • Improved compiler performance •

    with an ASM class reader • @Canonical becomes a meta-annotation • More control on the meta-annotation collector • New @MapConstructor transformation • Property validation in transformation parameters • Further AST transformation improvements