Phase 2: hosted profile (P2-8a)
- src/interp/host.zig: real console, files (scope checked before any host call, positional reads/writes, append from file size) and TCP through std.Io; monotonic clock and host CSPRNG; host errors mapped to the closed io_error set; open handles released at the end of the instance - interpreter dispatches intrinsics to the host or the deterministic world; never reports blocked in the hosted profile - CLI: --profile hosted; the program owns stdout/stderr, the run record goes to --result-file, otherwise a human summary on stderr - spec 11 §8.0: host error mapping table - tests/hosted/smoke.py (file copy, scope denial, stdin->stdout, TCP echo on a free port) runs in CI - works around Zig 0.17 net.Stream.read not compiling by using readWithControl
This commit is contained in:
1 parent
008654999e
commit
36e91be84c
10 files changed
+530
-51
No files matched your search
@@ -18,3 +18,4 @@ jobs:
|
||||
- run: zig fmt --check build.zig build.zig.zon src tools
|
||||
- run: zig build test --summary all
|
||||
- run: zig build conformance
|
||||
- run: zig build && python3 tests/hosted/smoke.py
|
||||
Reference in new issue
Block a user