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
+1
-1
@@ -13,7 +13,7 @@ Non-normative. How the reference implementation is tested. Policy (what must be
|
||||
| Schedule stress | via runner flags (from P3) | `zig build conformance -- --schedules=N` | randomized and systematic interleavings |
|
||||
| Native parity | (from P7) | `zig build parity` | interpreter and native backend agree on the whole corpus |
|
||||
|
||||
Unit and conformance exist today; conformance covers accept, reject and run tests.
|
||||
Unit, conformance and hosted smoke tests exist today; conformance covers accept, reject and run tests in the deterministic profile, and `tests/hosted/smoke.py` checks observable effects (files, streams, sockets) of hosted runs.
|
||||
|
||||
## Conformance tests
|
||||
|
||||
|
||||
Reference in new issue
Block a user