An AI agent asked to build the same ticket-buying app twice wrote 1,279 lines in a brand-new language called Declare and 2,666 lines in React, and only the Declare version passed all eleven hidden checks on its first working build. The React one passed six.
The numbers come from Declare's project site, launched by David Temkin, the founder of Laszlo Systems. His pitch is blunt: in an era when AI writes most code, the language matters more, not less. "Writing code is now nearly free; trusting it costs what it always did," he writes.
What Declare is
Declare is a domain-specific language for user interfaces, the way SQL is one for database queries. Layout, motion, states, theming and drawing are built into the language rather than bolted on as libraries, and a compiler checks the whole program.
A Declare program is a tree of nodes whose values are tied together by relationships the runtime keeps true. Change one value and everything that depends on it updates. The language reference says there is no re-render step and no React-style hooks.
Built for an AI that makes mistakes
Temkin's core argument is that a model writing React checks its work by resemblance to code it has seen, and resemblance is not correctness. Declare instead ships tools meant to let an agent catch itself:
- one installable skill file describing the language and its working loop;
- compiler errors that name the broken rule and the valid rewrite;
- an Inspector that explains why a live value is what it is;
- a six-step "ladder" of checks, from parsing to pixels.
He says the language improved over more than a hundred test runs: the same ticket app went from 48 minutes to 24 to build, and compiler errors per build fell from 32 to 6.
The demos, by the numbers
The site's showcase is a calendar whose day, week, month and year views zoom into each other. It is 568 lines of code plus 228 of comments, ships at 177 KB gzipped, and Temkin says no line was typed by hand. A full desktop demo, with draggable windows, a dock and menus, runs to 3,529 lines.
Badiyaa's quick math: the Declare ticket app is about 48% the size of its React twin, and the calendar's code-to-comment ratio is roughly 2.5 to 1. The page is also written in Declare, by an LLM.
The OpenLaszlo connection
This is not Temkin's first declarative UI language. Wikipedia's OpenLaszlo entry records that Laszlo Systems, which he founded, built the LZX language and server, first released in 2002, open-sourced in 2004 and last updated in 2010. In June, Temkin writes, an LLM took the original OpenLaszlo compiler and rebuilt it as a modern port whose output matches old OpenLaszlo programs byte for byte. Declare is the descendant, rebuilt from scratch and released under the MIT License.
The caveat
Temkin flags it himself: the React comparison is "Single runs, not yet a benchmark." Every run is published in the project repository so others can check.
Declare joins a crowded debate. Badiyaa recently covered Raph Levien's prediction that AI will spark 100 new Rust GUI toolkits and an AI model writing working executables straight from a hex dump. Declare's live calendar and source editor are on the Declare site now.
Sources
- Declare: a UI language for you and your AI, David Temkin (project site), 2026
- OpenLaszlo, Wikipedia, 2026
Image: Markus Spiske, CC0 via Wikimedia Commons
This article was produced with AI assistance and reviewed by our Editorial Desk. How we work.




