~/talk

How to get Groovy with Java 8

Talkat SpringOne2GX 2014 · 2014-09-08..09-11· [java]
links:none on file
slides:none on file

Compares a small Java 8 implementation (filter names with the Streams API and write per-name files with Files.write) to a concise Groovy script using setText; both examples run and produce output files, but Java 8 trades ceremony for the new APIs and lambdas. Benchmarks (JMH) show Groovy slower than static Java, yet enabling invokeDynamic brings Groovy near @CompileStatic speed; Groovy still wins for scripts, DSLs and features like tail recursion annotations and traits, while libraries (Ratpack/Gradle) favor a Java core for robustness.

AI-written summary · about

  1. 0:00Introduction and speaker background
  2. 1:55Java vs Groovy syntax comparison
  3. 6:31Groovy features improving readability
  4. 7:14Java 8 as a game changer
  5. 9:02Java 8 vs Groovy code example
  6. 17:44Groovy script comparison
  7. 21:22Groovy advantages over Java 8
  8. 27:18Java vs Groovy in build tools
  9. 31:12Groovy's future with Java 8
  10. 35:53Binary compatibility and stability
  11. 40:10Risk assessment in language choice
  12. 44:15Rat Pack and Gradle philosophy
  13. 50:10Java and Groovy as complementary
  14. 51:16Lambda functions integration
  15. 57:19Groovy performance with invokeDynamic
  16. 1:00:08Java 8 new APIs and enhancements
  17. 1:08:37Default methods and traits
  18. 1:14:23Conclusion and Q&A
~/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.