~/talk

Parallel-Ready Java Code: Managing Mutation in an Imperative Language

Talkat Philly ETE 2015 · 2015-04-07..04-08· [java]
links:none on file
slides:none on file

Java 8 streams give parallelism without manual locking by using the Collectors API to supply fresh containers per thread so non-threadsafe lists and maps work safely; spliterators split input for concurrent workers and the framework merges results. Key rules: avoid stateful lambdas, don’t modify the source during evaluation, and prefer associative reductions or suppliers produce fresh containers and collectors over naive reduce. Over 40 built-in stream sources exist and predefined collectors cover almost all common cases; it works when those rules are followed. spliterator splits data for threads

AI-written summary · about

  1. 0:00Introduction
  2. 2:09Pipes and filters concept
  3. 8:13Stream API basics
  4. 13:26Stream operations explained
  5. 20:49Parallelism and reduction
  6. 24:24Automatic parallelization
  7. 31:06Mutable objects challenge
  8. 33:40Collectors API deep dive
  9. 42:59Parallel stream execution
  10. 48:19What makes code parallel ready
  11. 50:44Conclusion and future steps
~/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.