~/talk

Let’s Get Lazy: Explore the Real Power of Streams

Talkat Devoxx US 2017 · 2017-03-21..03-23· [java]
slides:none on file

Demonstrates that laziness yields efficiency by avoiding unnecessary work, showing Haskell’s normal-order laziness, Scala’s lazy vals, and how Java achieves it with Supplier/lambda indirection and the Stream API. Compares an imperative loop (8 checks) to a naive functional view (would seem to do 21 checks) then shows Java Streams actually do 8 checks because intermediate ops are fused and only the terminal op triggers work. Builds infinite streams with Stream.iterate → filter → map → limit → sum (works as shown).

AI-written summary · about

  1. 0:00Start
  2. 0:16What Does It Really Mean by Being Lazy
  3. 0:40Benefits of Being Lazy
  4. 4:15Language Specification
  5. 6:38Using a Debugger
  6. 11:00Compute Method
  7. 15:10Does Java Have a Lazy Keyword
  8. 26:28Advantages
  9. 32:56Intermediate Operations
  10. 41:26Referential Transparency
  11. 42:42Java Guarantee Purity of Lambdas
  12. 44:56Example of How Infinite Streams Can Help
~/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.