AI

Do We Still Need Programming Languages in the AI Era?

· AI · 12 min read

Human intent passing through an AI and compiler pipeline into binary instructions and a processor.

Contents

When I write software today, I increasingly find myself describing what I want to build in English rather than writing the implementation myself. I still work with familiar programming languages, compilers, libraries and development environments. But the person typing the code is no longer necessarily a person.

This got me thinking. If an AI agent understands my requirements and generates the software for me, why are we still asking it to write C#, Python, TypeScript or Rust? These languages were designed, at least in part, to make programming easier for humans. What if the developer is an AI?

Could we skip the programming language altogether and ask an LLM to generate machine code directly? And if not, what would a programming language designed specifically for AI look like?

I think these are interesting questions, not because I expect programming languages to disappear tomorrow, but because AI gives us a reason to reconsider some assumptions that have been part of software engineering for decades.

Programming Languages Were Never Just About Syntax

Looking back at the history of computing, we have continuously moved the way we program further away from the hardware. Assembly made machine instructions easier to work with. Languages like C gave us abstractions and portability. Managed languages such as C# and Java removed much of the burden of memory management. Python made it possible to express fairly complex ideas with remarkably little code.

When working on retro games, it is easy to appreciate how much of that progress we now take for granted. Something as simple as adding two numbers is already a useful example.

Let’s ask an AI agent to add two unsigned 32-bit integers. If the result exceeds the maximum value, it should wrap around.

In Rust, the implementation is straightforward:

fn add(a: u32, b: u32) -> u32 {
    a.wrapping_add(b)
}

At a lower level, the corresponding operation can be expressed in LLVM Intermediate Representation (IR):

define i32 @add(i32 %a, i32 %b) {
    %result = add i32 %a, %b
    ret i32 %result
}

And one possible implementation in x86-64 assembly, using the System V calling convention, looks like this:

lea eax, [rdi + rsi]
ret

The actual machine code for those two instructions is just four bytes:

8D 04 37 C3

I have deliberately chosen wrapping arithmetic here. Without that detail, even this simple English requirement would leave room for interpretation. Should an overflow wrap around, return an error, saturate at the maximum value or terminate execution?

The assembly example assumes a specific processor architecture and calling convention. The Rust function does not. Its meaning is preserved when a suitable compiler targets a different architecture.

An AI could generate any of these representations. The question is which one gives us the best combination of correctness, performance, portability and maintainability.

Why I Would Not Let an LLM Write Machine Code Directly

An LLM could produce those four bytes. It could also produce thousands of instructions for a more complicated application. But generating valid machine instructions is not the same thing as engineering a reliable application.

The CPU does not know whether an instruction was written by a developer, generated by a compiler or predicted by an LLM. It simply executes it. That is precisely why I would rather keep the compiler.

Modern compilers already know a great deal about instruction selection, register allocation, optimization, calling conventions and the architecture of the target processor. They operate on well-defined representations. We have spent decades developing and improving these systems. It makes little sense to ask a probabilistic model to reproduce their work byte by byte for every new application.

There are interesting exceptions. AI can help discover faster algorithms, suggest instruction sequences or optimize small pieces of performance-critical code. DeepMind’s AlphaDev research, for example, explored assembly-level algorithm discovery using reinforcement learning. I find this direction particularly interesting. But discovering an optimization under controlled conditions is quite different from replacing an entire compiler toolchain with an LLM.

I would rather use AI to reason about the algorithm and use a compiler to implement it efficiently for a particular processor. For a specialized optimization, I would ask for evidence that it is both correct and faster.

What Is the Best Programming Language for an AI Agent?

This is perhaps the more practical question. If the AI does most of the implementation, should we select the same languages we would select for a human development team?

There are two different things to consider. One is how well a model knows the language and its ecosystem. The other is what the language and its tools can guarantee about the generated implementation.

These are not always the same.

