~/talk

Functional Data Structures

Talkat Elm Conf 2016 · on Thursday, 2016-09-15· [functional-programming]
slides:none on file

Compares four Elm binary-tree implementations and concludes Elm’s union types produce the clearest code. Starts with an array-based layout using child indices 2i+1 and 2i+2 and shows the waste of using Maybe to mark empty slots. Switches to core Dict to avoid filler, then to record-based pointers (recursive type required) with full insert and remove, and finally to a compact union-node type. Builds working insert and remove for pointer versions and shows the union-node is simplest and most readable.

AI-written summary · about

  1. 0:00Introduction to talk
  2. 1:37Array-based approach
  3. 5:14Dict-based approach
  4. 6:18Pointer-based approach
  5. 7:43Simplified node structure
  6. 9:12Comparison and summary
~/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.