Declare is a UI language for you and your AI davidtemkin.github.io · 12 points ·...
HN Best 200 @best
Declare is a UI language for you and your AI davidtemkin.github.io · 12 points · 1 comments · HN thread
TL;DR Declare is a declarative UI language, a descendant of OpenLaszlo from David Temkin, pitched as a DSL for user interfaces that is compact and verifiable by a compiler, especially when written with an AI. The page presents a calendar, a desktop and other sample apps, a language spec, and claimed evals comparing a Declare app to a React app built from the same brief. The HN thread has a single one-word comment.
- Declare describes UIs as a tree of nodes whose attributes are live constraints; the runtime keeps them consistent with no render cycle, diffing, or hooks.
- Logic inside braces is ordinary TypeScript, type-checked against each class's API at compile time.
- Flagship examples: a continuously zooming calendar (about 568 lines) and a desktop with windows, dock and apps (about 2,011 lines of code).
- Single, unpublished-as-benchmark evals: on one brief, the Declare ticket app was 1,279 lines versus React's 2,666, and passed 11 of 11 hidden checks versus React's 6.
- The runtime core is a small C kernel (about 12 KB gzipped) shipped as WebAssembly or linked natively on macOS, with DOM, canvas and Mac renderers.
- The language is MIT-licensed, with the compiler, runtime, standard library and docs on GitHub; it is described as young and evolving.
Discussion The comment thread is effectively empty: one commenter wrote 'neat' with no further discussion, so there is no collective view on the language, its design, or the eval claims.
- Brief positive reaction, no substantive discussion (a few): The only comment is a one-word expression of approval. No one in the thread evaluated the language, the benchmarks, or the OpenLaszlo lineage.
#DSL #UILanguage #OpenLaszlo #Declarative #LLMTooling #Compiler