The Context is the Source is the Context

When I used to work in teams of software developers, I noticed that for most people, the best documentation got written at two particular times: when they just joined, and when they were about to leave.

People who just joined are trying to work out what is going on. They surface assumptions, inconsistencies and unwritten rules.

People on the way out have years of experience with internal systems. They can capture the why of particular design decisions, protect their soon-to-be-former teammates from hidden landmines, and think about the legacy of their time in the team.

Peter Naur’s idea of programmers building a theory of the code seems pretty explanatory here. On the way in, people are actively building a theory of how the systems work, so it’s easier to write down parts of it explicitly. On the way out, people let go of operational work, and can give themselves biographic permission to generalise a little and pass on key concepts, perhaps at the request of one of those new joiners.

The LLM coding agents being so widely used at the moment have an extreme form of this dynamic. Context window sizes mean they only learn over quite short spans of interaction, and then the context is lost.

As the common developer joke goes, it’s like pair programming with the guy from Memento.

Dominic Fox has been writing an amused, considered series of posts about his experiences working with coding agents at codepoetics. There were posts on building a music synthesizer, on literary pastiche, and the many connections between LLMs and French continental philosophy. And then one post made me write a new programming language.

I took [Naur] to mean that the program itself is the material trace of a process of theory-making, such that the program “bears out” the theory in its own structural idiom. What he actually means is that the activity of programming is one by which programmers form theories in their own minds. The theory does not “live” “in” the program. The program is if anything a sort of dead residue, logic without sense.

The language I built, and am still building, is called notlob. This post is about inspirations for the design. For those more interested in the technical details, here are the git repository and the technical paper.

The question behind notlob is: how can we engineer a program so that everyone and everything working with it grasps the theory of the program?

Fox again:

For me, as I said at the beginning, “programming as theory-building” suggests that the program itself is a relay of thought, a way of throwing the nerves in patterns on a screen. “Theory” is not properly located in individual programmers’ brains, but disseminated among people, organisational structures, exocortical artifacts such as source files, documentation, and running systems.

And sure, the big platform harnesses write memory files to their little private scratch area now, and that does help a bit. And you can write your AGENTS.md and your DESIGN.md and your WATERFALL.md, and they help a bit too. But why pretend that memory – that context – is not part of the system? Those memories are part of the computational and linguistic material from which we engineer. Those markdown files are simply those parts of the program which are literature.

So we might well ask the question: what is source code? My LLM-informed answer is: source code is the bounded, legible input to tools that results in an executable system. The source is the context is the source.

Programming has been here before. Knuth’s literate programming is a technique and set of supporting tools for writing programs that read like literature. Knuth and Naur both recognise the need for a theory of the system, but they disagree violently on where it might be held. For Naur, it’s only in the brain of the programmers working on the system. Even a second team of programmers may have great difficulty rediscovering the theory of the system, even given specs, designs and source code. For Naur, the code is a relic, traces of a departed Derridean spectre. You had to be there, man. What happens in Dev Vegas stays in Dev Vegas.

Knuth is rather less pessimistic. He returns to writing, the antique tech for transmitting information through time and space. Specifically, he turns to the essay, the Enlightenment genre for working through an idea and planting an understanding of it in all the peer intelligences that might read it.

Specification Driven Development is a kind of enthusiastic overreaction to the invention of machine literacy. It is the end of a spectrum where source code can somehow be all theory, and precise determinism is just a compilation pipeline artifact. I don’t buy it. What’s more, it feels like cover for the oldest failure in the book, the wish to dismiss inconvenient technical detail. Code is too useful and too fundamental to give up for long, and if suppressed it will just be reinvented in another place.

Computing is cyclical; the shapes of old solutions reemerge as the balance of forces shift. Our new era of literate machines is the right time to revive literate programming.

The notlob gambit is to work on rethinking what a programming language is. Concise and expressive executable artifacts provide structure that helps LLM agents be productive. Formal predicates and other declarative schemas can be particularly useful. But neither prose nor code will work alone. The machinery of an entirely formal system can only provide evidence of consistency, not the connections to messy physical and social domains where software changes the world.

What this often looks like in notlob, as in a well-written technical report, is a prose statement, some code, perhaps an invariant (as a property test), and a runnable example. They are colocated because it makes the code easier to read as an essay, and because it is cheap to slurp them up together in the same context read.


## Plausible Range

