The secret life of Not-a-Number!
summary
Explains that IEEE doubles leave a 51-bit NaN payload that gets reused to encode runtime values so the engine avoids extra words and register pressure. Shows NaN-boxing used in JavaScriptCore (and variants in SpiderMonkey and LuaJIT): 48-bit pointers, 32-bit integers, and a few singleton tags fit into the payload, the bit layout is concrete, and the hack actually runs in shipping engines and improves memory and performance.
AI-written summary · about
chapters (7)
- 0:00Start
- 0:37The Secret Life of Not a Number
- 0:50The Floating Point Standard
- 1:59Floating-Point
- 8:21Pointers and Integers
- 8:43Are There Even Integers in Javascript
- 10:42Recap








