There is nothing more propositional than computer code. It states everything clearly and without any ambiguity. If you're a computer that is. If you're a computer you take the code and execute the instructions as written. Sure, it may take a few layers of interpretation before it gets from echo(results) to the machine code that eventually echos the results, but there's nothing left unspecified along the way.
But you if you are a human being or even if you are a large language model, things are different. The code means things. It means a lot of things.
Here's Andrej Karpathy on how he codes (his most important code) with Large Language Models in Cursor:
I find that writing concrete chunks of code / comments myself and in the right part of the code is a high bandwidth way of communicating "task" specification to the LLM, i.e. it's primarily about task specification bits - it takes too many bits and too much latency to communicate what I want in text, and it's faster to demonstrate it in the code and in the right place.
The mind of a programmer - particularly one who writes at a low enough level like Karpathy - is full of schemas that are best expressed in code rather than the intermediary medium of human language. And the mind of a Large Language Model is the same in reverse. Sometimes it really best understands what you want when you give it instructions in computer code or something that looks like code.
But a language model is much more like a simulated human than a simulated computer. When you give it instructions like:
I want you to use
print(results)instead ofecho(results).
it will have all the right schemas in its LLM brain to make it possible for it to know all the layers of meaning behind a statement like this. Here's a very short extract from Qwen3:8b model's chain of thought when I gave it the prompt above:
Okay, the user wants me to use print(results) instead of echo(results). Let me think about how to approach this.
First, I need to understand the context. They might be working with a programming language where echo is used, like PHP, but they want to switch to a different language or environment where print is more appropriate. For example, in Python, print is used, whereas echo is a PHP function. So maybe they're transitioning from PHP to Python or another language.
Alternatively, they could be using a framework or tool that uses echo for output, and they want to change it to print for consistency or specific reasons. I should check if there's a specific language or environment they're referring to.
The model knows all the layers of meaning behind a statement and also knows that there is a communicative intent and it tries to figure out what that intent could be. This is very different from what a computer does when it sees print(results). It doesn't have any layers of meaning, it just translates it into machine code[1] and executes it. But because the language model had all those layers of meaning, after deliberating, it gave me a long answer starting with:
To replace
echo(results)withprint(results), you need to adjust your code to use theprint()function instead ofecho(). This is commonly done in languages like Python, whereprint()is the standard output function, whereasecho()is used in PHP.Here’s how you can do it:
But a sentence like the one I use to talk to the model about my programming preferences is not the only way to communicate what I want. I could also express it this way:
{
"instruction": "Output Preference",
"requirement": {
"required_output_format": "print",
"forbidden_output_format": "echo",
},
"example": {
"input": "results",
"output": "print(results)"
}
}
Now, this may seem like computer language to people who are not programmers but it is not. It is simply a structured way to express the same ideas using a mark-up language called JSON that is often used to exchange data between different systems via APIs. But it is not a programming language - if you just give these instructions to a computer, it will not know what to do with them. Even though it looks computer languagey, a statement like "required_output_format": "print", is not a recognised instruction in any computer language. It would need to be translated into some programming language before it could be executed by a computer.[2]
If you gave a human a minute, they could puzzle out what it is about. But an LLMs gets this completely and as quickly as the sentence in English. When I pasted the above JSON into a prompt for qwen3:8b, it started its reasoning chain with the following:
Okay, let's see. The user provided a JSON structure with specific instructions. The main goal is to output in a certain format. The requirement says that the required output format is "print" and forbidden is "echo". The example shows that when the input is "results", the output should be "print(results)".
But because I gave the instructions in JSON rather than in English, after all the thinking qwen3:8b came up with just this as an answer:
print(results)
Which is why sometimes, it is better to give instructions to LLMs in as compact way as possible and JSON is one of those ways. For Karpathy, it means actually typing out some of the actual code or a code comment because in his head, he is thinking in schemas that are code-shaped rather than English-shaped. And translating them into English introduces a lot of extra ambiguity that the LLM he's using has to figure out. This gives too many ways for the LLM of going down what for Karpathy is the wrong path - and more often than not, the model will choose one of them.
It would be tempting (and has tempted many a philosopher throughout history) to imagine that the JSON way of expressing my instructions is somehow more semantically pure or closer to some underlying meaning that the English sentence is a less perfect representation of. But that would be a temptation that would lead us down to repeating several thousand years of wrong thinking about meaning.
The JSON expression is one way for me me to express propositionally a schema that is in my head. If you asked me what the schema (or rather a confluence of schemas) looks like, I couldn't tell you. Paradoxically, qwen3:8b (a tiny large language model) can tell you a lot more about it in its chain of thought, than I could be bothered to spell out. But even that is not the actual schema. The schema is a creature of neuronal activations and the propositions are creatures of words and rules.
Those schemas could be 'english-shaped' or 'czech-shaped' or 'python-shaped' but those shapes don't have clear boundaries we can easily draw. The shapes of the schemas may echo them but they are not the actual words or commands that end up flowing through our minds through the keyboard onto the screen. We can only guess at them from all the things that go right and wrong when we speak and write computer code.
Going from a schema to an English sentence or a JSON expression and back again is a process to which we don't have direct access. For a human, JSON is the more effortful of the two options but with a bit of training, people do get pretty quick at it. For an LLM, there is no difference and JSON can even be better - simply because the model was trained on JSON a lot and it puts it in a more formal frame of mind.
The computer, on the other hand, has no frame of mind. It has no mind at all. It an only follow machine instructions. And that's what sets us (humans and LLMs) apart from computers.
Of course, to be a bit pedantic about it, there many layers of interpretation between
print(results)that go on inside a computer and some of these require things disambiguation. That's because in our quest to make programming languages more human friendly, we've allowed human-like semantics to creep into code. Human-style things like one expression having multiple meanings depending on context or the same meaning being expressed in different ways.What it is, is a way of structuring information a programming language can work with. Similar to how HTML adds mark up that tells the computer to display bits of text as
<b>bold</b>.
