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.

Fox (2026) – Holding A Theory.

Knuth (1984) – Literate Programming.

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

Burke (2026) – Confucian Software.

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.

Persistence and the Owl Framework

I always find it interesting to dig into the problems pioneers in a field thought they were solving. So too with the origins of NoSQL and non-relational databases. This excerpt is a taster.


I know that, for many, our age is attempting to flee SQL […] But truly to escape SQL involves an exact appreciation of the price we have to pay to detach ourselves from it. It assumes that we are aware of the extent to which SQL, insidiously perhaps, is close to us; it implies a knowledge, in that which permits us to think against SQL, of that which remains SQL. We have to determine the extent to which our NoSQL is possibly one of its tricks directed against us, at the end of which it stands, motionless, waiting for us.

Mike Foucault, CTO of blurple.com, “Agile Eventual Web Transactions In MongoDB”, NoSQL Now! Conference, 2015
Michel Foucault, CTO, blurple.com

The whole talk is worth digging up.

There Are No Good Philosophers of Software

There are no good philosophers of software.

There is some good philosophy inspired by software, or on the society created by software, or on how software changes the way we think.

There is no good philosopher of software construction.

That is the provocation I threw out on Twitter in response to Hillel Wayne‘s excellent prompt, two and a bit months ago.

The provocation got some attention, and what I was hoping for even more, some excellent responses, and suggestions for new things to read. It definitely highlighted some gaps on my side. But I honestly do feel there is a hole where the philosophy of software construction should be, and that the world feels this lack keenly, especially when we consider how ubiquitous software is in sensing, controlling, and mediating that world. So I’ve recapped the original thread below, as well as some good responses to the original prompt, especially ones that point in interesting new directions.


Deleuze and Guattari describe philosophy, as distinct from art and science, as the creation of concepts.

Cover of Wimsatt - Reengineering Philosophy for Limited Beings

Hillel (the OP) thinks deeply and reads broadly on software construction. I would argue that there is no writer creating deep concepts for software construction as part of a larger project.

This isn’t really an anomaly. It’s because there is very little philosophy of engineering.

The two really compelling books I would put in that category are Simondon’s On the Mode of Existence of Technical Objects and Wimsatt’s Re-Engineering Philosophy For Limited Beings. Simondon only had readily available English translations relatively recently, and should be read more. This book analyses how machines improve through being recomposed in their broader context (milieu). A key concept is concretisation: replacing theory with realized parts. Wimsatt is great and you don’t have the translation excuse. He also touches on software and programming, but is not really a philosopher of software. A key concept is “ontological slime”, spaces of symbolic irregularity which have no simple organizing theory.

Otherwise, there is philosophy which theorises software and uses its concepts to describe the world – such as Sadie Plant’s Zeroes and Ones, or Benjamin Bratton’s The Stack.

There is writing which gives a sense of what computation is – such as Hofstader’s Gödel, Escher, Bach. “Strange loop” counts as the creation of a concept, so it is philosophy, or maybe theory-fiction. Laurel’s Computers as Theatre also fits here.

Cover of Simondon - On The Mode of Existence of Technical Objects, Mellamphy trans.

There is philosophy on the ethics of software, which is mainly about telling programmers what to do. This is fine so far as it goes, but not really a philosophy of software, and often not very software-specific.

There is philosophy written by mathematicians and computer scientists on the impact of computing: Turing’s paper Computing Machinery and Intelligence, and many such contributions since.

There is philosophy which sees computation as fundamental to the universe and intelligence, like Reza Negarestani’s Intelligence and Spirit.

There is philosophy which uses computation, like the analytical philosophers who write Haskell and develop theory provers like Coq, or Peli Grietzer’s Theory of Vibe.

There are software design guides which attempt to go up a level of abstraction, like Ousterhout’s A Philosophy of Software Design.

Then there are drive bys and fragments. Yuk Hui’s On The Existence of Digital Objects builds on Simondon and is probably in the neighbourhood.

James Noble’s classic talk on Post-Postmodern Programming:

Some work on computational materials by Paul Dourish, like The Stuff of Bits, and blog posts on the topic by Harrison Ainsworth and Carlo Pescio.

Abramsky’s paper Two Questions on Computation. Some essays in the Matthew Fuller edited Software Studies: A Lexicon. Other uncollected ramblings on blogs and Twitter.

But there is no coherent project created by a philosopher of software, such that I could point to a book, or ongoing intellectual project, and say “start there, and see your everyday world of software construction differently”.


The Project

