An unofficial, read-only Hacker News reader.

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

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

View full thread · View on Hacker News

Comment thread (3)

  1. Not sure how it supposed to be used. Its a whole new language with its own constructs and rules, no training data for LLMs to use it well, syntax is questionable, and as much as it tries to stay declarative its already clear that it can't: onClick() { v = (v + 20) % 100 }

    At this point I don't see any pros compared to any existing reactive framework.

    Replies (2)
    1. Exactly, to any React dev JSX is much clearer than this.
    2. My main complaint as well. It looks nice, but not at all clear why I'd want it when highly similar xplat declarative ui systems are established and part of training data.

      The syntax actually seems more a simplified subset of things like Compose and SwiftUI geared towards _human_ readability, to the _detriment_ of the AI