~/talk

Apache Groovy's Metaprogramming Options and You

Talkat jLove 2020 · 2020-12-04..12-05· [java]
slides:none on file

Three new Groovy releases land (3.0.7, 2.5.14, 2.4.21) and Groovy 4 changes package namespaces, breaking binary compatibility. Runtime metaprogramming uses MetaClass MOP to add methods, plus methodMissing/propertyMissing, categories, mixins, traits and extension modules that are IDE-aware and type-checked. Compile-time uses AST transformations (local and global), with ~70 built-ins like ToString, Canonical, Immutable and a Pojo prototype that emits plain JVM bytecode; macro methods and ASTBuilder generate code programmatically.

AI-written summary · about

  1. 0:00Introduction to Groovy
  2. 1:31What is metaprogramming
  3. 2:55Runtime metaprogramming basics
  4. 7:09Method missing in Groovy
  5. 9:18Categories and mixins
  6. 12:52Traits in Groovy
  7. 14:17Extension modules
  8. 18:06Compile-time metaprogramming
  9. 19:52AST transformations
  10. 23:46Canonical transformation
  11. 24:50Immutable classes in Groovy
  12. 26:14Groovy and Project Lombok
  13. 28:00Global AST transformations
  14. 29:03Macro methods
  15. 30:26Resources and contributions
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.