~/talk

Double the Beyoncé: Navigating Numbers in JavaScript

Talkat JSConf.Asia 2019 · 2019-06-14..06-16· [javascript]
slides:none on file

Explains that JavaScript uses IEEE-754 floating point so 0.1 + 0.2 ≠ 0.3, and that numeric IDs above Max Safe Integer ~9 quadrillion lose uniqueness; shows a real bug where two different artist records collapse into one (double Beyoncé) because the runtime rounds large integers and the framework reuses the same cached resource. Fix is to switch IDs to UUIDs and to use the new BigInt primitive for truly large integers — demoed as working in current browsers but not yet universal.

AI-written summary · about

  1. 0:00Introduction
  2. 0:50What are numbers
  3. 2:10Representation
  4. 11:58Range size
  5. 20:18Bigint
~/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.