LanguageWhy I would consider it for AI-generated softwareWhat I would watch out for
PythonExtensive libraries, concise syntax, useful for orchestration and experimentationDynamic typing unless additional checks are enforced
TypeScriptMature web ecosystem and compile-time type checkingTypes are erased at runtime; external input still needs validation
C#Strong tooling, static typing, mature .NET libraries and managed memoryRuntime, deployment and framework-specific constraints
GoSmall language, straightforward tooling and good support for network servicesConcurrency and business logic still require careful verification
RustNative performance, ownership model, memory safety in safe codeMore complex code generation and compiler feedback loops
C and C++Low-level control, existing native ecosystems and performanceGreater exposure to memory errors and undefined behavior

This is a qualitative assessment, not an LLM benchmark. The choice depends on the application, the model, its tools and the team that will ultimately maintain the system.

Python is an obvious choice for many AI applications. I would not automatically use it for the application that the AI is building, though. For a web service, C# or Go may make more sense. For a browser application, TypeScript is often a practical choice. For a native component where performance and memory safety matter, Rust becomes particularly interesting.

Consider an AI agent generating Rust. The borrow checker may reject its first implementation. A human might regard that as friction. But the agent can use the compiler diagnostics to revise its implementation. The compiler provides a precise signal that is independent of the model’s confidence.

That does not mean Rust will always produce better results. An agent repeatedly fighting the compiler, or reaching for unnecessary unsafe code to silence it, is not making progress. The relevant metric is the cost of obtaining a correct and maintainable solution, not how quickly the agent writes its first version.

A Small Example With a Surprisingly Important Difference

Suppose we change the earlier requirement. Instead of wrapping on overflow, we now want the addition to return an explicit failure.

In Rust:

fn add(a: u32, b: u32) -> Option<u32> {
    a.checked_add(b)
}

We can write a few acceptance tests:

#[test]
fn addition_contract() {
    assert_eq!(add(10, 20), Some(30));
    assert_eq!(add(u32::MAX, 0), Some(u32::MAX));
    assert_eq!(add(u32::MAX, 1), None);
}

Rust’s standard library already provides the checked_add operation. There is no reason for the AI to invent a new arithmetic implementation.

The return type also makes the possibility of failure visible to the caller. A type checker can help enforce that distinction. Compare this with the original four-byte implementation, which simply produces a wrapped result. It cannot satisfy the new contract without additional behavior and an agreed way to represent failure.

The point is not that one implementation is universally better. The two implementations solve different problems. An LLM can only choose correctly when the intended behavior is clear.

English Is a Great Interface, but a Poor Execution Contract

Imagine asking an agent to build a simple inventory reservation service:

Reserve five items from stock for a customer, but never let the available stock become negative.

It sounds like a clear requirement until we start discussing the details. What happens when two customers reserve the last five items simultaneously? What if a request is retried after a network timeout? Can the same reservation be processed twice? What happens if the database transaction fails after an external event has already been published?

A good engineer knows these questions need answers. An AI agent might also identify them, but the answers cannot simply be invented by the agent.

We can make part of the requirement more precise by writing an executable contract. Here is a deliberately small example using Dafny, a programming language with integrated verification support:

method Reserve(stock: nat, quantity: nat)
    returns (remaining: nat)
    requires quantity <= stock
    ensures remaining == stock - quantity
    ensures remaining <= stock
{
    remaining := stock - quantity;
}

The precondition defines what must be true before the operation. The postconditions define what must be true afterwards. Dafny’s natural number type also requires non-negative values.

This example describes a pure calculation, not a production inventory system. It does not prove that our database transactions are atomic, that retries are idempotent or that access control is correct. Those properties must be specified and verified at the relevant system boundaries.

But it illustrates the direction I find interesting. Instead of relying exclusively on an AI to implement a requirement and then asking the same AI whether it did so correctly, we give the system a specification that can be checked independently.

The proof of a property is only as useful as the property itself. A perfectly verified implementation of the wrong business rule is still wrong.

What Would an AI-Native Programming Model Look Like?

I don’t think we necessarily need another general-purpose language. We may instead need a different layer above our existing languages and compilers.

There are already technologies to build on. LLVM IR provides a common intermediate representation for compiler infrastructure. MLIR supports multiple levels of abstraction and extensible compiler transformations. WebAssembly provides a portable executable format with a defined execution model. Languages such as Dafny give us a way to express and check formal specifications.

