skip to the page

The runtime

Somebody has asked your page for a change. This section is everything that happens between the asking and the page looking different.

These pages assume you have read Building with Loom, or at least that you know what a primitive and a registry are. Each one takes a step of that sequence and answers the same three questions about it: what the runtime does, what it hands to your own code, and what a person sees when it goes wrong.

The pages in this section

Proposing a change and What the Gate decides are the two to read first, because everything else here happens either side of them. The rest are each about one thing the sequence touches, and they can be read when you need them.

14 pages, in reading order.

  • Proposing a change

    Nothing edits a page directly. An ask becomes a written plan of four kinds of operation, and only then is anything applied.

  • What the Gate decides

    Yes, ask a person, or no — and the two questions the runtime asks about a change before it answers.

  • Answering a held change

    The queue a person answers from: what is waiting in it, how to tell a change that can still be applied from one that cannot, and what saying yes actually does.

  • The history of a page

    Where a page lives, what the log records about every change that was applied, and why an undo is a proposal rather than a rewind.

  • Connecting a model

    The one step that guesses: what a model is shown, what it is allowed to say back, what a request costs, and who has to act when it fails.

  • When nothing comes back

    Loom waits for code you wrote in three places, and none of those waits is unbounded: what happens when a model, a source or an endpoint never answers, and how to change how long it is given.

  • What your app has to do

    The one function that writes, the seven ways a write can end, and what your own code owes a person for each of them.

  • What a form posts to

    A form in a tree names a destination and never carries one: how a page asks a visitor for something, where the address comes from, and what happens when nobody can supply it.

  • What every ask leaves behind

    The record of what was asked rather than of what happened: what a telemetry record keeps, the eight ways an ask can end, whether a confidence was worth anything, and how a journal is allowed to forget.

  • What your readers do

    A published page can report how it is being read — four kinds of signal, no content in any of them, and nothing switched on until your own code asks for it.

  • Going to production

    The three places a deployment keeps state, the tables Loom creates for them, and what your app is told when the database is not there.

  • How a change reaches readers

    A change somebody accepted is live without a deploy, because your server asks for it on a timer and keeps the answer: the three lines that start the loop, the one call your render path makes, and what a reader gets on the day Loom cannot be reached.

  • What a render reports

    Rendering never fails, so anything it could not honor comes back beside the page: every diagnostic a render can leave behind, what each one cost you, and which of three people has to fix it.

  • When something looks wrong

    Who put this node here, whether the page still matches its own history, and why a change nobody answered for three days can no longer be answered at all.

It assumes you want to run this for real

The rest of the site can leave out the database, the model and the waiting; this section cannot. A page here will tell you which table gets created, how long a call is given before the runtime stops waiting, and which of three people has to fix something that went wrong.

Where a page needs something from an earlier one, it links back to it rather than explaining it again.