Design decisions

266. The builtin floor: storage, I/O, bits and numeric primitives (2026-11-22)

  • Decision. The compiler keeps intrinsics only for storage (List, Str, Map, Set and their views), I/O, bits and numeric primitives; every other name it matches is a std body any library could write. The classification is plan/domains/tech-debt/architecture/builtin-floor.md: 66 of the names ir_builtin_names counts are on the floor, 23 are derived (2 moved so far). A derived name moves only when its std body passes the perf gate. Former tech-debt question in plan/QUESTIONS.md.
  • Why. "No privileged stdlib" (AGENTS.md): a power the stdlib needs is one user libraries get too. The floor keeps every remaining special case visible and countable.
  • Reverse. A name goes back on the floor with a line here and a raised ir_builtin_names baseline.