# AI가 짠 UI 코드, 틀렸는지 컴파일러가 잡아낸다

Original title: Declare is a UI language for you and your AI

> Hacker News story 50622854 · language: ko · submitted 2026-11-24
> Web version: https://zeli.app/ko/story/50622854
> About this feed: https://zeli.app/llms.txt · Agent guide: https://zeli.app/skill.md

▲ 99 · by [ilamont](<https://news.ycombinator.com/user?id=ilamont>) · 💬 84
[original](<https://davidtemkin.github.io/declarelang/>) · [HN discussion](<https://news.ycombinator.com/item?id=50622854>)

## Summary

Declare는 레이아웃, 모션, 상태, 테마, 드로잉이 언어 자체에 내장된 UI 언어다. AI가 코드를 작성하면 컴파일러가 규칙 위반을 짚어주고 고칠 방법까지 제시한다. 같은 요구사항으로 티켓 구매 앱을 만들었을 때 Declare는 1,279줄로 첫 실행에 숨은 검사 11개를 모두 통과했고, React는 2,666줄에 6개만 통과했다. 단일 실행 결과이며 아직 벤치마크는 아니다.

## Key quote

> 당신의 AI는 코드를 작성할 수 있다. 하지만 그것이 틀렸는지 알 수 있는가? Declare에서는 그렇다.

## HN discussion (84 comments)

### [saidinesh5](<https://news.ycombinator.com/item?id=50624498>)

> UI를 서술하는 데 있어 Qt/QML이 정말 딱 좋은 지점에 도달했다고 생각합니다(문법 오류는 무시해 주세요, 기억나는 대로 쓰는 거라):
>
> 예를 들어, 다음을 비교해 보세요:
>
> \`\`\`
>
> Window {
>
> textColor: "slategray"
>
> property int v: 40
>
> ColumnLayout {
>
> id: layout
>
> anchors.fill: parent
>
> spacing: 20
>
> Text {
>
> id: number
>
> Layout.alignment: Qt.AlignHCenter
>
> font.pixelSize: 70
>
> text: v
>
> }
>
> ProgressBar {
>
> id: progressBar
>
> Layout.alignment: Qt.AlignHCenter
>
> value: v/100
>
> color: v < 50 ? "dodgerblue" : "turquoise"
>
> }
>
> }
>
> MouseArea {
>
> anchors.fill: parent
>
> onClick: v = (v+20)%100
>
> }
>
> }
>
> \`\`\`
>
> 그리고 Declare:
>
> \`\`\`
>
> App [ textColor = slategray,
>
> group: View [ x = center, y = center, width = 80%,
>
> layout: SimpleLayout [ axis = y, spacing = 20 ],
>
> number: Text [ width = 100%, textAlign = center,
>
> fontSize = 70, fontWeight = bold, text = { "" + v } ],
>
> bar: Gauge [ width = 100%, value = { v },
>
> tint = { v < 50 ? cool : warm }, accessibilityLabel = "v" ],
>
> hint: Text [ width = 100%, textAlign = center,
>
> text = "click anywhere to change v" ]
>
> ],
>
> v: number = 40,
>
> cool: Color = dodgerblue,
>
> warm: Color = turquoise,
>
> onClick() { v = (v + 20) % 100 }
>
> ]
>
> \`\`\`

### [abrookewood](<https://news.ycombinator.com/item?id=50624469>)

> LLM 말투가 꽤 거슬리네요: "Say what you mean. Exactly" 그리고 코드 주석에는 "// One value, v, and three things that follow it". 정말 형편없는 글쓰기 방식이에요.

### [samrus](<https://news.ycombinator.com/item?id=50624512>)

> 여기 클로드체는 읽다 보면 읽을 수 없게 되네요. 프로젝트의 논지는 정말 사람이 써야 합니다. 흥미로운 아이디어인 것 같아서 아쉽네요.

### [mtford](<https://news.ycombinator.com/item?id=50624171>)

> 첫 접촉 마케팅 페이지와 핵심 문서는 사람이 써야 합니다. 흥미로워 보였지만 AI 냄새를 감지하자마자 눈이 흐려졌어요...

### [skybrian](<https://news.ycombinator.com/item?id=50623917>)

> 꽤 잘 만든 것 같네요. 웹사이트에 마케팅 스타일 글(아마 AI 생성)이 너무 많아서 시도하기 꺼려집니다. 더 읽고 싶지 않네요.
>
> 아마 앞부분에 이것이 npm 패키지이고 그에 딸린 도구들이며 출력이 브라우저에서 실행된다고 말해야 할 것 같습니다.

---

## Cite

- Page: https://zeli.app/ko/story/50622854
- Date: 2026-11-24
- Source: davidtemkin.github.io (https://davidtemkin.github.io/declarelang/)
- Hacker News: https://news.ycombinator.com/item?id=50622854

## Other languages

- en: https://zeli.app/story/50622854 · markdown: https://zeli.app/story/50622854.md
- zh: https://zeli.app/zh/story/50622854 · markdown: https://zeli.app/zh/story/50622854.md
- ja: https://zeli.app/ja/story/50622854 · markdown: https://zeli.app/ja/story/50622854.md
- de: https://zeli.app/de/story/50622854 · markdown: https://zeli.app/de/story/50622854.md
- es: https://zeli.app/es/story/50622854 · markdown: https://zeli.app/es/story/50622854.md
- ru: https://zeli.app/ru/story/50622854 · markdown: https://zeli.app/ru/story/50622854.md
