Fowler: DSLs are not dead, they are what makes LLM usable

CraftSubscribers only Jul 15, 2026 at 19:295Add to bookmarks

Fowler: DSLs are not dead, they are what makes LLM usable
Illustration : Léa Fontaine

A Martin Fowler article brings DSLs back into focus: not to impress the experts, but to give the LLM a narrow target where it can make recoverable mistakes.

In plain terms

Martin Fowler's thesis, published on July 15, 2026, is simple: LLMs produce non-deterministic and sometimes incorrect code. A general language tolerates this drift and propagates it. A specific language (DSL), on the other hand, bounds the space of possible outputs, makes validation trivial, and allows LLMs to generate without having to review each line to pray.

Why it matters now

Two trends are intersecting:

  1. LLMs are good enough to generate on a constrained vocabulary (grammar, JSON schema, EBNF) with a very low syntax error rate.
  2. The post-2023 software engineering community has largely abandoned DSLs, deemed too costly to design and maintain.

The game has changed. The cost of designing the DSL remains the same, but the benefit has exploded - because a well-designed DSL transforms "having an LLM write code" into "having an LLM fill out a structured form". The difference in reliability is of an order of magnitude.

Under the hood

  • A DSL is more useful than a JSON schema when the logic is procedural (if/then, bounded loops) - because it captures business invariants in its grammar itself.
  • The most profitable implementation pattern: LLM → DSL output → interpreter or compilation to action. You never leave your strict programming language - the DSL is the intermediary.
  • Cases that don't work: creative tasks where the output universe is not enumerable (generating marketing text, brainstorming a name).

So what

For the architect: reconsider the decisions "we'll parse free text from the LLM and hope". Instead, do: LLM → DSL → runtime. Regressions go from silent to glaring.

For the team building an LLM product: the next engineering effort is no longer in prompt engineering - it's in designing a mini-language that captures what your domain allows. It's a return of the language designer profession, under a less prestigious name.

For long-term debt: a well-thought-out DSL survives the next generation of models. A giant prompt, no.

Content reserved for members

Create a free account to access all our content and the weekly review.

Article produced by artificial intelligence, reviewed under human editorial control.

Our newsroom
Your Linux servers, as a desktop.
TermalOSSponsored
Ops, reimagined

Your Linux servers, as a desktop.

Agentless SSH monitoring, a full remote desktop and an AI ops copilot — no agents to install. Everything stays on your machine.

SSHMonitoringAI Ops
Get early access
Was this article helpful?

9 people liked this article

Like
M
Mateo RossiSoftware architect
🇬🇧 Architect, two decades of production systems.
Share:
Comments (5)

Sign in to join the discussion.

Alex_London 15 Jul 2026 · 15:34

Les DSL ne risquent-ils pas de trop segmenter les LLM ?

ArtLover88 16 Jul 2026 · 07:00

Les DSL pourraient fragmenter les LLM, mais ils les rendent plus utilisables dans des domaines précis.

Alex_LDN 15 Jul 2026 · 15:31

Comment les DSL vont-ils gérer l'évolution constante des LLM ?

sandrine.b 15 Jul 2026 · 15:21

Les DSL pourraient rendre les LLM plus utilisables, mais comment les garder accessibles aux non-experts ?

le_sceptique 15 Jul 2026 · 14:59

Les DSL vont-ils évoluer assez vite pour suivre les LLM ?

J.P.R. 2 15 Jul 2026 · 14:51

Je suis d'accord, les DSL peuvent aider les LLM, mais comment rester flexible pour l'avenir ?

Your Linux servers, as a desktop.
TermalOSSponsored
Ops, reimagined

Your Linux servers, as a desktop.

Agentless SSH monitoring, a full remote desktop and an AI ops copilot — no agents to install. Everything stays on your machine.

Get early access
Topics
Explore
Information