•
14 min read
On the illusion of "natural language programming"

In the summer of 1978, Professor Edsger Dijkstra wrote a beautifully sharp essay titled On the foolishness of “natural language programming”. I’ve quoted the entire essay at the end of this post for those who have not yet read it. Dijkstra observed that ever since programming existed, there were people who felt that it should be done with natural language rather than formal programming languages, and they characterised this as a shortcoming of programming. Dijkstra argued that natural language is not suitable for programming because it allows for imprecise and nonsensical constructions, which formal symbolism can protect against. He used mathematics as an example, showing how strict formal symbolism is necessary to notate mathematical ideas with the precision it requires, and why the development of strict formal symbolic mathematical notation was essential in allowing the field to advance past the pictoral notation of the ancient greeks or the rhetorical style of the middle ages.

In today’s age of LLM chatbot ubiquity, it’s remarkable how prophetic Dijkstra’s words were. “Pseudo” natural language programming is the new trend of the decade. The LLM industry has spent hundreds of billions of dollars on marketing campaigns claiming “programming is solved”, or in other words, claiming you no longer need to know a programming language, understand how a computer works, or have any knowledge of the engineering principles necessary for the construction of reliable, performant, secure software. (And more importantly for them, you no longer need to pay programmers.) “Build a clone of Microsoft Office, make no mistakes” is apparently all the “instruction” it takes to build large scale software, if the LLM industry’s marketing is to be believed. But despite the fact that this is impossible for many obvious reasons (with the possible exception of allowing their chatbots to steal the source code of Microsoft Office or similar products and then reproduce it largely verbatim, as they demonstrated with their failed attempts at building a C compiler), the LLM industry continues to make claims like this because they understand the allure of natural language programming in the eyes of the general public, just as Dijkstra had observed half a century ago.

In Dijkstra’s era, the act of programming a computer looked a lot different than it does today. In the early days, programmers wrote direct instructions for the machine, what we now call “machine code”. Then some alternative representations of the machine code started being developed which made it easier for humans to read, but it was still a direct 1:1 translation of the machine instructions simply using a different notation or “syntax”. “Assembly” is one such example, where every line of “human readable code” directly refers to one machine instruction, or sometimes a small group of them. As time went on and programmers saw a need to make computer programs easier to read and write for humans, and create layers of abstraction so that the same program could run on different types of hardware, they started developing what we now know as “high level programming languages”. Instead of writing machine instructions, or even human-readable direct representations of machine instructions, these languages gave you layers of abstraction above the underlying hardware and allowed you to write algorithms which could conceivably be run on many different kinds of hardware with the appropriate translator, known as a “compiler”. Now if you wanted to add a list of numbers, you no longer had to think about what components the underlying hardware contained which would allow you to do this, or which instructions the underlying hardware accepted in order to read numbers, store them in memory, perform additions, and move them around between registers. You could simply use “abstracted” notions of memory and storage in your high level language, and trust that the compiler for that language had a set of translations for your hardware to produce the corresponding machine instructions.

Throughout all of these developments in programming, one thing has remained constant. The programmer must write the instructions that a computer has to perform. Whether it’s direct machine instructions or a highly abstracted representation using a subset of words and symbols borrowed from natural language, every operation performed by the computer is a direct result of the programmer’s intention. A programmer writing a python script may not know exactly what machine instructions will be generated for the hardware their script will run on, but thanks to the formal symbolism of programming languages they will know exactly what the computer will do. They will also have a rough idea of how the computer will perform those operations, and if they know exactly what hardware their code will run on and what compiler will be used, they can indeed figure out exactly what machine instructions will be generated. That is the power afforded to programmers through the use of formal symbolism. It is precise. No matter how high level your programming language is, you can always look at the layers of interpreters and compilers underneath, all defined through the same strictness and precision of formal symbolism, and get a complete understanding of the machine instructions generated at the end.

