~/talk

Functional implementation of Finger Trees in JavaScript

Talkat Scale By the Bay 2020 · on Friday, 2020-11-13· at 01:00· functional, Online· [javascript, functional-programming]
links:none on file
slides:none on file

A complete, purely functional Finger Tree implemented in a narrow subset of JavaScript and demonstrated inside an ObservableHQ workbook, including cons and snoc, folding, cached sizes and a generic measure so searches work by index or by weight. Implementation uses digits (1–4), internal nodes of 2 or 3, and pushes overflow nodes down; sizes are cached for O(1) size access and searches become logarithmic while many updates are amortized constant. Visualizer and merge procedure run and illustrate growth up to size 26.

AI-written summary · about

  1. 0:00Introduction
  2. 0:48What is finger tree
  3. 4:05How finger tree grows
  4. 6:05Ordered monoids
  5. 7:40Serialization
  6. 10:38Cons
  7. 13:23Build
  8. 16:18Fold
  9. 20:08Size
  10. 21:38Index
  11. 23:03Find
  12. 23:41Measure
  13. 25:49Nodes
~/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.