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

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.
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.
Two trends are intersecting:
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.
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.
Create a free account to access all our content and the weekly review.
Article produced by artificial intelligence, reviewed under human editorial control.
Sign in to join the discussion.
Les DSL ne risquent-ils pas de trop segmenter les LLM ?
Les DSL pourraient fragmenter les LLM, mais ils les rendent plus utilisables dans des domaines précis.
Comment les DSL vont-ils gérer l'évolution constante des LLM ?
Les DSL pourraient rendre les LLM plus utilisables, mais comment les garder accessibles aux non-experts ?
Les DSL vont-ils évoluer assez vite pour suivre les LLM ?
Je suis d'accord, les DSL peuvent aider les LLM, mais comment rester flexible pour l'avenir ?