News for hackers. Stuff that matters.
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?
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.
Re:Xilem: An Architecture for UI in Rust by __jem on Saturday May 07, 2022 @06:52PM (#31299373)
So that you don't have to ship an entire web browser for your application.