cli: add explicit owning buffered file adapters
Add pinned std.io.reader and std.io.writer using safe source, explicit fixed allocation and file transfer. Finish/discard return complete resources; writer failures preserve pending data and prohibit unsound partial retries. Specify cursor, acceptance, failure and cleanup contracts in spec 16, RFC 0034, the API reference and source bundle. Add standalone conformance, independent byte oracles, task/GC stress, CLI/package/profile checks and hosted partial-write tests with a raised child quota to detect retries. Validation: 1061 conformance cases; 34 buffered cases with per-step GC and 12 schedule seeds; unit/Quick Reference, formatting, hosted smoke, 89 CLI checks, 115 source coverage constructs and reference generation.
This commit is contained in:
1 parent
3e1c0f34e8
commit
8d8bef8f3e
51 files changed
+1916
-8
No files matched your search
@@ -34,6 +34,8 @@ python3 tests/hosted/source_heap.py # explicit ordering, owning extraction and p
|
||||
python3 tools/heap_vectors.py # independent heapq traces and exhaustive small permutations
|
||||
python3 tests/hosted/source_io.py # bounded I/O, profiles, partial errors and explicit resources
|
||||
python3 tools/io_vectors.py # independent byte/count/cursor oracle for read/copy boundaries
|
||||
python3 tests/hosted/source_buffered_io.py # owning adapters, partial failures and no retry
|
||||
python3 tools/buffered_io_vectors.py # independent read-prefix and segmented-write bytes
|
||||
(cd tools/eval && python3 -m unittest discover tests) # evaluation harness self-tests
|
||||
zig fmt --check build.zig src tools
|
||||
```
|
||||
|
||||
Reference in new issue
Block a user