The paper places Mytilene on the range's lower eastern slopes, "at an
altitude between 200m and 900m," without settling on one figure — and
`_horizon_profile` above only tells us the horizon as seen from the one
coordinate we queried, not from anywhere else on that slope. A real
resurvey would need actual candidate coordinates further up the hillside,
which we don't have. As a cheaper, if narrower, proxy we instead ask how
much the horizon changes over the azimuth range immediately around
Alcyone's own setting bearing: a steep local profile there would suggest
nearby sites plausibly see quite different horizons, while a flat one
suggests they don't. PVGIS itself only samples every 7.5 degrees, so the
comparison has to span at least that far — anything narrower would just
be re-reading `_horizon_elevation`'s own straight-line interpolation
between two fixed endpoints, not a second measurement of the terrain.

    PVGIS_SAMPLE_SPACING_DEGREES = 7.5

    def _setting_azimuth_degrees(location, astro_ref, date):
        _, azimuth = _altaz_degrees(
            _star(astro_ref), location, _local_midnight(date, location))
        return azimuth

    def _horizon_sensitivity_degrees(location, astro_ref, date,
                                      delta=2 * PVGIS_SAMPLE_SPACING_DEGREES):
        azimuth = _setting_azimuth_degrees(location, astro_ref, date)
        base = _horizon_elevation(location, azimuth)
        return max(abs(base - _horizon_elevation(location, azimuth + delta)),
                   abs(base - _horizon_elevation(location, azimuth - delta)))

~example
    _horizon_sensitivity_degrees(
        MYTILENE, PLEIADES_ALCYONE, HistoricalDate(570, 1, 26, "BC")) < 1.0

From project Pleiades.

The joints between a domain and the executable formalisms of code that operates on it are the names. Programming lore already recognises the importance of naming things – one of the two hardest things in computer science according to Phil Karlton. If it is a difficult leverage point for embodied human intelligences, consider how much more crucial it is for literate machines whose entire training and inference input is words. (And what is a context window but a form of cache invalidation?) Before LLMs, I already argued for the Confucian primacy of the rectification of names in software, which I termed Name Oriented Software Development. Bringing prose into the scope of the compiler allows machine checkable consistency, at the symbol level, the synonym level, and at more abstract levels. For example, notlob can check whether “always” in prose is accompanied by a neighbouring predicate. LLMs and humans can then do checks and rechecks on whether the predicate makes any sense, or is just a glorified unit test without generalisation. If Confucius and Xunzi give us the rectification of names, and Wittgenstein gives us meaning-as-use, notlob reinforces that constructed meaning by enabling and validating that use.

This leads to the main internal data structure in notlob, the name-graph. The name-graph is an extended parse tree that includes headings, prose, code, predicates, and unit tests, as well as meta-information on how the program is bound together. Notlob allows related concepts to be close to each other in two dimensions: the serial read distance of the file, and the edge traversal of the name-graph. The name-graph is explicitly made available to LLMs through tooling, allowing search to follow the structure of the program, not just the filesystem.

This observation of both formalism and reality from multiple perspectives is inherent to software. Rice’s theorem states that all non-trivial semantic properties of a program are undecidable. That puts a harsh theoretical limit on formalism. William Wimsatt argues that our very concepts of reality and meaning include robustness, of stability under observation from multiple perspectives. “Our concept of an object is of some thing knowable robustly.” We do the same thing in good software. We have the code, and the tests, and feedback from users; perhaps specs and designs, whiteboard sketches, bug reports, lunch conversations. Some of these we can relate with full formal consistency. Some of it is precise technical natural language. Some of it is vibes. We can never fully solve these different elements to catch every verification or validation bug; let alone those moments in development that are not bugs so much as pulling a system out of inchoate desires and interactions. What we can do is have these different incomplete elements perform harmoniously in a theatre of execution and meaning. Indeed, if we use Simondon’s jargon, source code is always a technical object that connects multiple milieus. With an LLM involved, one of those is code and one of them is prose. (And poetry is always hiding somewhere in prose.)

That machines can now read the prose is marvellous, and it also means that the prose is now part of the source code in a way it never was before. The prose that explains why a particular shortcut in executable code is wrong is the necessary context to a machine changing that system. But the existing executable code is also necessary context for that change. The context is the source is the context.


References

Naur (1985) – Programming as Theory Building.

Dominic Fox (2026) – Holding A Theory.

Knuth (1984) – Literate Programming.

Adam Burke (2026) – A Literate Programming Environment for Human and Machine Agents.

Adam Burke (2026) – Confucian Software.

GitHub (2025) – Spec Kit.

Rice (1953) – Classes of Recursively Enumerable Sets and Their Decision Problems.

Wimsatt (2007) – Re-Engineering Philosophy for Limited Beings.

Simondon (1958) – On the Mode of Existence of Technical Objects.