~/talk

Immutable data structures for functional JS

Talkat JSConf EU 2017 · on Saturday, 2017-05-06· [javascript]

Explains that persistent immutable collections use Bitmapped Vector Trie and path copying so updates copy a root-to-leaf path not the whole array converting O(n) copies into O(log n) steps and enabling structural sharing to save memory while keeping old versions. Shows hash-array-mapped tries, 32-way branching, concrete APIs and examples using Mori (conj asoc get) and Immutable.js (List/Map push set get) and reports Mori tends to be faster while Immutable.js is smaller.

AI-written summary · about

  1. 0:00Intro
  2. 3:05Immutability
  3. 5:01Problems with mutability
  4. 6:41Immutable data structures
  5. 8:37Magic tricks
  6. 8:54Trees
  7. 10:00Path copying
  8. 11:36TRY trees
  9. 14:27Branching trees
  10. 15:58Bit partitioned vector
  11. 18:44Recap
  12. 20:33Immutable JS
  13. 24:17immutablejs
  14. 25:09comparison
~/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.