| ▲ | Declare is a UI language for you and your AI(davidtemkin.github.io) | ||||||||||||||||||||||||||||||||||
| 71 points by ilamont 12 hours ago | 49 comments | |||||||||||||||||||||||||||||||||||
| ▲ | saidinesh5 8 hours ago | parent | next [-] | ||||||||||||||||||||||||||||||||||
I think Qt/QML really reached hit sweet spot for me when it comes to describing UIs (ignore if any syntax errors, doing this from memory): For eg. compare this: ``` Window { textColor: "slategray" property int v: 40
}
```with Declare: ``` App [ textColor = slategray,
``` | |||||||||||||||||||||||||||||||||||
| |||||||||||||||||||||||||||||||||||
| ▲ | abrookewood 8 hours ago | parent | prev | next [-] | ||||||||||||||||||||||||||||||||||
The LLM language is pretty off putting: "Say what you mean. Exactly" and then in the code comments "// One value, v, and three things that follow it". It's such an awful way of writing. | |||||||||||||||||||||||||||||||||||
| |||||||||||||||||||||||||||||||||||
| ▲ | TonyAlicea10 an hour ago | parent | prev | next [-] | ||||||||||||||||||||||||||||||||||
It's extraordinary to me how many people are ok with having horrific Claudish fill the landing pages for their projects. For now, I would urge project creators to start using Neon for writing docs and landing pages. It's significantly better out of the box. | |||||||||||||||||||||||||||||||||||
| |||||||||||||||||||||||||||||||||||
| ▲ | mtford 9 hours ago | parent | prev | next [-] | ||||||||||||||||||||||||||||||||||
First contact marketing pages and core documentation should be written by a human. This sounded interesting but my eyes glazed over as soon as I detected the AI smell... | |||||||||||||||||||||||||||||||||||
| |||||||||||||||||||||||||||||||||||
| ▲ | samrus 8 hours ago | parent | prev | next [-] | ||||||||||||||||||||||||||||||||||
The claudish here got unreadable after a while. The project's thesis really should be written by a human. Shame becuase it seems like an interesting idea | |||||||||||||||||||||||||||||||||||
| ▲ | skybrian 9 hours ago | parent | prev | next [-] | ||||||||||||||||||||||||||||||||||
This looks quite nicely done. I'm reluctant to try it solely because the website has so much marketing-style writing (probably AI-generated) and I'm not sure I want to read more of it. It should probably say up front that this is an npm package along with the tooling for it, and the output runs in a browser. | |||||||||||||||||||||||||||||||||||
| |||||||||||||||||||||||||||||||||||
| ▲ | cryptos 6 hours ago | parent | prev | next [-] | ||||||||||||||||||||||||||||||||||
I like the idea somewhat, however, I have the vague feeling that it is not really simpler than actual UI frameworks like Vue.js or Compose[1]. My assumption is that a real framework is even better for AI. [1] https://kotlinlang.org/docs/multiplatform/compose-multiplatf... | |||||||||||||||||||||||||||||||||||
| ▲ | GrollingGrakbor 6 hours ago | parent | prev | next [-] | ||||||||||||||||||||||||||||||||||
Looks vaguely interesting. Unfortunately I had to stop reading after 1 minute. | |||||||||||||||||||||||||||||||||||
| ▲ | piterrro 7 hours ago | parent | prev | next [-] | ||||||||||||||||||||||||||||||||||
Interesting project, few ideas on the landing page: - Move docs to llms.txt too - Make one click copy prompt button for starting with an agent - Explain clearly how it can integrate with React or Vue - if I can embed a module in my already existing app - thats a great way to transition over time. - Play the “Agent” card more - these days nobody will learn new DLL, but having a way to quickly test it with my agent would convince more people to give it a try | |||||||||||||||||||||||||||||||||||
| ▲ | silok 5 hours ago | parent | prev | next [-] | ||||||||||||||||||||||||||||||||||
Looks very related to A2UI Express, https://developers.googleblog.com/fast-reliable-a2ui/ as well as OpenUI https://www.openui.com/docs/openui-lang/specification | |||||||||||||||||||||||||||||||||||
| |||||||||||||||||||||||||||||||||||
| ▲ | fleur-de-lotus 7 hours ago | parent | prev | next [-] | ||||||||||||||||||||||||||||||||||
Can this be used as a front-end to an app written in another language or can it call code written in another language? | |||||||||||||||||||||||||||||||||||
| ▲ | chr15m 6 hours ago | parent | prev | next [-] | ||||||||||||||||||||||||||||||||||
If you think this looks good, you should see Hiccup and Reagent. | |||||||||||||||||||||||||||||||||||
| ▲ | agnishom 9 hours ago | parent | prev | next [-] | ||||||||||||||||||||||||||||||||||
What has this got to do with AI? I like declarative frameworks, but why is this one special for AI? | |||||||||||||||||||||||||||||||||||
| ▲ | joddystreet 9 hours ago | parent | prev | next [-] | ||||||||||||||||||||||||||||||||||
I was working on a similar concept - Morpheus Snippet - ``` document ::= ( comment | blank )* screen-line body body ::= ( element-line | comment | blank )* element-line ::= indent kind [ name ] meaning* [ modifiers ] ``` | |||||||||||||||||||||||||||||||||||
| |||||||||||||||||||||||||||||||||||
| ▲ | sroerick 6 hours ago | parent | prev | next [-] | ||||||||||||||||||||||||||||||||||
This seems very well executed and solves a ton of the problems I've seen in UI with agents so far. | |||||||||||||||||||||||||||||||||||
| ▲ | moralcoral 7 hours ago | parent | prev | next [-] | ||||||||||||||||||||||||||||||||||
Hyperscript ... anyone? | |||||||||||||||||||||||||||||||||||
| ▲ | DeathArrow 8 hours ago | parent | prev | next [-] | ||||||||||||||||||||||||||||||||||
>Just as SQL is a domain-specific language for database queries, Declare is a DSL for user interfaces Isn't HTML a DSL for UI? What's wrong with it? | |||||||||||||||||||||||||||||||||||
| |||||||||||||||||||||||||||||||||||
| ▲ | mllev15 8 hours ago | parent | prev | next [-] | ||||||||||||||||||||||||||||||||||
It’s REBOL for the web. This is what you get when you don’t realize what your LLM is ripping off. | |||||||||||||||||||||||||||||||||||
| ▲ | designerarvid 8 hours ago | parent | prev | next [-] | ||||||||||||||||||||||||||||||||||
When are those switches in the tutorial on or off? And what do they do? “Show boxes”? UI used to strive for making it easy for users to understand the software’s mental model, current state, and possible actions. Now it’s about looking cool (the same as the other cool kids). | |||||||||||||||||||||||||||||||||||
| ▲ | koteelok 9 hours ago | parent | prev | next [-] | ||||||||||||||||||||||||||||||||||
Next time you try to build a UI tech, make sure your site isn't ugly. | |||||||||||||||||||||||||||||||||||
| ▲ | efskap 7 hours ago | parent | prev | next [-] | ||||||||||||||||||||||||||||||||||
The cursed green claude dot is now following my cursor for pete's sake | |||||||||||||||||||||||||||||||||||
| |||||||||||||||||||||||||||||||||||
| ▲ | jauntywundrkind 7 hours ago | parent | prev | next [-] | ||||||||||||||||||||||||||||||||||
Heximal looking very interesting on this front. A DOM-ish like system but wasm-driven, wasm-homed. Already virtualized out of the real dom. | |||||||||||||||||||||||||||||||||||
| ▲ | etchalon 7 hours ago | parent | prev | next [-] | ||||||||||||||||||||||||||||||||||
I just have a hard time with anyone who thinks you can make good UIs this way. "Declarative" UI has been tried, multiple times. It does not produce interesting UIs. It produces derivative, limited UIs that require deeply weird hacks to handle novel problems. XAML was a notoriously bad idea. This doesn't look much better than that. | |||||||||||||||||||||||||||||||||||
| ▲ | mehmetkose 6 hours ago | parent | prev | next [-] | ||||||||||||||||||||||||||||||||||
Anything related with UI makes me expect more than a slop look | |||||||||||||||||||||||||||||||||||
| ▲ | altern8 7 hours ago | parent | prev | next [-] | ||||||||||||||||||||||||||||||||||
Site looks pretty bad, with the classic AI gradients and 01, 02, 03 lists. Language is extremely annoying. I hate it | |||||||||||||||||||||||||||||||||||
| ▲ | Noamc0405 7 hours ago | parent | prev | next [-] | ||||||||||||||||||||||||||||||||||
interesting. What can it do? | |||||||||||||||||||||||||||||||||||
| ▲ | zobzu 10 hours ago | parent | prev | next [-] | ||||||||||||||||||||||||||||||||||
neat | |||||||||||||||||||||||||||||||||||
| ▲ | boxed 8 hours ago | parent | prev | next [-] | ||||||||||||||||||||||||||||||||||
It's not a UI language though, it's a typescript specific tooling system? | |||||||||||||||||||||||||||||||||||
| ▲ | lofaszvanitt 9 hours ago | parent | prev [-] | ||||||||||||||||||||||||||||||||||
The totally braindead syntax haunts again. Only rust syntax is uglier than this. | |||||||||||||||||||||||||||||||||||