← Tue, Nov 24 digest

Declare is a UI language for you and your AI

read article ↗ hn thread ↗

David Temkin released Declare, a new UI domain-specific language designed to be written, compiled, and verified by AI agents using fine-grained reactive constraints.

summary is enough The concept of an AI-optimized UI DSL is interesting, but the landing page's heavy AI-generated copywriting overshadows the technical depth.

summary

Declare is a new UI language created by OpenLaszlo co-founder David Temkin, built to let AI agents write expressive, verifiable user interfaces. It replaces virtual DOM frameworks with fine-grained reactive constraints, integrated layout and motion, and a strict compiler. Commenters heavily criticized the landing page's dramatic AI-generated prose, though the creator engaged directly to defend the underlying architecture. The project offers a distinct alternative to mainstream component stacks for agent-driven development.

key points

  1. Declare uses fine-grained reactive constraints and a strict compiler instead of React-style virtual DOM diffing or runtime hooks.
  2. Layout, motion, styling, and drawing are built directly into the language grammar rather than bolted on via libraries.
  3. The project's author acknowledged heavy criticism regarding the landing page's AI-generated copywriting while highlighting its OpenLaszlo heritage.

who should read it

Frontend engineers and developers tracking AI-assisted coding paradigms and novel UI language design.

discussion skeptical

consensus

Commenters universally criticized the heavy, dramatic AI-generated writing style on the landing page, which overshadowed the technical launch.

pushback

Some argued that creating a brand-new DSL harms AI performance because models lack massive pre-training corpora compared to React or Jetpack Compose.

best comment by davidtemkin ↗

(project builder here) I'll own up to the marketing-y prose on the homepage. Lesson learned. And yes there is AI prose / locution / diction there. Apologies.

But, there's a lot of actual craftsmanship in the project. (Or at least it's taken real work and thinking over a long period of time; you be the judge).

Do take a look at the FAQ, and "Why" under "Learn", you might find things you like. And the calendar example too.

I fell into a bit of a trap on the prose, which is ironic considering I've edited actual publications and been a journalist... years ago

The project creator responds directly to the criticism, apologizing for the AI marketing copy while pointing out the genuine technical depth in the architecture.

Generated by an LLM from the article and thread. Check the sources before relying on it.