None of them, by itself, translates a person’s ambiguous idea into a correct application. Combining the right abstractions with AI is where I see an opportunity.

A possible architecture would look something like this:

Proposed AI-native development pipeline from human intent through approved specifications, AI implementation, verification and compilation, with a feedback loop.

I would separate the system into two responsibilities: interpreting intent and producing executable software. The first is where an LLM adds enormous value. The second should make as much use as possible of deterministic tools and independent verification.

The agent would produce or update a structured specification that humans can review. That specification would contain domain types, API contracts, permissions, constraints and acceptance criteria. The agent would then implement it in an appropriate language. A compiler, static analyzer, test suite and, where practical, formal verifier would provide feedback. Failed checks would go back to the agent for correction, not silently disappear behind a successful-looking response.

If we were to design a machine-oriented language or representation for this workflow, I would prioritize a small set of unambiguous semantics, explicit effects such as filesystem and network access, strong types, stable machine-readable diagnostics and contracts attached to functions and data structures. I would also make it possible to edit a small part of a program without regenerating the entire application.

A compact, structured representation can be useful for AI, but compactness alone is not the goal. Source code is already a remarkably efficient way to communicate meaning. A verbose JSON representation may consume more tokens than ordinary Rust or C#. That is something to measure, not assume.

How I Would Test This Idea

Rather than invent a new language and declare it better for AI, I would start with an experiment using existing languages. Give the same agent a set of fixed requirements and ask it to build the same small service in Python, C#, Go and Rust. Each implementation gets access to the relevant compiler and tooling, the same time and token budget, and the same externally defined acceptance tests.

I would include realistic requirements: a small API, a transactional operation, concurrent requests, input validation and a subsequent change to the original behavior. The final change is important. Generating new code is one thing; changing a working system without breaking other behavior is another.

I would measure:

  • The percentage of independently defined tests passed, including failure and concurrency cases.
  • How many attempts, tokens and tool calls are needed to get a correct implementation.
  • Security findings, resource consumption and latency under a comparable workload.
  • How well the agent implements a later change without introducing regressions.
  • How easily a human engineer can understand and diagnose the result.

Run each task multiple times and record the model, tool versions and environment. I would not allow an agent to weaken tests or change requirements just to get a green build. And I would publish failures alongside successful runs.

This would give us a much more useful picture than ranking languages by how often they appear in AI training data or counting lines of generated code. I haven’t run this comparative experiment yet; it is a proposal for how I would investigate the question.

What Changes for Software Engineering?

In my earlier article, AI Is Creating a New Kind of Technical Debt: Comprehension Debt, I argued that generating more code than we understand introduces a new form of engineering risk.

This is why I am not convinced that we should simply generate executable binaries from English prompts and throw away the source. Software has to be maintained. Somebody must be able to reproduce a release, investigate an incident and explain why the system behaves the way it does.

I would keep the approved specification, architectural decisions, source code, independent tests, locked dependencies and build provenance in Git. Generated source is still useful for debugging, reviewing changes and reproducing a build. Over time, more of the implementation may be regenerated safely from higher-level artifacts, but we are not there for every application.

There is also a product management aspect to this. Defining what a system should do is a large part of my work. The hardest discussions are usually not about which programming language to use. They are about what the product should do, what we should prioritize and which trade-offs we are willing to accept.

If implementation becomes cheaper, the value of making those decisions well increases. AI makes an incorrect requirement just as easy to implement as a correct one.

Final Thoughts

Do we really need programming languages? I think we do. But I suspect the role they play in our daily work will change.

English may become the main interface through which we describe what we want to build. Programming languages, intermediate representations and compilers will remain important underneath. And as the amount of code generated by AI increases, the specification and the ability to verify it may become the most important parts of the development process.

I’m less interested in an AI that can write a thousand lines of assembly than in an AI that can take a difficult, incomplete requirement, identify what is missing, help us make the right decisions and produce software we can actually trust.

We already have very good tools for turning code into machine instructions. The interesting challenge now is turning human intent into something precise enough that those tools can do their job.