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

+2
View File
@@ -22,6 +22,8 @@ TESTS = os.path.join(ROOT, "tests", "conformance", "source")
CHECKLIST = [
("hashmap", "explicit general key policy and owning insert", r"std\.hashmap\.(insert|contains|get)::<", True),
("hashmap", "explicit general growth/extraction/drain", r"std\.hashmap\.(reserve|remove|pop|free)::<", True),
("hashset", "explicit membership and duplicate owner return", r"std\.hashset\.(insert|contains)::<", True),
("hashset", "explicit set growth/extraction/drain", r"std\.hashset\.(reserve|remove|pop|free)::<", True),
("static functions", "explicit callable contract", r"[A-Z]\w*: fn\(", True),
("static functions", "explicit named operation argument", r"(?:<|, )fn [a-z]\w*(?:\.|>|:)", True),
("static functions", "forwarded static operation", r"(?:<|, )fn [A-Z]\w*", True),