~/talk

The Next Exciting JavaScript Feature: Records & Tuples

Talkat JSConf Korea 2022 · 2022-09-16..09-17· [javascript]
slides:none on file

New primitives called Records & Tuples give value equality and deep immutability so two equal structures compare by contents, which fixes React re-render churn; change‑by‑copy adds toSorted/toReversed and with() so array nonmutating ops return new arrays; garbage‑collection needs a side table solved by Symbols as WeakMap keys (not in browsers yet); a Babel plugin transpiles syntax for experiments and Safari 16 already ships change‑by‑copy.

AI-written summary · about

  1. 0:00Records and Tuples intro
  2. 0:51Immutable state problems
  3. 3:52Immutable libraries limits
  4. 6:09What are Records & Tuples
  5. 8:50Records vs Tuples comparison
  6. 10:00Updating Records & Tuples
  7. 11:43Change Array by Copy
  8. 13:35Referencing objects in R&T
  9. 16:29Garbage collection & WeakMaps
  10. 19:24Symbols as WeakMap keys
  11. 19:48Status and polyfills
  12. 22:26Testing & production use
  13. 22:51Q&A
~/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.