“Vibecoding” on the other hand, the act of creating software through prompting an LLM chatbot, does away with exactly this precision. Non-programmers are drawn into the allure of being able to create software with natural language, without having to know how computers work, and without learning to read, write or express thoughts in the language of strict formal symbolism. Without an understanding of why precision is needed, they believe that software has to be only approximately correct. They don’t know exactly what their software does or how, and they don’t know what the underlying hardware does or how. They had always paid programmers to know those things, so they could spend their time thinking about the business while the programmer spent their time thinking about the algorithms.

Over the last few years working in the industry, I’ve noticed that non-programmers not only lack an understanding of computers and programming, they actively dislike it. And Dijkstra pointed out exactly why. Programming requires expressing your intentions through strict formal symbolism. It requires you to think like the machine does. Programmers train for years to get good at this skill, and we are grateful for the precision of programming. (Dijkstra calls it a privilege.) But non-programmers see it as a shortcoming of programming. They just want their 10th dashboard now, precise algorithms and formal symbols are just getting in the way. So what if their vibecoded software leaks sensitive customer data, crashes during simple user flows and breaks everything with even the smallest of changes. It saves them from having to think like a machine, from having to be precise about how they want their program to function. It saves them from the inconvenience of algorithmic thinking.

But algorithmic thinking is a programmer’s superpower. It allows us to know exactly what our software will do and how. When we want to build a new feature, we immediately have an intuition for how we will structure it and how it will integrate with the existing software. We can make informed decisions about what kinds of features will be easy to build and what will be more time consuming. When we encounter bugs or unexpected behavior from our programs, we have an intuition for what mistakes in the program likely caused it to occur. When we have to collaborate with other programmers or hand over our program to another programmer, we can talk about how we structured the program, what tradeoffs we made, where the program is strong and where it needs more work, how to read the code to understand it easily, how to deploy it, what kinds of hardware and infrastructure it supports. In short, the skills of thinking like a machine allows us to understand our software. Vibecoding is existentially incompatible with reliable, high-quality, long lasting software, because vibecoders do not understand the software they are producing. If you are a programmer and have noticed that vibecoders often get stuck in their software development process after a short time, it should be clear to you that this is exactly why.

I categorize vibecoding distinctly as a novelty, far away from serious computer programming. The fact that the LLM industry is spending hundreds of billions of dollars trying to prove otherwise is merely an illusion, for the simple reason that the artifact produced by vibecoding is still formal computer code. When high level programming languages were invented, they still used formal symbolism and precise notation, which allowed programmers to interface with their high level programs directly and treat it as the source of truth. The LLM industry understands this, and so their chatbots still produce formal symbolic programming language code as the source of truth for the program, not the natural language it was prompted in. Some vibecoders try to claim that natural language is just yet another “high level abstraction” along the chain, in the same way that high level programming languages are to machine code. But they cannot follow up with an explanation as to why the natural language prompts are not the source of truth in vibecoded software as an alternative to formal programming languages, in the same way that high level programming languages are the source of truth as an alternative to direct machine instructions.

As long as vibecoders continue to fall for the illusion of natural language programming, they will continue producing the illusion of production grade software. And as long as the software industry requires reliable, high quality, long lasting software, programmers will continue to exist, because we are the only ones with the skill and knowhow to create and maintain such software.


Dijkstra’s essay is reproduced below in full. Let us carry on his tradition of thinking deeply about the art of programming and the software industry.

On the foolishness of “natural language programming”.

Since the early days of automatic computing we have had people that have felt it as a shortcoming that programming required the care and accuracy that is characteristic for the use of any formal symbolism. They blamed the mechanical slave for its strict obedience with which it carried out its given instructions, even if a moment’s thought would have revealed that those instructions contained an obvious mistake. “But a moment is a long time, and thought is a painful process.” (A.E.Housman). They eagerly hoped and waited for more sensible machinery that would refuse to embark on such nonsensical activities as a trivial clerical error evoked at the time.

