Quickstart
Build and run the examples
From the repo root:
zig build examples
The Zig build installs binaries under zig-out/bin/.
Expected example binaries:
zig-out/bin/zig-example(source:examples/zig/ping.zig) — minimal spawn + stopzig-out/bin/zig-typed-actor(source:examples/zig/typed_actor.zig) — typed wrapper examplezig-out/bin/zig-supervisor(source:examples/zig/supervisor.zig) — restart modes + deterministic driverzig-out/bin/zig-echo-server(source:examples/zig/echo_server.zig) — I/O watchers + TCP echo
Suggested run order:
./zig-out/bin/zig-example./zig-out/bin/zig-typed-actor./zig-out/bin/zig-supervisor./zig-out/bin/zig-echo-server 5555and thennc 127.0.0.1 5555
Deep-dive walkthroughs (with code snippets + explanations):
Stress tool (optional)
From the repo root:
zig build stress
This runs the smoke variant by default. You can also run the installed binary directly:
./zig-out/bin/jzx-stress --smoke
Deep dive:
C examples
The repository includes plain C examples under examples/c/.
If you prefer compiling them directly (bypassing Zig), see the commands in the repo root README.md.