~/talk

Hunting with Stream Gatherers

Talkat Voxxed Days Amsterdam 2025 · on Thursday, 2025-04-03· [java]
slides:none on file

Java 24 adds Stream Gatherers as a single intermediate operation called Stream Gatherers that replaces hacks like custom collectors or ugly record-equals tricks and lets code inspect state, emit zero-to-N elements, short-circuit and run concurrently. The talk shows an integrator/supplier/combiner/finisher API, demos unique-by-length, fold/scan, fixed and sliding windows, an n‑gram gatherer implemented in a few dozen lines, and uses mapConcurrent with virtual threads to turn a 9s ForkJoin parallel run into ~1s for 100 IO-bound tasks.

AI-written summary · about

  1. 0:00Introduction
  2. 2:20Java 24 release
  3. 4:25Java 8 and streams
  4. 9:22Stream problems
  5. 17:05What are gatherers
  6. 19:56Gatherer demo
  7. 27:44Parallel streams pitfalls
  8. 34:51Map concurrent gatherer
  9. 38:39Real-world demos
  10. 44:27Life examples
  11. 49:05Wrap-up and Q&A
~/search
type to search 8,222 conferences, 162,397 speakers and 219,688 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
← →
on a talk: 5 seconds back / forward
0–9
on a talk: jump to 0%–90% of the recording
?
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.