This guide describes the installation path that matches the current repository state as of April 22, 2026.
This repository already contains checked-in self-hosted compiler artifacts for Linux x86_64, macOS arm64, and macOS x86_64 under artifacts/self-hosted/. If you are working directly from this checkout, use the launcher at bin/souc; it selects the matching host artifact automatically.
cd /path/to/sounio
export SOUC_BIN="$(pwd)/bin/souc"
export SOUNIO_STDLIB_PATH="$(pwd)/stdlib"
"$SOUC_BIN" --version
"$SOUC_BIN" info
"$SOUC_BIN" check examples/hello.sio
"$SOUC_BIN" compile examples/hello.sio -o /tmp/hello.out
"$SOUC_BIN" compile examples/hello.sio -o /tmp/hello-macos --target aarch64-macosOn this repo snapshot, bin/souc is a host-aware launcher around the checked self-hosted artifacts:
- It provides compatibility commands:
check,compile,build,run,info, and--version - It also supports the raw self-hosted compiler interface:
<source.sio> <output> [flags] --target aarch64-macosand--target x86_64-macosemit Mach-O binaries--target aarch64-linuxemits Linux ARM64 ELF binaries- It still does not provide the broader omega-only workflows such as
repl,gpu-emit, or the full pinned-release tool surface
On macOS, the emitted binaries are Mach-O instead of ELF.
Run the conservative smoke tests:
"$SOUC_BIN" check examples/hello.sio
"$SOUC_BIN" compile self-hosted/compiler/lean_single.sio -o /tmp/souc-next
"$SOUC_BIN" compile examples/hello.sio -o /tmp/hello-macos --target aarch64-macos
"$SOUC_BIN" run self-hosted/compiler/native_print_f64_smoke.sioExpected behavior:
- the checked launcher resolves a host-native compiler artifact
- the compiler rebuild smoke produces a host-native binary
- the macOS-target compile produces a Mach-O ARM64 binary
- the runtime smoke prints the expected floating-point lines on the host OS
- emitted binaries must be executed on the matching target OS/architecture
If you need GPU-profile validation:
export SOUC_GPU_BIN="$(pwd)/artifacts/omega/souc-bin/souc-linux-x86_64-gpu"
"$SOUC_GPU_BIN" check examples/gpu.sio
"$SOUC_GPU_BIN" check tests/run-pass/gpu_launch_surface.sio
"$SOUC_GPU_BIN" build examples/kernel_matmul.sio --backend gpu -o /tmp/kernel_matmul.ptxUse the repo resolver:
scripts/omega/omega_resolve_souc_bin.sh --print-path --allow-local-fallbackThis resolves a pinned release binary and falls back to a local executable only when allowed.
- Do not assume
cargo buildat the repo root is the default setup path. - Always set
SOUNIO_STDLIB_PATHwhen you want deterministic stdlib resolution. - Prefer
souc checkwhen validating examples and docs claims. - The checked self-hosted launcher provides
check/run/compile/build, but broader omega workflows still require the pinned Linux release lane.
The current gate-backed status in this repo is:
artifacts/stdlib/stdlib_reliability_status.v1.json:81 pass / 0 fail / 1 skip / 82 totalartifacts/stdlib/stdlib_science_pipeline_status.v1.json:passforfmrianddarwin_pbpkartifacts/stdlib/stdlib_hyper_execution_status.v1.json:passfor 7 required hyper lanes
Local science runtime regression probes are still tracked in soft mode. Strict CI uses fail-closed enforcement.
docs/guide/MINIMUM_VIABLE_SOUNIO.mddocs/guide/getting-started.mddocs/reference/STDLIB_REFERENCE.mdbootstrap/poseidon/README.md