cli: add safe owning general-key hash sets

Add std.hashset with explicit pure hash/equality policies and complete
owning keys. Duplicate/full insert returns the original input, while
remove/pop and nonempty free preserve explicit resource ownership.

Reuse safe HashMap storage and failure/peak/refund accounting. Integrate
normative contracts, RFC, references, complexity measurements, CLI/profile
checks and independent Copy/owner set traces.

Validation: 973 conformance cases; runtime set GC and schedule stress;
unit/Quick Reference, formatting, hosted smoke, 53 CLI checks, 106 source
coverage constructs and bundle generation.
This commit is contained in:
dev committed 2026-10-07 11:14:53 +03:00
1 parent 7743f515c5
commit 4716cda0f1
43 files changed
+2696 -7

No files matched your search

+1
View File
@@ -34,6 +34,7 @@ pub fn build(b: *std.Build) void {
mod.addAnonymousImport("std_fmt_aji", .{ .root_source_file = b.path("std/fmt.aji") });
mod.addAnonymousImport("std_hash_aji", .{ .root_source_file = b.path("std/hash.aji") });
mod.addAnonymousImport("std_hashmap_aji", .{ .root_source_file = b.path("std/hashmap.aji") });
mod.addAnonymousImport("std_hashset_aji", .{ .root_source_file = b.path("std/hashset.aji") });
mod.addAnonymousImport("std_map_aji", .{ .root_source_file = b.path("std/map.aji") });
mod.addAnonymousImport("std_math_aji", .{ .root_source_file = b.path("std/math.aji") });
mod.addAnonymousImport("std_option_aji", .{ .root_source_file = b.path("std/option.aji") });