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

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
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
NOV
article

Designing a Language With Agents, for Agents: An Experience Report on Ritvika

Hemant Kumar Singh
Zenodo (CERN European Organization for Nuclear Research)
Logic, programming, and type systems
article

Designing a Language With Agents, for Agents: An Experience Report on Ritvika

Hemant Kumar Singh
article en

Abstract

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.

Zenodo (CERN European Organization for Nuclear Research)
Logic, programming, and type systems
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.

Laika access coming soon
Designing a Language With Agents, for Agents: An Experience Report on Ritvika — Hemant Kumar Singh · Zenodo (CERN European Organization for Nuclear Research) (2026) | TGRS Research Map | TGRS