Designing a Language With Agents, for Agents: An Experience Report on Ritvika
What should a programming language be like when its most frequent users are machines? The question is too broad to answer directly. A more tractable question is whether language designers can determine, cheaply and before implementation, whether a proposed feature will benefit its intended users. Coding agents make this possibility worth investigating. They reduce the cost of building prototypes and can themselves serve as experimental subjects, with their successes and failures recorded during use. This paper reports one such investigation. Ritvika is a small vector language for physics and machine learning, with SI units, automatic differentiation, and a static checker that returns one of three verdicts: Proven, Rejected, or Unknown. I developed it over six days by directing LLM coding agents in named roles. The resulting project comprises 45 non-merge commits and eight releases. Four practices emerged from the development: test proposed features before implementing them, make the specification executable, keep project memory bounded, and treat agent failures as evidence about language design. The development also produced a differential oracle for comparing optimised backends with a reference interpreter. Its history includes an oracle that exposed a flaw in its own operation, a feature probe that led to the abandonment of a planned type-system extension, and a central hypothesis whose prediction was not borne out.
Authors
- Hemant Kumar Singh (ORCID: https://orcid.org/0000-0003-1653-232X)
Publication Details
- Journal
- Zenodo (CERN European Organization for Nuclear Research)
- Published
- 2026-11-26
- DOI
- https://doi.org/10.5281/zenodo.24569812
- Primary Topic
- Logic, programming, and type systems
- Type
- article
- Field-Weighted Citation Impact
- 0.00