Compare · Embedded languages
Stof vs Starlark.
Starlark is a safe, deterministic configuration language that, by design, can't recurse or loop forever. Stof is a full document runtime: data, logic, types, and state that travel together and can change while they run, sandboxed with limits.
A deterministic dialect of Python for configuration, made for Bazel.
Just-in-time software: data and logic together, in one document that runs anywhere, sandboxed, in Rust, JavaScript, and Python.
What happens when…
Checked December 3, 2026. Sources: Starlark spec · Starlark in Bazel · Starlark in Rust. Something out of date? Tell us.
What you'd still build.
- Types, schemas, and units
- A way to send logic with its data
- Logic that changes while it runs
- Functions, types, units, and tests in the same doc
- Data, logic, and state in one document you can send anywhere
- Logic that changes at runtime, with no deploy
Choose Starlark for build and configuration files where determinism and guaranteed termination matter most.
Stof vs Starlark, answered.
Both are safe for code you didn't write. What's different?
Starlark is safe by limiting the language: no recursion or unbounded loops. Stof is safe by limiting what a document can reach and how long it can run, so the language can do more.
Also compared.
Try it in a minute.
npm i @formata/stof
pip install stof
cargo add stof