Urgent.News

What's breaking now, across hundreds of outlets.

Tech

Raph Levien analisa o futuro das interfaces gráficas em Rust

Raph Levien avalia o futuro das interfaces gráficas em Rust e reúne recomendações para os próximos projetos da área. Em artigo publicado em 21 de novembro de 2026, ele retoma conselhos de 2022 e analisa como a IA, o desempenho e o avanço dos dispositivos móveis influenciam as escolhas de arquitetura. Rust segue como alternativa para interfaces Muitos aplicativos gráficos sofrem com baixo…

Original Portuguese Read in English

Raph Levien examines the future of graphical interfaces in Rust and shares recommendations for upcoming projects in this field. In an article published on November 21, 2026, he revisits advice from 2022 and considers how AI, performance, and advances in mobile devices impact architectural choices. Rust is seen as a viable alternative for graphical interfaces, with many graphical applications suffering from low performance, especially those built using multiplatform technologies.

System interface kits have seen little advancement, and the popularity of Electron has increased. Thin applications can bring tangible benefits due to memory constraints and growing mobile usage. Rust offers a practical approach to create high-performance interfaces, although adoption remains slow, with few well-known applications using this approach.

Levien cites the Zed editor, built with the GPUI framework, as evidence that a Rust-based graphical interface is possible. He considers GPUI suitable for Zed but not necessarily for general applications, as its 2D drawing mechanism is well-suited for text editors but lacks features such as comprehensive gradient support, layer mixing, and filters found in mechanisms like Vello and Skia.

GPUI is gaining traction in AI-assisted software rewrites, such as Discord's Phoenix plan. Levien predicts a wave of experimentation with different interface technologies, though there is no consensus on the strategy for this layer in the Rust ecosystem. AI may reduce the cost of developing in Rust, as tools can generate Rust code almost as easily as other languages.

The type system can facilitate maintenance of large codebases by enforcing invariants. The article recommends evaluating tools based on their qualities, without assuming a native interface is necessary for adequacy. In Windows, there is no clear native option; on Mac, there is fragmentation between AppKit and SwiftUI. Performance issues in SwiftUI open up space for alternative solutions.

Mobile devices favor hybrid approaches. Mobile systems continue to receive investment, and interaction details help an application feel integrated into the platform. Levien cites Liquid Glass on iOS: UIKit and SwiftUI provide access to features with little effort, while multiplatform tools may not reproduce the same appearance. Gestures, scrolling dynamics, and input method editors (IME) also need to adapt to each system's behavior.

Therefore, Levien considers it viable to use native interfaces and write shared application logic in Rust. He cites Shopify's recent decision to abandon React Native and Discord's Phoenix plan, which foresees native interfaces for mobile and GPUI for desktop. 1Password also follows this architecture. Advancements are being made in fully mobile interfaces built in Rust.

The android-view project demonstrates resources like IME that include swiping, moving the cursor through the space bar, and deleting semantic chunks. The project also offers basic accessibility support with AccessKit and composition regions necessary for languages like Chinese, Japanese, and Korean. Text and accessibility have a more solid foundation.

Text layout, an important difficulty for Rust interface kits in 2022, now has the Parley library. Google, Canva, Dioxus (now Cognition), and the community have contributed to its development; it is already used by most new Rust interface kits. Cosmic Text is an alternative that reduces dependence on a single solution. AccessKit has also matured and is used by most interface kits.

However, there is still work to make formatted text editing fully accessible and reduce performance losses when accessibility is active. Egui serves as an example, building and comparing the accessibility tree on every animation frame can diminish the gains of immediate mode drawing. Composition and graphics architecture remain open.

Using the system's compositor continues to be a challenge, especially for hardware-accelerated video playback. The subduction library represents some progress, but it is not yet widely integrated into interface kits. Levien proposes a high-level interface that can leverage CALayer on Apple platforms and platform-specific adaptations elsewhere.

On Android, composition could use SurfaceFlinger layers for simple controls over video playback and GPU shaders for more complex operations. Levien advocates for developing this infrastructure as a high-quality community project capable of handling platform differences. The choice between immediate and retained mode depends on each application's needs.

Immediate mode reduces code quantity and can work well in gaming development tools, but productivity applications require stable component identities, reliable tree accessibility updates, and caching of heavy operations like text layout. Egui is a good immediate mode implementation in Rust, with accessibility features, but it would not be his first choice for productivity and design applications.

He also notes that this approach might make it harder to use compositor layers and maintain cached operations. Smaller modules could help AI tools, as models tend to work better with clearly scoped modules, defined objectives, and consistent specifications.

Rewritten by urgent.news; may contain errors — check the original.

Source: dev.to

Read the original at dev.to →

Report a problem with this story

More in Tech

Lambda Is No Longer Just One Function: 10 AWS Changes Before re:Invent 2026

Do you know what your Lambda function is called today? Just "Lambda function"? Well, not anymore. Event Function. AWS renamed it on October 12, 2026, and you probably haven't even heard about it.

  • AWS renamed Lambda functions to "Event Functions," "Web Functions," and "MicroVMs."
  • Event Functions react to events and run on demand.
  • MicroVMs provide isolated serverless environments with an 8-hour running limit.

Three Candidates for One Tool Slot — Pricing Our MCP Server's Third Tool

Three Candidates for One Tool Slot — Pricing Our MCP Server's Third Tool A few days ago I published the audit of our MCP server, nova-ops-nim-mcp : two tools, 790 serialized characters, roughly 198…

  • Candidate 1, nimgetjobstatus, strongest on value but increases schema to 1,028 chars
  • Candidate 2, nimupscaleimage, cheapest option but no current workflow need
  • Candidate 3, nimcreatemedia, most feature-rich but most expensive at 1,449 chars

Which Companies Are Hiring Data Engineers? Track Job Openings on Greenhouse, Lever, Ashby and Workday Career Sites with Python

Job boards are a few days late and full of reposts. If you want to know which companies are hiring for a role right now, the most reliable place to look is each company's own career site.

  • Python script scrapes Greenhouse, Lever, Ashby, Workday career sites
  • Apify Actor returns consistent job data across all systems
  • Tracks data and machine learning engineering job openings

How Tamagotchis got us hooked on digital pets

If you were are a kid in the late 1990s, there's a near-100 percent chance you either had a Tamagotchi or knew someone who did. The tiny digital pets came out of nowhere and became an overnight sensation, as millions of kids signed up to parent a crying, hungry, constantly dirty creature. Until they went […]

More from Sunday 22 November →