149. Numbers: storage widths, niches and layout (2026-11-21)
- Decision. Adopt
spec/core/03-numbers-layout.md: locals compute inInt; storage takes the narrowest width its type allows (ranges, domain positions,Mod<P>,Char); narrow arithmetic when proven; the fold op decides node width (Selectivekeeps the input range,+narrows by the span bound,SegTree<T>forces it); fixed spare values per type,?Sand enums niche-fill Rust-style (first field with enough spares); storage reorders fields against padding;Packed<S>andlayout: columnsare explicit; noU8/I32/U32(decision 1.7, corpus has no wrapping-byte use);cpl explainand the LSP (hover, inlay hints, code lens) show sizes. - Why. Ryan wants no i64 bloat in storage, niches that propagate through structs, and visible sizes; register width costs nothing, memory and SIMD lanes do.
- Reverse. Per item; each section of the doc names its alternative.