An unofficial, read-only Hacker News reader.

Declare is a UI language for you and your AI (opens external site)

127 points by ilamont 5 days ago | davidtemkin.github.io | 98 comments on HN

View full thread · View on Hacker News

Comment thread (2)

  1. Real frameworks also give Ai agents a massive advantage in tooling - mature typecheckers, linters, and test runners. When an agent edits Compose or TypeScript React, it gets super clear feedback loops to self-correct, which is hard to match in a brand-new DSL

    Honestly, Jetpack Compose and SwiftUI already nailed concise declarative UI, and they have the huge advantage of living inside full-blown languages like Kotlin and Swift so you don't hit a wall when logic gets complex

    Replies (1)
    1. The language and tools here are very much adapted to LLMs. The error messages, the verification process, etc -- all optimized for AI use. It's counterintuitive but having a language that an LLM learns from context vs pre-training has some advantages. The language itself was shaped by watching the evals and where it broke.

      A more closed language would be even more effective on this dimension but I didn't want to give up expressiveness / ability to make truly custom UX. That's been a big part of this project...

      (this is my project...)