In Praise of Languages That Can't Do Everything
A contract language that cannot do everything is easier to trust than one that can.
What SCL refuses to do
OroBit's contract language, SCL, is deliberately not Turing-complete. No while loops, no floating point, no randomness, no system time, no dynamic dispatch, and no imports. Iteration is allowed only over concrete collections, recursion is capped by a 64-frame limit, and arithmetic uses 64-bit integers. There are hard ceilings of 100,000 instructions per call, a stack depth of 1,024, 64 KB of persistent storage per contract, and a 64 KB payload.
Interestingly, omissions are a feature. They say these aren't missing features, but the reason every SCL contract is cheap to verify and impossible to trap a node with. Bitcoin's own scripting language is intentionally not Turing-complete, with no loops, and it has been trusted with real money for years. So the pattern holds.
What the limits buy you
The first benefit is predictable cost. If every call has an instruction ceiling, the worst case is known before anything runs, and nobody can be surprised by an unbounded computation. The second is easier audit. A reviewer has fewer behaviors to reason about because the language removes whole categories: runaway loops, dependence on the clock, nondeterministic results, and code chosen at runtime. The third is cheap verification. Every node must replay every call, so a bound on the work bounds the cost of checking.
Not to oversell it, though. Limits do not make a contract correct, and logic errors survive in any language. They also rule some products out. Sixty-four kilobytes of storage per contract is generous for a ledger rule and tight for a data application. The honest claim is narrower. A bounded language shrinks the space where surprises can hide, and for settlement logic that is the space you most want to shrink.
There is a design lesson here for any team that writes rules. A system that can express anything has to be reviewed against everything. A system with a small, explicit vocabulary can be reviewed against a short list, and a reviewer who can finish the review is a reviewer who will actually do it.
The AI parallel
Enterprises are learning the same lesson with AI agents. An agent that can call any tool, spend any amount, and run for any length of time is an agent you cannot audit (and possibly control). The controls that work look a lot like SCL's ceilings: a budget, an allowed list of tools, a step limit, and a record of what happened. Those are constraints chosen on purpose, and they make the system easier to approve, not harder to use.
The constraint has to fit the job, though. I wrote about how uniform governance is how agents die, and the lesson carries over. A limit that is too tight for the task gets worked around, and a limit that is the same everywhere is wrong somewhere. SCL gets away with fixed ceilings because it has one narrow job.
Disclosure: I'm an investor in OroBit.