A number of people pointed out that this long list of negations didn’t include any positive statement of what I was looking for. Let me fix that. A good philosopher of software would have:

  1. A coherent project
  2. That is insightful on the machinic internals of software
  3. In communication with philosophy, and
  4. That recognises software design as a social and cognitive act.

Hopefully that explains why I left your favourite thinker out. At least for some of you.


Misses

There are a couple of big misses I made in this informal survey of software-adjacent philosophy. There are some other things I deliberately excluded. And there were things I never heard of, and am now keen to read.

I got mostly software people in my replies, and a number of them brought up William Kent’s Data and Reality. I have read it, I think after Hillel’s enthusiastic advocacy for it in his newsletter. ((Personally I thought it was ok but not mindblowing. However, I listened to it on audiobook, which is definitely the wrong format for it, and in one of the late, mutilated editions.)) I would place it as a book in the Philosophy of Information, albeit one not really in communication with philosophy more broadly. The Philosophy of Information is definitely a thing in philosophy more broadly, one most associated with the contemporary Oxford philosopher Luciano Floridi. You can get an overview from his paper What Is The Philosophy of Information? Floridi has written a textbook on the topic, and there’s also a free textbook by Allo et al, which is especially great if you’re poor or dabbling.

I think there’s a lot that software people can learn from pretty much anything in my list, and the Philosophy of Information does shed light on software, but it only rarely addresses point (2) in my criteria: it does not give insights into the machine internals of software. Some of it is tantalizingly close, though, like Andrew Iliadis’ paper on Informational Ontology: The Meaning of Gilbert Simondon’s Concept of Individuation.

I also should have mentioned the Commission on the History and Philosophy of Computing. Though it isn’t really a single coherent intellectual project in the sense I mean above, it is an excellent organisation, and the thinking that comes out of this stream is most reliably both in communication with philosophy and insightful about the machine internals of software. This paper by Petrovic and Jakubovic, on using Commodore64 BASIC as a source of alternative computing paradigms, gives a flavour of it.

It wasn’t mentioned in the thread or the responses, but I’ve recently been enjoying Brian Marick’s Oddly Influenced podcast, which takes a critical and constructive look at ideas from the philosophy of science, and how they can be related to software. Often, given his history (he is that Brian Marick), he’s reflecting on things like why Test Driven Development “failed” (as in, didn’t take over the world in its radical form), or how the meaning of Agile has morphed into a loose synonym of “software project management”. That makes it sound like just a vehicle for airing old grievances: it’s very far from that, and always constructive, thoughtful, and ranges across many interesting philosophical ideas.

I mentioned Media Theory thinkers via Software Studies (which even includes Kittler), but it’s worth noting that media theorists have been thinking about software quite seriously, and there is some useful dialogue between software construction and design theory, usually restricted to the context of user interfaces. Wendy Chun’s Programmed Visions and Lev Manovich’s Software Takes Command are good examples. I first read Simondon because Manovich recommended it in an interview I no longer have to hand. And other people gave Kittler’s There Is No Software paper the name check it deserves.

Others pointed out that the Stanford Encyclopedia of Philosophy is rigorous, free, and has an article on the Philosophy of Computer Science.


Glorious Discoveries

The discussion unearthed some books and papers that look pretty great, but I hadn’t even heard of, let alone read.

  • Kumiko Tanaka-Ishii – Semantics of Programming
  • Federica Frabetti – Software Theory: A Cultural and Philosophical Study
  • M. Beatrice Fazi – Contingent Computation: Abstraction, Experience, and Indeterminacy in Computational Aesthetics
  • Reilly – The Philosophy of Residuality Theory

And a suggested side-quest from philosophy of engineering

  • Walter G. Vincenti – What Engineers Know and How They Know It: Analytical Studies from Aeronautical History

A Conciliatory Postscript

We can imagine both a broad and a narrow definition of the Philosophy of Software. In the broad definition, most things in this post would be included. And yes, academics, if there were a hypothetical undergraduate subject on the philosophy of software, it would probably be best to use the broad definition, and expose young developers to a broad collection of ideas about the way software works in the world. So I am not completely sincere in my provocation, but I’m not utterly insincere either.

There are delicate and intimate connections between software construction and philosophy. Consider the tortured, necessary relationship that both philosophers and programmers have with names, with intuition, or with causality. The possibility of exploring these connections, and inventing new concepts, gets swamped. It gets swamped by illiteracy and thinkpiecery on the software side, and by mechanical ignorance on the philosophy side. The narrow definition of the philosophy of software, and the recognition that there is no coherent philosophy of software construction, brings it back into view.