~/talk

Evolution of Future in Java&Scala

Talkat Java Day Minsk 2017 · on Saturday, 2017-06-03· [concurrency, scala]
links:none on file
slides:none on file

Survey of concrete APIs and tradeoffs: Java 5 Future is blocking and wastes threads; Guava supplies ListenableFuture and SettableFuture plus ExecutorCompletionService patterns to get the fastest response; Java 8 adds CompletableFuture fluent API and CompletionStage with thenCompose/async variants, detailed error propagation, and a fixed stack‑overflow bug in older JDKs; Scala shows for‑comprehensions, flatMap/zip/sequence, Promise vs Future separation, ExecutionContext implicits, and alternatives like Monix Task and trampolining.

AI-written summary · about

  1. 0:00Introduction
  2. 1:17About the speaker
  3. 2:01Future in Java 5
  4. 4:51Executor Completion Service
  5. 6:58Server-side I/O issues
  6. 8:23Guava's ListenableFuture
  7. 10:50Callback challenges
  8. 13:18SettableFuture in Guava
  9. 14:03CompletableFuture in Java 8
  10. 17:32Stack overflow risks
  11. 19:41Future in Scala
  12. 22:30For comprehensions in Scala
  13. 23:33Java vs Scala methods
  14. 24:38Zipping futures
  15. 25:42Exception handling
  16. 27:26Future sequence conversion
  17. 28:52Scala operator overloading
  18. 31:44Memory leaks in Scala
  19. 32:47Cancellation limitations
  20. 33:09Summary and recommendations
  21. 34:36Further reading
  22. 37:25Q&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.