cli: add explicit bounded standard I/O composition
Add std.io exact stdin/file/TCP reads, bounded file read-to-end and limited file write/append copies. Use caller slices and resource loans, exact effects, explicit EOF/capacity/limit and confirmed partial progress. No implicit heap, open/close, timeout or new AIR/runtime semantics. Document failure limits and check hosted read errors and a partial external file write under a child-only file-size quota. Integrate normative contracts, RFC, source reference budgets, CLI/profile/package checks and independent byte/count/cursor vectors. Validation: 1027 conformance cases, 20 I/O GC cases, scheduled stress, unit/Quick Reference, formatting, hosted smoke, 55 CLI checks, 111 source coverage constructs and unchanged AIR reference bundle.
This commit is contained in:
1 parent
cfece6080c
commit
3e1c0f34e8
37 files changed
+1181
-6
No files matched your search
@@ -27,6 +27,8 @@ CHECKLIST = [
|
||||
("heap", "explicit order and bounded owning push", r"std\.heap\.push::<", True),
|
||||
("heap", "Copy peek and moving pop", r"std\.heap\.(peek|pop)::<", True),
|
||||
("heap", "explicit heap growth and drain", r"std\.heap\.(reserve|free)::<", True),
|
||||
("io", "exact reads with explicit effects and borrowed destinations", r"std\.io\.read_exact_(stdin|file|stream)\(", True),
|
||||
("io", "bounded file read/copy and explicit progress", r"std\.io\.(read_to_end_file|copy_file|copy_file_append)\(", 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