Interpreter Limits
summary
Interpreter stores many limits in fixed-size bit fields so max rank 15 comes from a 4‑bit rank field and 4096 constants comes from a 12‑bit local-pocket index; functions are capped at 4096 lines and the bytecode stream at 65,000 tokens. Proposed changes widen fields (use unused 64‑bit workspace bits, enlarge token offsets to 4 bytes) which yields 65k+ constants or multi‑gig functions, but requires converting old workspaces/component files and trades workspace size for interpreter complexity and performance.
AI-written summary · about
chapters (9)
- 0:00Noodling over the weekend
- 1:40List of interpreter limits
- 4:00Limits in array pockets
- 6:45Issues and constraints when increasing limits
- 8:40Number of constants/symbols in a function and consequences for array notation
- 10:55Expanding limits due to field widths
- 15:00Limits of numbers of lines and tokens in functions
- 19:53Consequences of increasing interpreter limits
- 23:50Possibilities for increasing interpreter limits
