Quilt in the language that taught America to read. Tutor was the authoring system of the PLATO timesharing system — designed for teachers, by teachers. It ran on a system with 1,000 simultaneous users, where every user could see every other user's screen. It had rooms. It had dragons. And it had cells, before spreadsheets were invented.
Why Tutor first • Philosophy • What works • Workarounds • Deeper understanding
If you want to understand what Quilt really is, you have to understand Tutor.
Tutor was created at the University of Illinois in 1967 by Don Bitzer and a team of educators. It was the authoring language of the PLATO system — Programmed Logic for Automatic Teaching Operations. PLATO was a timesharing system that served 1,000 simultaneous users. Each user sat at a plasma display terminal with a touch screen. The system had:
- Notes files — a precursor to hypertext, where you could link any text to any other text
- Rooms — shared spaces where multiple users could see each other's work
- Lessons — authored educational content, broken into units, each unit a sequence of frames
- A multi-user world — multiple users could be in the same lesson, seeing each other's answers
- Supercode — a way to overlay executable code on any text
- For as the real backend — heavy computation went to Fortran, Tutor was the orchestration layer
Tutor's DNA is exactly Quilt's DNA:
| Tutor | Quilt |
|---|---|
unit |
cell (one expression of state) |
lesson |
sheet (collection of units with dependencies) |
lesson code |
formula cell (computation) |
showme |
value cell (input/output) |
arrow (goto) |
dependency (reactive edge) |
room (shared space) |
instance (federation node) |
note file (hypertext) |
cross-sheet reference (federation) |
| Fortran backend | @quilt/c (the low-level kernel) |
Tutor was the first agent-teaching-agent system. Teachers wrote lessons. Lessons taught students. Students wrote notes. Notes were shared with other students. Other students learned from those notes. The system was a network of cells before the word "cell" meant a spreadsheet.
This repo is the polyformalism exploration of Quilt's deepest historical roots. We implement the Quilt cell model in Tutor's idiom, in the language that was designed to teach people who weren't programmers.
The point of polyformalism isn't to port a library. The point is to discover what's essential by seeing what survives translation and what's accidental by seeing what doesn't.
When you implement Quilt in TypeScript, every reactive feature feels natural. The language was designed for it. When you implement Quilt in Tutor, you discover which features are incidental to modern hardware and software culture and which are essential to the model.
The things that work crazy well in Tutor:
- Multi-user cells by default. PLATO was a timesharing system. Every "cell" was visible to every user in the same room. There's no concept of "private cell" — that's an accidental feature of single-user computing.
- Cross-sheet references via the note file system. Tutor's
notesystem was the first graph-of-documents. Quilt'squilt://URI scheme is a direct descendant. - Frame-based state machines. A Tutor lesson is a sequence of frames with conditional arrows between them. Quilt's reactive cell graph is a frame-based state machine where the conditions are data dependencies.
The things that need crazy workarounds:
- No first-class functions. Tutor's
arrowis goto, not lambda. You can't write a formula cell in the modern sense. You write asubroutineand call it fromdostatements. This forces a more imperative style. - No JSON. Tutor had
shareandarrowfor cross-references, but no nested data structures. Cells can hold numbers, text, and lists, but not rich objects. - No closures. You can pass arguments to subroutines, but you can't capture state. The reactive system is a global namespace.
- For backend only. Heavy work goes to Fortran via
do fortran. Quilt'sformulacell becomes alessonwithdo fortrancalls. - No async. PLATO was synchronous by design. The "reactive" part of Quilt is implemented as a polling loop, not a callback chain.
Tutor's rooms give you multi-user cells for free. Every cell in a room is visible to every other user. When one user changes a cell, every other user sees the change on their next refresh.
lesson quilter
unit main
arrow main1, main2
unit main1
text "What's your name?"
answer name
arrow :main2
unit main2
text "Hello, $name. You're in a room with the other quilters."
text "You can see their answers. You can change your answer."
arrow :main1
end
Two students in the same PLATO room see each other's name cells. There's no API call, no WebSocket, no federation code. The terminal just refreshes.
Polyformalism insight: Quilt's federation model is reinventing something Tutor had in 1970.
Tutor's note files were the first persistent cross-document references. You could write see note.foo and the system would jump to that note. If the note changed, the reference would still resolve.
note quilter-faq
text "Quilt cells are reactive. Change a value, formulas recompute."
see note.cells
see note.formulas
end
note cells
text "A cell is a unit. A value, formula, or listener."
end
Polyformalism insight: quilt://[instance]/[sheet]#[cell] is the same idea. Notes were content-addressed by file path, not by hash, but the model is the same.
Tutor's arrow statements are conditional gotos. You write arrow :next to go to the next frame, arrow :error if $x<0 to branch on a value. The lesson IS a state machine.
lesson budget
unit start
do read.income
do read.expenses
arrow :compute
unit compute
do fortran.savings (income, expenses, savings)
arrow :display
unit display
text "Income: $income"
text "Expenses: $expenses"
text "Savings: $savings"
arrow :start
end
The reactive loop is: read inputs → compute → display → wait for next change. The arrow :start at the end is the "re-evaluation" cycle. When the user changes a value, the lesson restarts.
Polyformalism insight: Quilt's reactive engine is a frame-based state machine where the transitions are data dependencies, not user clicks. The lesson loops on its own when inputs change.
Tutor has no lambdas. So Quilt's formula cell becomes a lesson with a do fortran call.
Modern (TypeScript):
{ path: 'total', kind: 'formula', fn: (ctx) => ctx.a + ctx.b }Tutor (1970s):
lesson quilter
unit compute
arrow :compute_total if $a and $b
arrow :display
unit compute_total
do fortran.total ($a, $b, $total)
arrow :display
end
fortran subroutine total(a, b, result)
integer a, b, result
result = a + b
return
end
Workaround: Each formula cell is a lesson + a fortran subroutine. The formula's "computation" is the Fortran call. The reactive edge is the arrow chain.
Insight gained: Formulas as subroutines (not lambdas) is the natural shape. Lambdas are an optimization for the modern CPU, not an essential feature of the model.
A Tutor cell can hold a number, a text string, or a one-dimensional list. That's it.
Modern (TypeScript):
{
path: 'config',
kind: 'value',
value: { retries: 3, timeout: 5000, tags: ['critical', 'api'] }
}Tutor (1970s):
unit config
text "retries: 3"
text "timeout: 5000"
text "tags: critical,api"
end
Workaround: Each "nested field" becomes a separate unit. The tags list is a comma-separated string.
Insight gained: JSON-style nested data is a convenience for the runtime, not for the model. A Quilt sheet is fundamentally a flat set of (path, value) pairs. The hierarchy is in the paths, not the data.
PLATO was a synchronous timesharing system. The CPU was shared by 1,000 users, but each user got a time slice. There was no "callback" — just wait for the next turn.
Modern (TypeScript):
{ path: 'user_data', kind: 'api', endpoint: '...', async: true }Tutor (1970s):
unit wait_for_api
arrow :wait_for_api if not $api_done
arrow :process
unit process
do fortran.api_call ($api_endpoint, $api_response)
arrow :display
end
Workaround: Polling. The lesson loops, checking if the response is ready, until it is. There's no "fire and forget."
Insight gained: Async/await is a way to avoid blocking. PLATO had a different way: time slices. The reactive engine doesn't actually need async — it needs the ability to defer evaluation. A polling loop in Tutor is a callback chain in Node.
A subroutine in Tutor has explicit arguments and a global namespace for shared state. There's no way to capture a variable.
Modern (TypeScript):
{ path: 'savings_rate',
kind: 'formula',
fn: (ctx) => {
const rate = ctx.savings / ctx.income;
return rate;
}}Tutor (1970s):
lesson savings_calc
unit compute
do fortran.divide ($savings, $income, $rate)
arrow :display
fortran subroutine divide(numerator, denominator, result)
real numerator, denominator, result
result = numerator / denominator
return
end
Workaround: All state is global. All computations are explicit subroutines with arguments.
Insight gained: Closures are syntactic sugar for "a function with state." Tutor doesn't have the syntax, but the model is the same — you have a state and a function over that state.
After implementing Quilt in Tutor, the following insights emerge:
-
The cell is older than the spreadsheet. VisiCalc was 1979. PLATO's units were 1970. The concept of a "single addressable unit of state" existed before the graphical spreadsheet.
-
Multi-user is the default, not the feature. PLATO assumed 1,000 users could see each other. Modern web frameworks assume one user, one browser. Quilt's federation model is a return to the older default.
-
Cross-references are content-addressed. Tutor's
note.fooand Quilt'squilt://...#...are both stable identifiers for shared content. Content addressing is not a blockchain idea — it's a 1970s idea. -
The "imperative workaround" is sometimes better. Tutor's
arrowchain is more verbose than a lambda, but it's also more debuggable. You can step through a Tutor lesson frame by frame. You can't step through a TypeScript reactive graph as easily. -
The reactive engine is a state machine, not a callback chain. Tutor's frame-based model is a closer match to the underlying reality than Node's event loop. We're using callbacks because CPUs are fast, not because they're a good model.
-
Agent-teaching-agent was the original use case. Tutor was designed for teachers writing lessons for students. The "students" were not just human — they were also other agents (Tutor lessons could be authored by one agent and consumed by another). This is the original A2A (agent-to-agent) framework.
🎓 Education — A teacher authors a Quilt sheet. Students load the sheet. The teacher's formula cells compute grade boundaries. The students' value cells are their answers. The students' listener cells notify the teacher when answers change. This is the original PLATO use case, restored.
📚 Knowledge management — A team of researchers maintains a Quilt sheet of related concepts. Each concept is a value cell. Each "is a kind of" relationship is a formula cell. The sheet IS the ontology. Changes propagate. This is what Tutor's note files were doing in 1970.
🛡️ Compliance training — A compliance officer authors a Quilt sheet with regulations. Each regulation is a value cell. Each "this regulation applies to this case" rule is a formula cell. An employee enters their case as value cells. The sheet computes "applicable regulations" and the employee sees only the ones that matter. This is what PLATO was used for in corporate training.
🤖 Agent training — One agent authors a Quilt sheet describing a task. Another agent loads the sheet and executes the task. The first agent's listener cells observe the second agent's behavior. This is agent-teaching-agent, the way it was always meant to be.
The Tutor language is preserved in archives. To run Quilt in Tutor, you need:
- A PLATO IV emulator (CDC Cyber 175 emulator exists)
- The Tutor compiler
- A Fortran 77 compiler for the backend
Or you can read the source in src/quilter.lesson and src/quilter.f to see how the model is expressed.
quilt-tutor is the polyformalism foundation of Quilt. The 11 language versions of Quilt (this one included) all express the same model, in different language constraints. Together, they reveal what's essential and what's accidental.
The full polyformalism stack:
- quilt — the canonical TypeScript version
- quilt-tutor — the 1970s foundational version (this)
- quilt-pydantic-ai — the production Python version (modern equivalent of Tutor)
- quilt-mojo — the systems-fast version
- quilt-julia — the scientific computing version
- quilt-chapel — the HPC version
- quilt-cobol — the business legacy version
- quilt-c — the bare-metal version
- quilt-cpp — the systems modern version
- quilt-csharp — the enterprise version
- quilt-metal — the GPU version
- quilt-swift — the Apple ecosystem version
If you want to understand what Quilt really is, this is the version to start with. The cells are simpler. The state is more visible. The model is closer to the metal. Once you see Quilt in Tutor, the TypeScript version will look like a polished version of the same thing — not a different thing.
And if you ever wondered what the original "agent-teaching-agent" framework looked like, it's right here. PLATO was doing it in 1970. We're just catching up.
Apache 2.0. See LICENSE.
The original cell was a lesson unit. The original cell graph was a lesson. The original federation was a room. Quilt is the modern restoration.
