Skip to content

Hey devs

Our software is about to start changing while it runs. It had better be safe.

Our users are going to change their software themselves

Soon, nobody will call us to change a business rule. Our users will ask for it in their own words, often through an AI, and expect the change right away. That will not be a release any more but an edit to a rule.

It is time for those rules to live outside our delivery cycle.

Small pure functions are the safe place for that

A function on o = f(i) only reads its input and only returns its output. No network, no disk, no hidden state, no side effects. Whoever edits it, a person or an AI on their behalf, cannot break anything else.

Every change passes its cases before it goes live, and every revision is kept. A pure formula answers the same thing forever, so it can be cached and replayed. One that asks for the date can only be replayed.

Call it

Every function published here has its own address. JSON in, JSON out — plus a page to try it on and a specification a non-expert can sign off.

curl https://ofi.dev/@stdlib/loan.monthly-payment@1.0.0/call \
  -H "Content-Type: application/json" \
  -d '{"principal": 200000, "annualRatePercent": 6, "years": 30}'
{"monthlyPayment": 1199.1, "totalPaid": 431676, "totalInterest": 231676, "payments": 360}

That request and that answer are the formula’s first case, read from its bundle rather than written here. The examples already answer; publishing your own is what the waiting list opens.

All three faces — the call, the usage page, the specification — are generated from one Elo program: an expression language meant to be written by non-experts with an AI beside them, and re-read by those same people. No I/O, no loops, no recursion, no state. That is where termination and harmlessness come from.

Embed it

Elo compiles to JavaScript, Python and Ruby, and our API serves all three. Instead of calling the address, compile the function — on the fly, or during your own delivery cycle — and run it on your side. No network call at runtime.

Readable by whoever answers for it

A function fits on one screen. The user re-reads what they asked for, you review it, and an agent can write it without leaving the sandbox. Validating has to stay cheaper than writing. That is the only condition under which “AI writes, humans validate” holds up.

Where software is going

Our trade is changing, and AI will probably write a large share of the code. It is on us to make it write inside an architecture where users hold the controls without endangering themselves, and without an enormous security bill.

Join the waiting list