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

+1
View File
@@ -11,6 +11,7 @@ pub const registry = [_]Source{
.{ .name = "std.hash", .file = "std/hash.aji", .source = @embedFile("std_hash_aji") },
.{ .name = "std.hashmap", .file = "std/hashmap.aji", .source = @embedFile("std_hashmap_aji") },
.{ .name = "std.hashset", .file = "std/hashset.aji", .source = @embedFile("std_hashset_aji") },
.{ .name = "std.heap", .file = "std/heap.aji", .source = @embedFile("std_heap_aji") },
.{ .name = "std.map", .file = "std/map.aji", .source = @embedFile("std_map_aji") },
.{ .name = "std.math", .file = "std/math.aji", .source = @embedFile("std_math_aji") },
.{ .name = "std.option", .file = "std/option.aji", .source = @embedFile("std_option_aji") },