~/talk

Functional data structures in Java

Talkat Voxxed Days Zurich 2017 · on Thursday, 2017-02-23· [functional-programming, java]
slides:none on file

Claims that functional data structures are immutable and persistent and still practical by reusing structure, using lazy evaluation, and applying amortized analysis. Implements cons lists, a two-list queue with amortized O(1) enqueue/dequeue via occasional reversals, hash-array-mapped tries for maps, and zippers for local tree updates. Uses Java 8 libraries such as JavaSlang (and mentions PCollections), runs JMH microbenchmarks showing functional priority queues are somewhat slower than mutable ones but within a constant factor, and cites Okasaki’s book as the reference.

AI-written summary · about

  1. 0:00Intro
  2. 1:34REVOLUTIONARY DEVELOPER TOOLS
  3. 2:03WHAT DOES FUNCTIONAL MEAN?
  4. 7:34MUTABLE DATA STRUCTURES
  5. 10:44PERSISTENT DATA STRUCTURES
  6. 15:51HOW TO PREPEND A LIST
  7. 18:29HOW TO APPEND TO A LIST
  8. 18:59ALGORITHMIC COMPLEXITY
  9. 20:17AMORTIZED COMPLEXITY
  10. 22:02BANKER'S METHOD
  11. 25:01HOW TO BUILD A QUEUE
  12. 28:47HOW TO TAIL A QUEUE
  13. 29:09HOW TO PEEK
  14. 29:48HOW TO DEQUEUE
  15. 33:29ISN'T REVERSE EXPENSIVE?
  16. 34:30HOW TO BUILD A MAP
  17. 37:03UPDATING THE MAP
  18. 38:12NORMAL TREES
  19. 42:06BENCHMARKS
  20. 44:07RESULTS (SAFE HARBOR)
  21. 45:46Purely functional Data Structures
~/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.