Declare is a domain-specific language for building complete user interfaces, with layout, styling, motion, state, and drawing expressed together in one program. Its central argument is that AI-generated code still needs reliable review: as people inspect less of it, a language and compiler that can detect errors become more important, not less. Declare aims to make interfaces expressive enough for polished, custom applications while keeping programs compact and understandable to people and AI systems. The compiler gives specific diagnostics and suggested corrections; an Inspector traces live values and dependencies; and a six-step verification process reports what has been checked. The language’s small, regular design is intended to give AI comprehension of a whole program rather than rely on imitation of familiar code.
Examples demonstrate the intended range: a calendar with four continuously zooming views, editable events, and drag-and-drop; a desktop with movable windows and apps; and an issue tracker handling one million records without custom virtualization code. The calendar is about 568 lines and the tracker has no dependencies. In reported tests, repeated agent runs reduced the time to build a ticket-buying app from 48 to 24 minutes and compiler errors from 32 to six. In the latest comparison, Declare used 1,279 lines versus React’s 2,666 and passed all eleven hidden checks on its first working build, while React passed six; the comparison is explicitly described as a single pair, not a benchmark. Created by David Temkin, Declare updates ideas from his earlier OpenLaszlo UI language for AI-assisted web development.
Summary generated by AI from the linked article. hn.today is not affiliated with Hacker News or Y Combinator.