<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Antonio Castaldo D&#39;Ursi on Medium]]></title>
        <description><![CDATA[Stories by Antonio Castaldo D&#39;Ursi on Medium]]></description>
        <link>https://medium.com/@ercasta?source=rss-90dfc4aaa07b------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*Y6roNF8dLg-eoac_jjTDsA.jpeg</url>
            <title>Stories by Antonio Castaldo D&amp;#39;Ursi on Medium</title>
            <link>https://medium.com/@ercasta?source=rss-90dfc4aaa07b------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sun, 29 Nov 2026 02:09:52 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@ercasta/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Hielements: a “design guardrail language” for AI-assisted coding]]></title>
            <link>https://medium.com/@ercasta/hielements-a-design-guardrail-language-for-ai-assisted-coding-0f6803bed74b?source=rss-90dfc4aaa07b------2</link>
            <guid isPermaLink="false">https://medium.com/p/0f6803bed74b</guid>
            <category><![CDATA[software-engineering]]></category>
            <category><![CDATA[programming-languages]]></category>
            <category><![CDATA[ai-agent]]></category>
            <dc:creator><![CDATA[Antonio Castaldo D'Ursi]]></dc:creator>
            <pubDate>Mon, 29 Dec 2025 18:15:20 GMT</pubDate>
            <atom:updated>2026-01-15T13:39:07.754Z</atom:updated>
            <content:encoded><![CDATA[<p><em>Note: I encourage you to take a look at the Hielements language in my </em><a href="https://github.com/ercasta/hielements"><em>Github Repository</em></a><em>, as it evolved a lot since this article was written.</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*nZSw4ZDsBlnbRbp-" /><figcaption>Photo by <a href="https://unsplash.com/@susarla?utm_source=medium&amp;utm_medium=referral">Pradeep Susarla</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p>In my <a href="https://medium.com/@ercasta/hierarchical-programming-languages-for-research-plan-implement-ai-assisted-coding-19a1ae7176cb">previous story</a>, I discussed the importance of having a formal way to describe a software architecture, one that could actually be kept in sync with the implementation. In this post, I present my concept implementation of Hielements, the first language aimed at keeping architects in control of actual software design / architecture, even when AI models write most of the code.</p><h4>Why</h4><p>Modern software systems are complex. Traditional software engineering taught us to modularize software using functions, classes, modules. Most languages allow representing these concepts; a few of them go further by supporting “generics”, to keep code as close as possible to the original “pattern” that we want to implement. But most languages stop here. In most languages, we don’t have the possibility to keep explicit representation of higher-level concepts, structures, patterns, and relationships. So we use documentation in natural language to fill the gap.</p><p>But nothing guarantees alignment between the two, and as codebases evolve, code and documentation can diverge. Architecture diagrams become outdated, and the “mental model” of how components interact exists only in developers’ heads (if at all). This issue is exacerbated when using AI to develop software. In this case, it’s even possible that no developer ever had the “big picture” in his head. And, even for an agent, the overall structure only exists in documentation, or worse in the context window, consuming precious context space.</p><p>When evolving such systems using AI, there is no real way to enforce boundaries on the kind of changes performed; or to preserve existing, desirable, design qualities: the only way is using instructions in natural language, which is a very weak form of control.</p><p>To reliably drive software evolution of complex systems, architecture should be:</p><ul><li><strong>Explicit</strong>: Not hidden in code or developers’ minds</li><li><strong>Enforced</strong>: Checked automatically, not just documented</li><li><strong>Evolvable</strong>: Easy to update as systems change</li><li><strong>Multi-level</strong>: From high-level system design to low-level module structure</li></ul><h4>Enter Hielements</h4><p>Hielements (portmanteau for “Hierarchical Elements”) makes this possible by allowing the definition of software <em>elements</em>, their properties, and relationships, and actually enforce them.</p><p>In Hielements, an Element is defined by:</p><ul><li><strong>Scope</strong>: What code/artifacts belong to this element, encompassing multiple languages, overcoming language-specific limitations in representing complex concepts and allowing grouping related elements even when composed of multiple technologies.</li><li><strong>Rules</strong>: Constraints the element must satisfy</li><li><strong>Connection Points</strong>: APIs, interfaces, or dependencies the element exposes</li><li><strong>Children</strong>: Sub-elements for hierarchical composition</li></ul><p>To get a glimpse of the language, the following snippet is taken from the repository, and it describes a part of… the Hielements toolset itself. Yes, the Hielements repository contains not only the description of the language, but also an implementation of a compiler / rules checker, a Language Server Protocol, and VSCode extension; and the implementation is documented / guardrailed with Hielements itself. The Hielements self-specification has been created by Opus 4.5, proving current models can already work with it, despite having never seen it.</p><pre>## Hielements Self-Description<br>## This file describes the structure of the Hielements project itself,<br>## demonstrating the language&#39;s ability to model hierarchical software systems.<br><br>import files<br>import rust<br><br>## The Hielements project - a language for describing software structure<br>element hielements:<br>    scope root = files.folder_selector(&#39;.&#39;)<br>    <br>    check files.exists(root, &#39;Cargo.toml&#39;)<br>    check files.exists(root, &#39;README.md&#39;)<br>    check files.exists(root, &#39;LICENSE&#39;)<br>    <br>    ## Core library providing lexing, parsing, interpretation<br>    element core:<br>        scope src = files.folder_selector(&#39;crates/hielements-core/src&#39;)<br>        scope crate = rust.crate_selector(&#39;hielements-core&#39;)<br>        <br>        check files.exists(src, &#39;lib.rs&#39;)<br>        <br>        ## Lexer - tokenizes .hie source files using logos<br>        element lexer:<br>            scope module = rust.module_selector(&#39;lexer&#39;)<br>            <br>            ## Connection points: what the lexer produces<br>            connection_point token_output = rust.struct_selector(&#39;Token&#39;)<br>            connection_point token_kinds = rust.enum_selector(&#39;TokenKind&#39;)<br>            <br>            check rust.struct_exists(&#39;Lexer&#39;)<br>            check rust.enum_exists(&#39;TokenKind&#39;)<br>            check rust.has_tests(module)<br>            check rust.has_docs(module)<br>        <br>        ## Parser - produces AST from token stream<br>        element parser:<br>            scope module = rust.module_selector(&#39;parser&#39;)<br>            <br>            ## Connection points: what parser consumes and produces<br>            connection_point ast_output = rust.struct_selector(&#39;Program&#39;)<br>            <br>            check rust.struct_exists(&#39;Parser&#39;)<br>            check rust.function_exists(&#39;parse&#39;)<br>            check rust.has_tests(module)<br>            <br>            ## Behavioral: Parser depends on lexer for tokens<br>            check rust.depends_on(module, lexer.module)<br><br>        ## AST - typed representation of parsed programs<br>        element ast:<br>            scope module = rust.module_selector(&#39;ast&#39;)<br>            <br>            ## Connection points: AST types used by other components<br>            connection_point program_type = rust.struct_selector(&#39;Program&#39;)<br>            connection_point element_type = rust.struct_selector(&#39;Element&#39;)<br>            connection_point expression_type = rust.enum_selector(&#39;Expression&#39;)<br><br>        ## ===== Core Pipeline Connections =====<br>        ## These checks verify the data flow through the compilation pipeline:<br>        ## Source -&gt; Lexer -&gt; Parser -&gt; Interpreter -&gt; Results<br>        <br>        ## Verify lexer output connects to parser input<br>        check rust.pipeline_connects(lexer.token_output, parser.module)<br>        <br>        ## Verify parser output (AST) connects to interpreter input<br>        check rust.pipeline_connects(parser.ast_output, interpreter.module)</pre><h4>Use Cases</h4><p>Hielements can be used both for greenfield and brownfield development. You don’t need to rewrite your system to start using it, as it complements your existing languages by adding a layer of architectural specification and enforcement. The Hielements description of the system doesn’t even need to be complete, you can start with what you need most to start making changes / understanding the system.</p><p>🆕 <strong>Greenfield Development</strong></p><p>Define your architecture upfront and use Hielements as design guardrails:</p><ol><li>Describe system structure in Hielements</li><li>Write implementation code / Agents can use specifications to generate code</li><li>Run checks to ensure alignment</li></ol><p>🏭 <strong>Brownfield/Legacy Systems</strong><br>Reverse-engineer and enforce architecture in existing codebases:</p><ol><li>Analyze code (manually or with agents / tools) to create initial Hielements specs</li><li>Refine and formalize the architecture</li><li>Enforce rules to prevent degradation</li><li>Use specifications as the source of truth for refactoring</li></ol><h3><strong>Next Steps</strong></h3><p>In the next weeks, I’ll expand the language / toolsets and try it on more real world, existing projects. Stay tuned!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=0f6803bed74b" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Hierarchical programming languages for Research — Plan — Implement AI-assisted coding]]></title>
            <link>https://medium.com/@ercasta/hierarchical-programming-languages-for-research-plan-implement-ai-assisted-coding-19a1ae7176cb?source=rss-90dfc4aaa07b------2</link>
            <guid isPermaLink="false">https://medium.com/p/19a1ae7176cb</guid>
            <category><![CDATA[ai-coding]]></category>
            <category><![CDATA[domain-specific-languages]]></category>
            <category><![CDATA[software-engineering]]></category>
            <dc:creator><![CDATA[Antonio Castaldo D'Ursi]]></dc:creator>
            <pubDate>Sat, 06 Dec 2025 12:18:17 GMT</pubDate>
            <atom:updated>2025-12-06T12:18:17.635Z</atom:updated>
            <content:encoded><![CDATA[<h3>Hierarchical programming languages for Research — Plan — Implement AI-assisted coding</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*Gjn5ej6n9AbGfbTQ" /><figcaption>Photo by <a href="https://unsplash.com/@eugene_tkachenko?utm_source=medium&amp;utm_medium=referral">Eugene Tkachenko</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p>AI-assisted coding is disrupting the traditional Software Development Life Cycle, creating the need for new conceptual frameworks and processes. In <a href="https://medium.com/@ercasta/redefining-source-code-bcf2781ead02">one my latest stories</a>, I discussed to opportunity to leverage <a href="https://en.wikipedia.org/wiki/Domain-specific_language">domain specific languages</a> to create an “intermediate” control point where humans can inspect and drive solution creation. Today I’ll explore the opportunity of creating another layer in the “hierarchy” of artifacts in Software Development Life Cycle, that might be well suited to support the <a href="https://www.alexkurkin.com/guides/claude-code-framework">Research-Plan-Implement framework for Claude Code</a>.</p><h3>The Research-Plan-Implement Framework</h3><p>Without going into all the details, the framework’s core concept is that whenever you want to perform a change to the codebase, you should ask your AI agent to perform three steps:</p><ol><li>Research: analyze the code to get an understanding of the current characteristics</li><li>Plan: define the changes needed to accomplish the goal</li><li>Implement: actually perform the changes</li></ol><p>The concept of “hierarchical programming languages” applies to the “research”, and, potentially, “plan” phases.</p><h3>A hierarchy of languages</h3><p>During the research phase, the AI Agent is actually reading the code and performing a “reverse engineering task”. The output of this task is currently expressed <strong>in natural language</strong> (usually documentation files, perhaps diagrams). This mimicks the cosolidated human practice of “documenting” the code.</p><p>But why leverage an agent to perform this “reverse engineering” task? There are several kinds of tools (disassembler, documentation generators) that automatically reconstruct a “high-level” view of the system. So the first natural step could be leveraging these tools instead of asking the agent, at least for some sub-steps, and maybe using the agent only to interpret the output by these tools.</p><p>But this does not solve the fundamental issue, i.e. these tools currently produce either documentation in natural language targeted at humans, or “source code” in a higher-level language. However, most of the information could be <strong>described a set of domain specific languages</strong>, expressing different aspects (e.g. static structure, runtime behaviour). This would enable to express the same concepts in a more concise (which is good from a context-engineering point of view) and non-ambiguous way, thus potentially reducing errors in the end-to-end process.</p><p>The idea is to define several very small domain specific languages to express different categories of information about the system, for example:</p><ul><li>Call Graphs</li><li>Composition Structure</li><li>Sequence diagrams</li></ul><p>and so on. We don’t need one big language to describe the system, and we don’t need it to fully describe the system in a lossless way, as the goal is to support analysis and planning. For simplicity, let’s call them “research languages”</p><p>Creating this languages and related “reverse compilers” could allow having a <strong>hierarchical representation of the system, with the different levels of the hierarchy always in sync:</strong> once identified the “source” language in the hierarchy, we could run compilers to produce the actual code running on a specific platform (“compiling downwards”), and “reverse compilers” to extract information (“compiling upwards”).</p><h3>Research and planning with hierarchical languages</h3><p>Our AI agent could then leverage this hierarchical representation of the system to perform changes. Besides supporting the research phases, the planning phase might be supported by creating a dedicated set of <strong>plan definition language, </strong>whose keywords and structures would express the semantics of changing the structures defined by the “research languages”, e.g.:</p><ul><li>Changing a call graph</li><li>Changing a composition structure</li><li>Changing a sequence of calls</li></ul><p>Such representation, besides being again more concise and less ambiguous, could also allow leveraging dedicated “refactoring tools” to automate some steps. This in turn could potentially reduce not only the time and cost needed to perform the changes, but also the error rates in the development process. Moreover, documentation and analysis tool could be created for these “research and plan definition languages”, unlocking a completely new “layer” of automation.</p><h3>Next Steps</h3><p>In the following weeks, I’ll try to define some of these languages and develop a small proof of concept. Stay tuned!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=19a1ae7176cb" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Creating a custom programming language for a project — in 1 day]]></title>
            <link>https://medium.com/@ercasta/creating-a-custom-programming-language-for-a-project-in-1-day-f40f495e4029?source=rss-90dfc4aaa07b------2</link>
            <guid isPermaLink="false">https://medium.com/p/f40f495e4029</guid>
            <category><![CDATA[software-engineering]]></category>
            <category><![CDATA[domain-specific-languages]]></category>
            <category><![CDATA[ai-agent]]></category>
            <dc:creator><![CDATA[Antonio Castaldo D'Ursi]]></dc:creator>
            <pubDate>Sat, 29 Nov 2025 16:41:44 GMT</pubDate>
            <atom:updated>2025-11-29T16:50:07.324Z</atom:updated>
            <content:encoded><![CDATA[<h3>Creating a custom programming language for a project — in 1 day</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*4O9eaqbrXOdD7qT0" /><figcaption>Photo by <a href="https://unsplash.com/@blender_person?utm_source=medium&amp;utm_medium=referral">Wesley Ford</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p>In my <a href="https://medium.com/@ercasta/redefining-source-code-bcf2781ead02">previous story</a>, I analyzed the “agent mode” software development process, concluding that it could spark a new generation of “ad-hoc”, domain-specific languages. The rationale is that these languages could be the perfect balance between speed and control, reducing the time needed to verify and modify solutions created by agents. Today I’ll share my hands-on experience with a proof of concept.</p><p>The goal of the POC is to assess the viability of the following development process:</p><p>1) Define the high-level structure of the solution<br>2) Create a first domain-specific language for the high-level solution, complete with compilers and other tools<br>3) Parallelize work: develop the “business” solution in the domain-specific language, while improving the language itself and the tools.</p><p>Remember, domain-specific languages have lots of good qualities, and the main reason they have been rarely used is their traditional implementation cost, that limited their economical viability in most projects. Can AI shift this balance? Let’s find out.</p><h3>Meet WTLang</h3><p>For my experiment, I choose to create “WTLang”, a language for creating web pages that allow showing and editing tables. The implementation is based on a “compiler” written in Rust, that generates Python code using Streamlit and Pandas. You can find it in my <a href="https://github.com/ercasta/wtlang">WTLang GitHub repository</a>. Here’s an example of a page written in WTlang:</p><pre>// Example: Using filters with show and show_editable<br><br>table Employee {<br>    name: string<br>    department: string<br>    position: string<br>    salary: currency<br>}<br><br>page EmployeeViewer {<br>    title &quot;Employee Management with Filters&quot;<br>    <br>    // Load employee data<br>    let employees = load_csv(&quot;employees.csv&quot;, Employee)<br>    <br>    // Show with single filter on department<br>    show(employees, [filter(&quot;department&quot;, single)])<br>    <br>    // Show with multiple filters<br>    show(employees, [<br>        filter(&quot;department&quot;, single),<br>        filter(&quot;position&quot;, single)<br>    ])<br>    <br>    // Editable table with filters<br>    let updated = show_editable(employees, [<br>        filter(&quot;department&quot;, multi),<br>        filter(&quot;position&quot;, multi)<br>    ])<br>    <br>    // Save changes<br>    button &quot;Save Changes&quot; {<br>        save_csv(updated, &quot;employees_updated.csv&quot;)<br>    }<br>}</pre><p>I started from a summary document containing a 40-lines description of the language and the tools. I already had a few ideas on the scope and characteristics of language and related tooling, so writing it took less than 1 hour:</p><pre># WTLang<br><br>WTLang is a Domain Specific Language to create web pages that show and allow editing tables. This documents is a blueprint for creating the language<br><br>## Characteristics of the language<br><br>- The language allows to define multiple pages<br>- Each page contains one or more table<br>- The language has keywords to represent pages, title, subtitles, table showing sections, buttons to performs save / export operations.<br>- The source code can be split in multiple files, with an &quot;import&quot; statement that allows importing symbols from sibling / parent / files in children folders<br>- The tables can be exported to excel<br>- The language provides a standard library with common operations such as filtering, sorting, etc.<br>- The language has constructs for if statements and &quot;iteration&quot; statements (e.g. forall) <br>- The language has scalar types (int, float, string, date, currency) and a &quot;table&quot; type that allows defining the structure of a table. Moreover it has a &quot;function chain&quot; type (more on this laters)<br>- Within table definition, reference from a field to another table is made explicit, to allow creating a hierarchy of tables<br>- The language allows calling external table generation / manipulation functions created in other languages. These external functions must be &quot;imported&quot; in terms of declaration<br>- The language does not allow defining custom types<br>- The language is strongly typed<br>- The language allows creating user defined functions, with multiple parameters and one return value<br>- Function calling does not modify parameters. Tables are immutable: language statements and functions create new tables without modifying the original one<br>- Function chaining uses a special syntax (-&gt;) to easily allow concatenating functions without lots of nesting. When using chaining, the number and type of output parameters from the previous function must match the number and type parameters of the following one. Some parameters can be provided upfront to create a &quot;closure&quot;, with unbounded parameters represented by an underscore.<br>- Function chains can be defined once and extended appending new functions to the chain, or substituting some elements of the chain (eg. chain[2] = filterfuntion)<br>- Functions and chains are first class citizens<br>- The language syntax is based on curly brackets to define code blocks. It does not use spaces or delimiters (e.g. semicolon) to separate statements.<br>- The language allows defining validity checks and rules for table content, such as unique - non null constraints on fields, or more complex, user defined validation functions.<br><br>## Target platform<br><br>- WTLang compiles to Streamlit pages <br>- Other target platforms might be added in the future<br>- The external functions that allow manipulating tables are written in python<br><br>## Characteristics of the compiler and related tools<br><br>- The compiler shall be fast, so languages such as Rust for the compiler are used<br>- Proper support tooling is needed, in particular a Language Server for VSCode, based on Language Server Protocol<br>- Support tools must also allow autocompletion of external functions.<br><br></pre><p>I also created a TODO file stating the very first next step:</p><pre># TODO<br><br>- Expand the summary doc (summary.md) creating one file with additional design considerations for each topic (language, target platform, compiler and tools). These design file must contain an evaluation of possible alternatives, with rationale supporting to choice of the chosen one.</pre><p>Then I asked GitHub Copilot with Sonnet 4.5 to actually perform the step in the TODO file.<br>I proceeded step by step, adding new items to the TODO file and asking Sonnet to fix issues (not everything was always perfect the first time, but Sonnet demonstrated strong problem solving skills).</p><p>What really matters for the purpose of the POC, is that<strong> I was able to create a working, basic version of the language in less than 1 day</strong>, complete with a Language Server and VSCode Extension to support language usage.</p><figure><img alt="WTLang with code autocomplete and syntax highlighting" src="https://cdn-images-1.medium.com/max/533/1*uoSAcuuh8frRIP1aBYiGlw.png" /><figcaption>Code autocompletion and syntax highlighting in VSCode</figcaption></figure><p>The implementation is of course not perfect, but based on my experience, I don’t think it would take more than one week to get to a sufficiently mature version to start delivering a solution.</p><h3>The Verdict</h3><p>So, can this approach work? Definitely yes. In fact, it seems to work so well, it might become the new standard way of developing software solutions that require creating many similar “instances” that follow a defined pattern.</p><h3>Why it matters</h3><p>I won’t go in detail through all the benefits of domain-specific languages. I’ll just focus on the main implications for technical leads and for the project sponsor. As a tecnichal leader, you don’t need to create “coding standards”, “wrapper libraries”, and then check that they are actually followed and used by your team (human, agentic, or mixed). You can just define your language, and by choosing the underlying target platform and code generation strategies, you can be 100% sure that your project standards will be respected. You don’t even need to create a perfect compiler upfront, and, to some extent, not even commit on using a specific target platform: in case you decide to change something, you can just rebuild your solution later, without having to rework everything. To make a concrete example, let’s look at a snippet of my TODO file:</p><p><em>Add some enrichment to current implementation. The load_csv built in function must get a table type as parameters, and </em><strong><em>in the generated code there must be consistency checks between the table definition and actually loaded dataframe</em></strong></p><p>This means that whenever someone writes:</p><pre>  let users = load_csv(&quot;users.csv&quot;, User)</pre><p>You can be 100% sure the consistency checks will be run. No boilerplate code, no function wrappers, no manual error handling strategies are needed in your “source code”.</p><p>As a project sponsor, you get a solution that’s defined in a way that is as close as possible to your business domain; moreover, the solution will be easier to migrate to other platforms, thus protecting your investment from platform obsolescence or lock in.</p><h3>Next steps</h3><p>In the following weeks, I’ll go on working with WTLang and run some more experiments. In particular, I want to assess whether working with a simpler language, such as the one I created, allows using smaller language models for translating requirements into the the new “source code”, thus providing extra benefits in terms of development speed and cost.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=f40f495e4029" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Redefining “Source Code”]]></title>
            <link>https://medium.com/@ercasta/redefining-source-code-bcf2781ead02?source=rss-90dfc4aaa07b------2</link>
            <guid isPermaLink="false">https://medium.com/p/bcf2781ead02</guid>
            <category><![CDATA[domain-specific-languages]]></category>
            <category><![CDATA[agentic-ai]]></category>
            <category><![CDATA[software-engineering]]></category>
            <dc:creator><![CDATA[Antonio Castaldo D'Ursi]]></dc:creator>
            <pubDate>Sun, 23 Nov 2025 13:24:53 GMT</pubDate>
            <atom:updated>2025-11-30T06:16:43.082Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*Vo8tRAfjnkR4MTPB" /><figcaption>Photo by <a href="https://unsplash.com/@robwingate?utm_source=medium&amp;utm_medium=referral">Rob Wingate</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p>In the past days I’ve finally be able to experiment with Github Copilot Agent Mode. I find it impressive that starting from a high level list of points about what I want to create, in roughly one hour, I was able to create a first prototype and related documentation. Being an analytical person, I started thinking about the implications of being able to turn 20 lines of description in natural language into thousands of lines of code and documentation. The first, rather obvious thought, is that creating software solutions with Github Copilot Agent Mode completely alters the development workflow, which essentially becomes a “specify — generate — review” loop. However, I think the implications are more profound, and they redefine the very nature of artifacts commonly used in software engineering.</p><h3>Why we use source code</h3><p>In its essence, creating working software is a <em>translation </em>task. Starting from a problem statement, we <em>define </em>a solution, usually first in natural language, then we <em>translate </em>this solution into a software design, and then we <em>translate </em>this design into code. Nowadays, we give almost for granted that we code in some sort of specific language using frameworks, such as Typescript with React, or Python with FastAPI. But original computer programmers had to work with punched card to create a working solution. This was a time consuming, error prone task, and it required the programmer to work in terms of very elementary instructions, such as summing integers or moving values to / from machine registries. That’s why software engineers started creating high-level languages, compilers, and libraries: they allowed working with higher-level concepts, at the same time keeping the fundamental property of <em>specifying the overall program in an unambiguous way. </em>Moreover, a program written in a high-level language is easier to read, understand, and validated by another human.</p><p>So, the fundamental reason the software engineering world created programming languages is they allow us to simplify the original translation task, while keeping a reasonable tradeoff between <em>flexibility, ease of use, and conciseness</em>.</p><p>This tradeoff is essentially a <em>design choice. </em>In fact, the entire history of programming languages, libraries and frameworks can be seen as the never-ending pursuit of the “best design” of a language, then one with the “best” tradeoff among the aforementioned elements.</p><h3>Why “Agent coding” disrupts this tradeoff</h3><p>Nowadays, except for very specific needs, no one would use assembly language to write a software solution that solves a business problem. It would require writing tens of hundreds of times the number of instructions needed to express the same solution in a high-level language. <br>At first glance, “agent coding” might feel as just an evolution of the historical pattern of moving towards “higher level instructions”. We specify instructions in natural language, and AI “translates” this into we currently refer to as <em>source code. </em>However, there are fundamental differences.</p><p>When we use a high-level language, we rely on a <em>compiler </em>to <em>translate </em>it to machine code. We generally give for granted that this translation step introduces no errors in the final solution: in fact we usually don’t manually check and validate the compiled program. Moreover, we usually don’t manage the compiled program as all the other artifacts. We are very careful to version our requirements and source code; on the other hand, we consider compiled programs as something disposable, that is regenerated every time by build pipelines. In fact, the unique characterics of source code is that, within the entire “problem to working software translation process”, it’s <strong>the last artifact created and read by humans.<br></strong>With “agent coding”, we are unfortunately left in an unclear and new “middle ground”. If we want to keep the benefits and efficiency of “agent coding”, the easiest way is to never touch the code ourselves: we would be to slow, it’s better to ask the agent to make changes for us. The same goes with other software engineering practices. Unit testing? The agent can code them for us. Bugfixing? Check. Technical documentation generation? Idem. But there are a few fundamental issues with this approach. First of all, agents are generating a huge amount of content in formats <strong>usually consumed by humans</strong>; but humans can’t keep up with the pace at with the agents generate code, docs, and so on. So, under the pressure of “productivity”, we ask agents to manipulate, again, this content which was meant for humans. The second issue is: this “translation” is not as perfect as the one performed by compilers, but we are still held accountable for the generated content; after all, source code is an artifact we as software engineer are required to read, edit, and validate. It’s not like binary code. So we either forfeit the efficiency, or we need to accept the accountability risk. We can for sure put several guardrails in place, such as having other agents check the generated code, but we are only mitigating a fundamentally broken process.</p><h3>The “new” source code</h3><p>The key issue is that, by trying to move to “higher level” ways of writing a software solution in a faster way, we are jumping from an ambiguous language (natural language) to an unambiguous one (source code), and this step can introduce errors. But we’re not doomed!</p><p>Up to now, when referring to “programing languages”, we have implicitly been talking about “general purpose programming languages”. Python is one of these. You can express any reasonable program in this language. But they are not the only kind of programming language. Besides the source code, almost every real world project has its jargon, defined by some kind of glossary and “implicit rules” that anyone working on the project knows.</p><p>During the past months I’ve had the pleasure to study and deepen my understanding of “domain specific languages”, not only from a technical point of view, but from an end-to-end business perspective. There are great books about them, for example the monumental “DSL Engineering” by <a href="https://medium.com/u/3093ea62d4fc">Markus Voelter</a>. Their core characteristic is that they are based on a different tradeoff between <em>flexibility, ease of use, and conciseness. </em>They are designed in a way that reduces their <em>flexibility</em>, making them <em>easier and more concise, </em><strong><em>for a specific domain. </em></strong>For example, you might create a domain specific language for API development, and its “instructions”, keywords and so on, would make it easy to implement APIs; but the language would not allow creating other kinds of software, such as web pages. Or you might create a language that precisely describes insurance plans. Historically they have been less used than general purpose programming language, not for a techical reason, but for an economical one. Even with modern tools, creating, maintaining, adopting a domain specific language requires a lot of work, that might not make economical sense in the context of the specific project you are working on. But agent coding might shift this balance. Instead of asking the agents to directly produce “general purpose programming language” source code, we could speed up the process of creating a domain specific language and related tools for our specific project; with agent coding, this effort might be so low, that it actually makes it the more efficient way to deliver the solution. This would allow us to define the business solution in an unanbiguous way, using the domain specific language we created; and as software engineer, we would only need to read, edit, and validate, the source code of the tools created by the agent. Moreover, this approach would keep all the main benefits of domain specific languages, such as making the business solution more easily ported to new platforms, or improving its runtime performance, by tweaking the underlying compiler / engine.</p><p>This would put the “project-level specific language” in the perfect position to be the new “source code”: one that still retains all the information required to specify the solution, and is concise enough to be managed by humans.</p><h3>Next steps</h3><p>In the next weeks, I’ll go on experimenting with this strategy to see how it works. Stay tuned!</p><p><em>Update: the second part of this story is now out. It’s about </em><a href="https://medium.com/@ercasta/creating-a-custom-programming-language-for-a-project-in-1-day-f40f495e4029"><em>creating your programming language — in 1 day.</em></a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=bcf2781ead02" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>