Machine code, with its absence of almost any form of redundancy, was soon identified as a needlessly risky interface between man and machine. Partly in response to this recognition so-called “high-level programming languages” were developed, and, as time went by, we learned to a certain extent how to enhance the protection against silly mistakes. It was a significant improvement that now many a silly mistake did result in an error message instead of in an erroneous answer. (And even this improvement wasn’t universally appreciated: some people found error messages they couldn’t ignore more annoying than wrong results, and, when judging the relative merits of programming languages, some still seem to equate “the ease of programming” with the ease of making undetected mistakes.) The (abstract) machine corresponding to a programming language remained, however, a faithful slave, i.e. the nonsensible automaton perfectly capable of carrying out nonsensical instructions. Programming remained the use of a formal symbolism and, as such, continued to require the care and accuracy required before.

In order to make machines significantly easier to use, it has been proposed (to try) to design machines that we could instruct in our native tongues. this would, admittedly, make the machines much more complicated, but, it was argued, by letting the machine carry a larger share of the burden, life would become easier for us. It sounds sensible provided you blame the obligation to use a formal symbolism as the source of your difficulties. But is the argument valid? I doubt.

We know in the meantime that the choice of an interface is not just a division of (a fixed amount of) labour, because the work involved in co-operating and communicating across the interface has to be added. We know in the meantime —from sobering experience, I may add— that a change of interface can easily increase at both sides of the fence the amount of work to be done (even drastically so). Hence the increased preference for what are now called “narrow interfaces”. Therefore, although changing to communication between machine and man conducted in the latter’s native tongue would greatly increase the machine’s burden, we have to challenge the assumption that this would simplify man’s life.

A short look at the history of mathematics shows how justified this challenge is. Greek mathematics got stuck because it remained a verbal, pictorial activity, Moslem “algebra”, after a timid attempt at symbolism, died when it returned to the rhetoric style, and the modern civilized world could only emerge —for better or for worse— when Western Europe could free itself from the fetters of medieval scholasticism —a vain attempt at verbal precision!— thanks to the carefully, or at least consciously designed formal symbolisms that we owe to people like Vieta, Descartes, Leibniz, and (later) Boole.

The virtue of formal texts is that their manipulations, in order to be legitimate, need to satisfy only a few simple rules; they are, when you come to think of it, an amazingly effective tool for ruling out all sorts of nonsense that, when we use our native tongues, are almost impossible to avoid.

Instead of regarding the obligation to use formal symbols as a burden, we should regard the convenience of using them as a privilege: thanks to them, school children can learn to do what in earlier days only genius could achieve. (This was evidently not understood by the author that wrote —in 1977— in the preface of a technical report that “even the standard symbols used for logical connectives have been avoided for the sake of clarity”. The occurrence of that sentence suggests that the author’s misunderstanding is not confined to him alone.) When all is said and told, the “naturalness” with which we use our native tongues boils down to the ease with which we can use them for making statements the nonsense of which is not obvious.

It may be illuminating to try to imagine what would have happened if, right from the start our native tongue would have been the only vehicle for the input into and the output from our information processing equipment. My considered guess is that history would, in a sense, have repeated itself, and that computer science would consist mainly of the indeed black art how to bootstrap from there to a sufficiently well-defined formal system. We would need all the intellect in the world to get the interface narrow enough to be usable, and, in view of the history of mankind, it may not be overly pessimistic to guess that to do the job well enough would require again a few thousand years.

Remark. As a result of the educational trend away from intellectual discipline, the last decades have shown in the Western world a sharp decline of people’s mastery of their own language: many people that by the standards of a previous generation should know better, are no longer able to use their native tongue effectively, even for purposes for which it is pretty adequate. (You have only to look at the indeed alarming amount of on close reading meaningless verbiage in scientific articles, technical reports, government publications etc.) This phenomenon —known as “The New Illiteracy”— should discourage those believers in natural language programming that lack the technical insight needed to predict its failure. (End of remark.)

From one gut feeling I derive much consolation: I suspect that machines to be programmed in our native tongues —be it Dutch, English, American, French, German, or Swahili— are as damned difficult to make as they would be to use.