Skip to content

Running Programs

Joe Curlee (w4ffl35) edited this page Jan 31, 2026 · 13 revisions

Running Programs

Curlee’s execution model is:

  1. curlee check (static pipeline + verification)
  2. curlee run (only if check passes)

Determinism

Curlee’s VM is designed to be deterministic (see Glossary): given the same bytecode and inputs, it produces the same results.

Resource bounds (fuel)

Execution is resource-bounded via a fuel budget (see Glossary). When fuel is exhausted, the VM halts deterministically.

By default, the CLI uses a fixed deterministic fuel budget (10000) when running bytecode.

You can override it:

curlee run --fuel <n> <file.curlee>

If fuel is exhausted, curlee run fails with a runtime error message that includes out of fuel.

Runtime errors and spans

Runtime failures include an error message and (when available) a source span (see Glossary) derived from opcode span mapping.

Notes

  • Verification is separate from execution: a program that cannot be proven within the supported fragment is rejected.
  • Capabilities (see Glossary) are part of the long-term model; see Stdlib and Capabilities.

Clone this wiki locally