cli: add safe owning binary heaps

Add std.heap with an exact explicit pure ordering operation, bounded
push, Copy-only peek, moving pop and empty-only free. Sift Copy indices
while complete owners remain in dense initialized storage; repair holes
through complete exchange. Reserve preserves layout on returned failure
and accounts for both old/new buffers and separately owned payloads.

Integrate normative contracts, RFC, references, bundle measurements,
independent heapq/permutation oracles and CLI/package/profile checks.

Validation: 1007 conformance cases; 34 heap GC fixtures and scheduled
stress; unit/Quick Reference, formatting, hosted smoke, 70 CLI checks,
109 source coverage constructs and unchanged AIR reference bundle.
This commit is contained in:
dev committed 2026-10-07 11:41:35 +03:00
1 parent 4114a39846
commit cfece6080c
51 files changed
+2192 -12

No files matched your search

+2
View File
@@ -36,6 +36,8 @@ jobs:
- run: python3 tools/hashmap_vectors.py
- run: python3 tests/hosted/source_hashset.py
- run: python3 tools/hashset_vectors.py
- run: python3 tests/hosted/source_heap.py
- run: python3 tools/heap_vectors.py
- run: zig-out/bin/aji run --grant out=io.write --grant heap=mem.alloc:64 docs/agent/syntax-example.air
- run: zig build agent-reference
- name: Source construct coverage (Phase 6A)