Re:Xilem: An Architecture for UI in Rust
by coryvirokmobile on Saturday May 07, 2022 @06:32PM
(#31299253)
Apologies for the noob question, but why reinvent the wheel when we have HTML/DOM/CSS?
[ Parent
| on HN ]
Re:Xilem: An Architecture for UI in Rust
by chriskrycho on Saturday May 07, 2022 @06:57PM
(#31299408)
Besides the (correct!) sibling comment: the idea here is to provide underlying primitives which can then be used to express UI in a variety of contexts, first of all native UIs but (as the post notes at the end) also including the DOM. For example, people have implemented experiments which use SwiftUI for authoring HTML, and you can use React to author native UI (React Native, but also e.g. the Raycast widget system), text UIs, etc.