# Raph Levien: AI is making Rust the go-to language for GUI rewrites

Original title: Advice for the next 100 Rust GUIs

> Hacker News story 50593737 · language: en · submitted 2026-11-21
> Web version: https://zeli.app/story/50593737
> About this feed: https://zeli.app/llms.txt · Agent guide: https://zeli.app/skill.md

▲ 253 · by [raphlinus](<https://news.ycombinator.com/user?id=raphlinus>) · 💬 148
[original](<https://linebender.org/blog/next-100-guis/>) · [HN discussion](<https://news.ycombinator.com/item?id=50593737>)

## Summary

Four and a half years after his first Rust GUI advice post, Raph Levien surveys a landscape transformed by AI. Writing Rust no longer costs more in LLM tokens than TypeScript, and its type system makes large codebases more maintainable, so Rust is becoming the default for AI-driven rewrites. Text layout and accessibility are largely solved by Parley and AccessKit, but system compositor integration remains open, and immediate-mode toolkits like egui may struggle to scale.

## Key quote

> So if all languages have roughly the same cost, then why not go with one that has a dramatically better combination of safety and performance?

## HN discussion (148 comments)

### [dafelst](<https://news.ycombinator.com/item?id=50595927>)

> I am constantly surprised how few mentions of Slint there are in these sorts of articles.  It's written by a team of funded ex-Qt alumni, is incredibly fast, and their DSL approach, while having a bit of a learning curve, makes laying out apps and managing data binding incredibly easy.
>
> They also bypass a big part of the issues mentioned in the article by just straight up using skia as a renderer on desktop (you can use others if you want) which gives software and gpu accelerated paths.
>
> I'm not associated with the project at all, but have been using it on and off for a couple years and have been quite satisfied.
>
> It's main weakness is rich text rendering which lacks maturity for complex layouts, but it is getting better all the time.

### [tauchunfall](<https://news.ycombinator.com/item?id=50595553>)

> The "2026 Survey of Rust GUI Libraries" does not include Native Shell (nsh) [1] which is retained-mode and based on gpui-fast.
>
> Maybe because the code repository was started on October 11th, just 1.5 months ago. More than 2,000 commits later it already looks great. I think, they do the (AI) software engineering part very well [2].
>
> After using GTK and JavaFX, and React for a decade, Native Shell makes me really excited. I never got warm with Flutter, the desktop applications were very slow on my MacBook. So I've been doing frontend development for more than 25 years, and I'm completely mind-blown for the last few weeks.
>
> Having a React background this feels very familiar, without the annoyances. Reactivity is inspired by Solid, styling by CSS (optionally with Tailwind syntax), the UI primitives are native views with layouting done by Taffy [3]. If you target web, the UI will be HTML. You can write the UI screens and components in Rust, but you can also use TypeScript/JSX, it will transpile and interpret it using Rolldown and QuickJS.
>
> It includes some components which are difficult to get right. A data table component, a rich-text editor component, and a plot component. As far as I can tell, they chose the currently best-known approach for them.
>
> [1] https://nsh.dev/
>
> [2] https://github.com/longbridge/nsh/commits/main
>
> [3] https://nsh.dev/elements/

### [codedokode](<https://news.ycombinator.com/item?id=50600195>)

> I think immediate-mode UI is awful (does lot of useless work, redraws whole window on every mouse move). Also I think GPU support is not that important:
>
> \- first, GPU requires shaders compilation which is slow so you need CPU renderer anyway
>
> \- second, not all GPUs are supported, not all have drivers, some are buggy and many machines, like VM, do not have a GPU
>
> \- third, it probably uses lot of memory
>
> You don't need a GPU to add one letter to a text field.
>
> I did some tests in a GPU-less VM, using one x86-64 core. The test simply rendered black and white 4K frames. Rendering to memory gave numbers like 360 fps (and ~8GiB/s of RAM writes). Rendering to X server via SHM produced something about 80 fps, the X server used 50% of the core and the program used other 50%. But many users have much smaller screens, and you typically do not need to redraw whole window every frame.
>
> So you can render everything on a CPU and, if the user has a GPU, use it to accelerate drawing rounded rectangles which make probably 90% of GUI.

### [skhameneh](<https://news.ycombinator.com/item?id=50595515>)

> 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 anything else I could have picked for a foundation.
>
> I started with Typescript and kept running into performance issues - it was fast to build and easy to scale, but kept becoming harder to maintain.  With Rust it feels hard to build, hard to scale, but it feels like scaling and maintaining might be starting to get easier.  The performance ceiling is a night a day difference though.

### [faceless3](<https://news.ycombinator.com/item?id=50599849>)

> I'm running nightly performance comparison between all recently hyped GUI frameworks (rust and not rust) https://samoylenkodmitry.github.io/Cranpose/?tab=performance
>
> It tests both immediate and retained heavy layouts on the same hardware (Mac M3Pro)

### [dv_dt](<https://news.ycombinator.com/item?id=50594973>)

> I found Qts signal/slot system very nice to work with to help with bridging the application logic to UI events and flows.  Maybe rust's generic async is all you need, but I suspect that a GUI should probably have some opinion of how it interacts with async.

### [raincole](<https://news.ycombinator.com/item?id=50597221>)

> \> Immediate vs retained mode
>
> \> For this reason among others, I am not impressed by the choice of the ArtCraft projects to use egui
>
> ArtCraft apps are incredibly snappy, and they've convinced me that the stigma surrounding immediate mode is unwarranted.

### [weinzierl](<https://news.ycombinator.com/item?id=50595690>)

> "You really want a video playing in a hardware accelerated layer when possible, and on low end devices it’s the only hope for getting smooth frame rates."
>
> I hit this recently trying to play  video in Bevy efficiently.
>
> I thought that must be easy, 
>
> but ended up with frames copied into a texture and composited by the engine, because the app owns just one swapchain and the video can't get its own layer.

---

## Cite

- Page: https://zeli.app/story/50593737
- Date: 2026-11-21
- Source: linebender.org (https://linebender.org/blog/next-100-guis/)
- Hacker News: https://news.ycombinator.com/item?id=50593737

## Other languages

- zh: https://zeli.app/zh/story/50593737 · markdown: https://zeli.app/zh/story/50593737.md
- ja: https://zeli.app/ja/story/50593737 · markdown: https://zeli.app/ja/story/50593737.md
- ko: https://zeli.app/ko/story/50593737 · markdown: https://zeli.app/ko/story/50593737.md
- de: https://zeli.app/de/story/50593737 · markdown: https://zeli.app/de/story/50593737.md
- es: https://zeli.app/es/story/50593737 · markdown: https://zeli.app/es/story/50593737.md
- ru: https://zeli.app/ru/story/50593737 · markdown: https://zeli.app/ru/story/50593737.md
