# Xilem : Rust를 위한 새로운 UI 아키텍처 제안

> Clean Markdown view of GeekNews topic #6519. Use the original source for factual precision when an external source URL is present.

## Metadata

- GeekNews HTML: [https://news.hada.io/topic?id=6519](https://news.hada.io/topic?id=6519)
- GeekNews Markdown: [https://news.hada.io/topic/6519.md](https://news.hada.io/topic/6519.md)
- Type: news
- Author: [xguru](https://news.hada.io/@xguru)
- Published: 2022-05-10T10:17:04+09:00
- Updated: 2022-05-10T10:17:04+09:00
- Original source: [raphlinus.github.io](https://raphlinus.github.io/rust/gui/2022/05/07/ui-architecture.html)
- Points: 11
- Comments: 2

## Topic Body

- Rust는 성능과 안전성면에서 UI를 구축하는데 매력적이지만, 좋은 아키텍처를 찾는 것이 어려움   
- 다른 언어에서 잘 동작하는 아키텍처들은 일반적으로 Rust에 잘 안 맞음  
→ 대부분 Shared mutable state에 의존하며 그것은 Rust에서 잘 쓰이지 않기 때문  
- 그래서 고성능, Reactive, Declarative UI 아키텍처인 Xilem을 제안   
→ SwiftUI, Flutter, React 와 비슷하면서도 idiomatic Rust를 지향   
- Xilem은 간단한 선언형 UI인 View tree 기반으로 지속적으로 동기화 하는 방식을 이용   
  - 트리는 매우 짧게 존재하며, UI가 업데이트 될때마다 새로운 트리가 생성됨

## Comments



### Comment 9963

- Author: xguru
- Created: 2022-05-10T10:17:16+09:00
- Points: 1

Rust 용 Data-first UI 디자인 툴킷인 [Druid](https://github.com/linebender/druid) 를 만들었던 사람의 제안 글이네요.   
꽤 긴글이라 도입부만 옮겨봅니다. 결과물이 나와봐야 알 것 같아요.

### Comment 9971

- Author: lifthrasiir
- Created: 2022-05-10T12:19:11+09:00
- Points: 2
- Parent comment: 9963
- Depth: 1

Raph Levien은 사실 Druid만으로 말하기에는 너무 부족한 사람인데... (GPL) Ghostscript 메인테이너, Advogato 블로그 커뮤니티, Inconsolata 글꼴, Xi 편집기 등으로 예전부터 유명합니다.
