~/talk

Purely Dysfunctional Data Structures in Java

Talkat JFuture 2019 · 2019-11-14..11-16· [java]
slides:none on file

Immutable data structures shrink the bug surface but force copying and extra GC unless you use structural sharing to reuse nodes; a persistent singly linked list gives O(1) prepend but O(n) append, persistent queues use two lists for amortized O(1), and practical persistent maps use a Hash Array Mapped Trie with a 32-way branching factor (tree depth around 6–7 for millions of entries). Java got immutable small-list classes, Scala 2.14 adds compressed HAMT workarounds, and Java libraries like Vavr and Cyclops provide implementations to try.

AI-written summary · about

  1. 0:00Introduction and speaker background
  2. 1:54Immutability in Java and its challenges
  3. 7:18Defining immutability in Java
  4. 11:57Designing good immutable APIs
  5. 15:57Persistent data structures overview
  6. 23:07Persistent linked lists explained
  7. 25:59Immutability and thread safety trade-offs
  8. 29:35Persistent sets and trees
  9. 31:26Persistent queues and performance
  10. 35:21Persistent maps and radix trees
  11. 39:19Summary and key takeaways
~/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.