Issue #2538: Measure back fields: a tree with parent links in four forms, and how many back fields the compiler proves

Open and answer this issue on GitHub.

compiler, ready · opened 2026-11-21 · updated 2026-11-21 · 0 comments

Part of #1649 Part of #1626 After #2534 Needs #1648

What it is

Measurements 4 and 6 of #1626 §9, for step 4 of ADR-shared-handle-cycles-1 (back fields, D3), once parent links, doubly linked lists and observers are built (#1649, #2531, #2534). They check the work and gate nothing. Counted with callgrind, never time (docs/measuring.md).

To build

  1. Measurement 4: callgrind, never time. A tree of 100 000 nodes with parent links, built and walked up from every leaf, in four forms: F1, F2, indices into a list, and Rust Rc/Weak tuned. Post instructions and peak bytes on #1649 and here.
  2. Measurement 6: across the compiler’s .nika files (crates/nikaia-std/src/compiler/), packages/ and examples/, how many back fields F proves (F1 / F2), how many cycles stay refused, and the extra user time of check. The user time of nikaia check on the compiler (the issue named check_program.nika) may grow by at most 5 % over #1648’s figure.

Done when

Both measurements are posted on this issue with the commit measured on, and the check user time is within 5 % of #1648’s figure or the excess is named.

Split from #1649 by Claude Code

Back to Open Issues