<!-- mobian-agent-page publisher="dailydev" canonical="https://daily.dev/posts/dsls-enable-reliable-use-of-llms-ti54pqfag" -->

---
title: DSLs Enable Reliable Use of LLMs | daily.dev
description: DSLs make LLM code generation more reliable and reviewable by constraining the output space and providing built-in validators. The author argues that building...
canonical: https://daily.dev/posts/dsls-enable-reliable-use-of-llms-ti54pqfag
twitter:card: summary_large_image
twitter:site: @dailydotdev
og:type: website
og:site_name: daily.dev
og:title: DSLs Enable Reliable Use of LLMs | daily.dev
og:description: DSLs make LLM code generation more reliable and reviewable by constraining the output space and providing built-in validators. The author argues that building...
og:url: https://daily.dev/posts/dsls-enable-reliable-use-of-llms-ti54pqfag
og:image: https://api.daily.dev/og/posts/TI54pqfaG.png
og:image:alt: DSLs Enable Reliable Use of LLMs
og:image:width: 1200
og:image:height: 630
og:locale: en
---

> ## Documentation Index
> Fetch the complete documentation index at: https://daily.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# DSLs Enable Reliable Use of LLMs

**[Martin Fowler](https://daily.dev/sources/mafo)** · 18 min read · 0 upvotes · 0 comments

## Summary

DSLs make LLM code generation more reliable and reviewable by constraining the output space and providing built-in validators. The author argues that building software with LLMs involves two phases: first using LLMs as brainstorming partners to iteratively design domain abstractions and DSLs, then using them as natural-language interfaces to those abstractions. Tickloom, a Java framework for building and testing distributed algorithms, illustrates this: its semantic model (Replica, Network, Storage, Clock) grounds LLM prompts in a fixed vocabulary, and an internal DSL built on top lets LLMs generate readable, compiler-validated test scenarios for complex distributed system behaviors like clock skew and non-linearizable reads. The key insight is that the DSL — not the prompt — becomes the durable source of truth.

## Full article

daily.dev links to this article rather than hosting it. Read it at the original source: <https://martinfowler.com/articles/llm-and-dsls.html>

## Similar posts on daily.dev

- [What Is Code?](https://daily.dev/posts/what-is-code--ehm9ofedq) · Martin Fowler · 1 upvotes · 0 comments
- [From Stories to Code: Collaborative Modeling and LLMs](https://daily.dev/posts/from-stories-to-code-collaborative-modeling-and-llms-br4afbjts) · codecentric · 1 upvotes · 0 comments

---

Tags: [#java](https://daily.dev/tags/java), [#distributed-systems](https://daily.dev/tags/distributed-systems)

[View this post on daily.dev](https://daily.dev/posts/dsls-enable-reliable-use-of-llms-ti54pqfag)

```json
{"@context":"https://schema.org","@graph":[{"@type":"Organization","@id":"https://daily.dev/#organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180},"sameAs":["https://twitter.com/dailydotdev","https://github.com/dailydotdev","https://www.linkedin.com/company/daily-dev-ltd"]},{"@type":"WebSite","@id":"https://daily.dev/#website","url":"https://daily.dev","name":"daily.dev","publisher":{"@id":"https://daily.dev/#organization"},"potentialAction":{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https://daily.dev/search?q={search_term_string}"},"query-input":"required name=search_term_string"}}]}
{"@context":"https://schema.org","@type":"TechArticle","headline":"DSLs Enable Reliable Use of LLMs","url":"https://daily.dev/posts/dsls-enable-reliable-use-of-llms-ti54pqfag","mainEntityOfPage":{"@type":"WebPage","@id":"https://daily.dev/posts/dsls-enable-reliable-use-of-llms-ti54pqfag"},"datePublished":"2026-07-14T12:51:37.454Z","dateModified":"2026-07-14T12:51:57.682Z","description":"DSLs make LLM code generation more reliable and reviewable by constraining the output space and providing built-in validators. The author argues that building...","image":"https://media.daily.dev/image/upload/s--VDukGCjf--/f_auto/v1722860399/public/Placeholder%2002","thumbnailUrl":"https://media.daily.dev/image/upload/s--VDukGCjf--/f_auto/v1722860399/public/Placeholder%2002","isAccessibleForFree":true,"articleSection":"Martin Fowler","inLanguage":"en","publisher":{"@type":"Organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180}},"author":{"@type":"Organization","name":"Martin Fowler","logo":"https://media.daily.dev/image/upload/t_logo,f_auto/v1/logos/mafo","url":"https://daily.dev/sources/mafo"},"commentCount":0,"discussionUrl":"https://daily.dev/posts/dsls-enable-reliable-use-of-llms-ti54pqfag","interactionStatistic":[{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":0},{"@type":"InteractionCounter","interactionType":{"@type":"CommentAction"},"userInteractionCount":0}],"keywords":"java,distributed-systems","timeRequired":"PT18M"}
{"@context":"https://schema.org","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https://daily.dev"},{"@type":"ListItem","position":2,"name":"Martin Fowler","item":"https://daily.dev/sources/mafo"},{"@type":"ListItem","position":3,"name":"DSLs Enable Reliable Use of LLMs"}]}
```

