dust is the compiler and toolchain entrypoint for the Dust Programming Language (DPL).
This repository contains:
- the DPL specification (
spec/) - reference examples (
examples/) - the
dustcompiler implementation (Rust)
- DPL specification: v0.1 (frozen)
- Compiler: v0.1 (executable milestone reached for K-regime subset)
The compiler can produce native executables (ELF / Mach-O / PE) for a constrained, spec-aligned subset:
- Entry point:
K main { ... } - Supported statements (in
main): orderedemit "<string>"effects - Output: native executable that runs on the host OS/architecture
This subset exists to prove end-to-end correctness:
.ds → parse/check → DIR → object → link → executable → run
- Q-regime (linear): backend + conformance tests
- Φ-regime (admissibility): backend + witness/constraint tooling
- Expanded K-regime statements (still deterministic and auditable)
cargo run -p dust -- build examples/K/k_hello_world.ds
./target/dust/k_hello_worldExpected output:
Hello, Dust
cargo run -p dust -- build examples/K/k_multiple_emits.ds
./target/dust/k_multiple_emitsGitHub Actions is used as the primary verification loop when local CI is unavailable.
The CI workflow:
- builds the workspace
- runs unit tests
- compiles
.dsexamples into native executables - executes the produced binaries and asserts output
Dust Open Source License
© 2026 Dust LLC