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:
1 parent
7743f515c5
commit
4716cda0f1
43 files changed
+2696
-7
No files matched your search
@@ -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),
|
||||
|
||||
Reference in new issue
Block a user