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:
1 parent
4114a39846
commit
cfece6080c
51 files changed
+2192
-12
No files matched your search
@@ -30,6 +30,8 @@ python3 tests/hosted/source_hashmap.py # explicit general key policies, profiles
|
||||
python3 tools/hashmap_vectors.py # independent dict and dense-order oracle, Copy/owning values
|
||||
python3 tests/hosted/source_hashset.py # duplicate key ownership, source/AIR, packages and profiles
|
||||
python3 tools/hashset_vectors.py # independent set and representative oracle, Copy/owning keys
|
||||
python3 tests/hosted/source_heap.py # explicit ordering, owning extraction and profile/package parity
|
||||
python3 tools/heap_vectors.py # independent heapq traces and exhaustive small permutations
|
||||
(cd tools/eval && python3 -m unittest discover tests) # evaluation harness self-tests
|
||||
zig fmt --check build.zig src tools
|
||||
```
|
||||
|
||||
Reference in new issue
Block a user