← Sat, Nov 21 digest

Advice for the next 100 Rust GUIs

read article ↗ hn thread ↗

Raph Levien analyzes the current state of Rust GUI development, highlighting solved infrastructure blocks, architectural trade-offs between immediate and retained modes, and opportunities driven by AI.

read it Raph Levien provides a sharp, strategic architectural critique of the Rust GUI ecosystem, offering valuable insights for anyone building high-performance cross-platform software.

summary

Raph Levien reflects on the state of Rust GUI development, noting that while adoption has been slow, AI-driven rewrites and solved infrastructure pieces like Parley and AccessKit are changing the landscape. He analyzes the architectural tensions between immediate and retained mode, arguing that immediate mode struggles with scaling, accessibility, and compositor layers. He advocates for separating design and execution, adapting modular approaches like Xilem/Masonry, and focusing on performance optimization. Ultimately, he encourages developers to build bold, modular, and spec-driven UI systems.

key points

  1. Infrastructure hurdles like text layout (Parley) and accessibility (AccessKit) are largely solved, providing stable foundations for new toolkits.
  2. Immediate-mode frameworks scale poorly past the initial 90%, struggling with widget identity, caching, and compositor integration compared to retained-mode.
  3. AI-assisted engineering makes fine-grained, modular architectures like the Xilem/Masonry split more viable by allowing isolated optimization of execution engines.

who should read it

Systems and GUI developers interested in high-performance desktop or mobile architectures in Rust.

discussion mixed

consensus

Commenters generally agree that building custom GUIs in Rust requires an immense amount of meticulous detail work and is painfully slow compared to mature ecosystems, though the performance payoff can be worth it.

pushback

Some question why anyone would write UI in Rust over using mature frameworks like Flutter via bridges, or argue that language choice is irrelevant now that AI writes code.

best comment by skhameneh ↗

I'm building a custom GUI in Rust and it is such a slow process to build out. I find bits of the end result to be amazing, but it's all in the details that look like nothing compared to using something more "complete" with a larger UI community.

I have some nice markdown rendering and phenomenally fast smooth scrolling - but I look at everything ahead of me, I don't even have text selection implemented yet, text wrapping and input cursor placement implementation wasn't that smooth to begin with. I have some amazing shader based animations, but the amount of effort that went into far exceed …

It provides a ground-level practitioner's perspective on the immense friction and detail work required to build a custom Rust GUI from scratch.

Generated by an LLM from the article and thread. Check the sources before relying on it.