📄 The task 0:00
A backend writes a log that grows to a few million lines a day, a batch of payments fails overnight, and a text editor dies trying to open the file. So: a small desktop tool that opens it, searches it, and filters by level. Rust, because the searching has to be fast.
This is the right kind of example for a library comparison because the constraint that matters is not visual: it is that a search must sweep millions of lines without freezing the window, and that both ends of the pipeline — the scan and the rendering — happen in one process. Every library is judged against the same two requirements, so the differences that show up are architectural rather than cosmetic.
One note on the source: the names arrive in the audio mangled — "GPU I" is GPUI, "Dioxi" is Dioxus, "Xylem" is Xilem, "Rome 4" is Relm4, the Iced author is Héctor Ramón, and egui's creator is Emil Ernerfeldt. Corrected throughout; the video itself is accurate about the architecture.
🧩 The hard part of any GUI 0:55
"Every GUI library draws widgets and tells us when something happens to them. The harder job is keeping the screen in step with our data."
| Easy part | Hard part |
| Drawing a widget | Knowing it must change when data changes |
| Reporting a click | Routing that click to exactly one place that may act on it |
| A widget tree | A rule that says "when the search text changes, update the list" |
Stating it this way is what makes the rest of the video land. The differences between these libraries are not stylistic preferences about syntax; they are four different answers to one question about data flow. That is also why comparing screenshots of example apps tells you nothing.
🔒 Why Rust fights the widget tree 1:24
| Classic toolkit design | What Rust's rule says |
| The window owns a panel, the panel owns a search box and a list | Fine — one owner for each value |
| Children often need a way back to their parent | Now two parts point at the same thing |
| A callback changes the list the panel is also holding | Mutating through a shared reference |
| Three places want the current filter text | Shared mutable state |
The compiler is not being difficult; it is refusing a design that produces a specific family of bugs. The video puts it well: every value has one owner, others may borrow it — many at once to read, or one at a time to change. A widget tree with callbacks violates that in three separate ways, so it does not compile.
And the escape hatch has an honest price: you can share with reference counting and move the borrow check from compile time to runtime. The code compiles, becomes noisier, and if two parts mutate at once the program panics — while a user is using it. A GUI hitting a panic mid-session is worse than a compile error, which is exactly why the Rust GUI ecosystem exists in its current shape.
❓ Two questions 3:15
| Question | Answers |
| Who draws the pixels? | A web view the OS already ships — the interface is HTML and JavaScript in a desktop window Candidates — the library draws to the GPU itself |
| What happens when data changes? | Immediate mode — forget the screen and describe it again Retained mode — keep widgets alive, patch what changed In between — build a light description, diff it against the last one |
Two questions that sort four libraries is a genuinely useful piece of teaching, and the mapping falls out cleanly: egui is immediate mode with self-drawn pixels; Iced is the diffing middle with self-drawn pixels; Tauri is the web view with an explicit state machine behind it; GPUI is a hybrid that owns state centrally and rebuilds an element tree per frame.
🔎 The question underneath the questions 0:00
The video asks who draws the pixels and what happens on change. There is a third question that predicted everything else, and it is the one worth carrying into a decision: where does the borrow checker stop protecting you?
| Library | Where safety stops | What you get in exchange |
| egui | Nowhere — data is read-only while drawing | One function, no callbacks, no stored widget references |
| Iced | Nowhere — a single mutation point per message | The whole app's state transitions in one function |
| Tauri | At the serialisation boundary to the web half | Any frontend skill you already have, plus mobile targets |
| GPUI | At the central app context that owns the entities | Central ownership with change notification, and 120 fps |
GPUI's handles are the subtle one: your code never holds the data, it holds a ticket to ask a central context for the entity. That preserves the single-owner rule while giving you a way to reach data from anywhere — which is the same problem Rc<RefCell> solves, except the runtime owner is the framework rather than scattered cells. One owner, centrally, is much easier to reason about than many owners locally. It is also why the video's complaint about egui — logic spread across the drawing function — is the mirror image of GPUI's cost: you follow the framework's plan.
| Property | Detail |
| Creator | Emil Ernerfeldt |
| Model | Immediate mode — the whole interface is one function that runs whenever the screen must be drawn |
| The one line | if ui.button("Save file").clicked() { save(file); } draws the button and answers whether it was clicked |
| State | Your own struct — open file, search text, chosen level; egui reads it while drawing and lets go |
| Window and GPU | eframe, its official framework, drawing through wgpu |
| Portability | The same code compiles to WebAssembly and runs in a browser |
| Power | eframe only redraws on an event or an explicit request, so an idle window costs almost nothing |
| Real product | The Rerun viewer, from the company Ernerfeldt co-founded |
| Repository | About 32,400 stars, Apache-2.0 |
"Only redraws when something happens" answers the objection people raise first, and the project's own documentation is blunt on the trade: immediate mode is "easier to use, but less powerful". The reason is a layout paradox the video describes precisely — to centre a dialog you must know its size, to know its size you must lay out its contents, but laying out its contents also checks for clicks, which requires knowing where the dialog is. Retained mode escapes this by laying out first; immediate mode cannot, which is why centring and exact-width columns take extra work.
Two honest weak spots: the default look is a developer tool, and as the app grows — tabs, settings, a background loader — the code that mutates data ends up scattered through the drawing function. The first is cosmetic; the second is the reason to look at the next library.
| Piece | Role |
| State | One struct holding everything the app knows |
| Message | An enum of everything that can happen — text changed, level picked, file loaded |
| update | Takes one message; the only place in the program allowed to change state |
| view | Reads state, returns a description of the screen, changes nothing |
| Task | Background work that sends a message when it finishes, so loading arrives like a click |
"This circle fits Rust's rule neatly because view only ever reads the state, and update is the single place that changes it."
The message log is the feature people underestimate. Because every change arrives as a value, you can record it and replay it — and Iced 0.14 made that literal with time travel debugging, alongside reactive rendering, headless mode testing and first-class end-to-end testing. The version shipped on 7 December 2025; the video summarises it as smarter redrawing plus test and debug tooling, which is accurate and slightly undersells it.
| Cost | Detail |
| Boilerplate | Every user action needs a message; update grows with every feature |
| Pre-1.0 | Still 0.14 — new releases have required changes to existing code |
| Documentation | The official guide is still being written; much learning comes from examples |
| Real-world proof | System76's COSMIC desktop is built on libcosmic, which is built on Iced |
A whole desktop environment on top of a pre-1.0 toolkit is the strongest evidence in the video, and it cuts both ways: the API churn is survivable when one organisation controls both the toolkit and its only massive consumer. If your team is not that organisation, budget for migrations — the "still not 1.0" line is a real cost, not a formality.
🧱 The wall both hit 10:12
egui and Iced draw every pixel themselves, so every widget, text box and chart must be written in Rust. If your team already builds web interfaces, or the chart you need only exists as a JavaScript library, that investment is unusable. This is not a criticism of either library — it is the boundary that makes the next two options worth existing.
| Platform | Engine used |
| Windows | WebView2, based on Microsoft Edge |
| macOS | WKWebView, the engine inside Safari |
| Linux | WebKitGTK |
| Aspect | Detail |
| Two halves | A web page the user sees, and a Rust program behind it doing the work |
| Bridge | Commands — Rust functions marked for exposure, called from the page through invoke, arguments and results serialised as text |
| Live updates | Channels, which keep sending data to the page in order |
| Size | Installs in a few megabytes because the engine is already on the machine — Electron ships its own Chromium copy and is usually 100 MB or more, depending on the app |
| v2 | Stable 2 October 2024: iOS and Android from the same project, plus capabilities |
| Capabilities | An allow-list of commands and features per window; anything absent is blocked, so bad code in the page cannot read files you never granted |
Capabilities are the most underrated security design in this comparison. Every other option here assumes the interface code is trusted; Tauri assumes the web half might be compromised and puts a typed allow-list between it and the filesystem. For a tool that opens a customer's log file, that is the difference between "the renderer has an RCE" and "the renderer has an RCE and cannot read anything".
Three costs, all real: three engines mean the same page can render slightly differently per platform, with WebKitGTK the usual source of complaints; every message crosses a serialisation boundary, so pushing two million log lines at once would make conversion the bottleneck — hence paging and a virtual list; and the part users look at is web code, which is precisely what one team decided they could not accept.
One thing the video leaves out: Tauri 3 is already in alpha — releases from October and November 2026 — so anyone starting a long-lived app today should plan for a version transition rather than assume v2 is the end state.
The origin story explains the design. Several Zed founders, including Nathan Sobo, worked on Atom; Atom ran on Electron, and Electron was originally created for Atom. After years of trying to make Atom faster, they concluded an editor built on a browser engine cannot outrun that engine — so they wrote their own library, designed more like a video game than a web page.
| Property | Detail |
| Target | Up to 120 frames per second — the whole screen ready in a little over eight milliseconds |
| Backends | Metal on macOS, DirectX 11 on Windows, wgpu on Linux since early 2026 |
| State | Entities owned by a central app context; your code holds a handle, not the data, and an entity can announce when it changes |
| Frames | Each frame the main view rebuilds a tree of elements, described with chained calls — div, flex, gap, background — the style Tailwind users already know |
| Layout | Taffy computes the exact size and position of every box |
| The log-viewer feature | A uniform list: if every row is the same height, measure one and derive the rest, drawing only what is on screen |
| Maturity | Zed reached v1.0.0 on 29 April 2026; the library is on crates.io |
"Scrolling two million lines costs about the same as fifty" is arithmetic, not magic, and it is the single most transferable idea in the video: if rows are uniform, you never need to measure the list, only one row. Uniformity buys the optimisation. The moment rows have variable height it gets harder — which is why so many fast viewers impose fixed-height rows.
The name in the video has changed, and the component count is higher than stated. The Longbridge widget set is now longbridge/gpui-kit — about 21,200 stars — with gpui-component as one crate inside a kit that ships 75+ documented components, WebAssembly support, AccessKit accessibility and headless UI integration testing. The other reservations stand: it is written for Zed first, the API moves when Zed's needs move, documentation is thin, and screen-reader support trails older toolkits. Zed's own release cadence shows the churn — roughly thirty minor versions between v1.0 and November 2026, about four or five a month.
🗺 The rest of the map 16:42
| Library | Bet | Stars |
| Slint | Its own small declarative language, compiled into fast Rust; strongest on memory-constrained devices like a coffee machine or a dashboard | 24,700 |
| Dioxus | Feels like React — components and hooks — rendering through a web view or an experimental native renderer | 39,900 |
| Xilem | A long-running research project from Linebender, aiming for a reactive design that fits Rust's rules naturally | 5,600 |
| GTK via gtk-rs, with Relm4 on top | Use the classic Linux desktop toolkit from Rust | 2,000 (Relm4) |
The four this video leads with get the attention, but the map is bigger and the choice is often not about the framework at all — it is about which ecosystem your team already speaks. Dioxus exists because React fluency is common; Relm4 exists because GTK applications are common; Slint exists because embedded screens are a different problem from desktop windows.
🧬 The shared substrate 17:32
| Crate | Job | Stars |
| winit | Opening windows | 6,300 |
| wgpu | Drawing on the GPU | 18,600 |
| Taffy | Computing layout | 3,800 |
| AccessKit | Describing widgets to screen readers | 1,600 |
"When one of these shared libraries fixes a bug or adds a feature, several GUI libraries improve at the same time, which helps explain how so many of them can survive side by side."
This is the most important economic observation in the video, and it reframes the usual complaint about too many Rust GUI libraries. They are not twenty competing full stacks; they are twenty different state-and-rendering strategies sharing four pieces of plumbing. That is why the ecosystem tolerates the duplication — and it also means a win in AccessKit or Taffy is a win everywhere, which is a better use of effort than another framework.
🎯 Picking one 17:58
| If this is true | Then |
| A tool for your own team, working by tomorrow | egui — immediate mode keeps the code short |
| Going to grow into a real application with many screens and several people | Iced — messages give every change one clear home |
| Your team writes web interfaces, or you need phones | Tauri — keep those skills, keep Rust for the heavy work |
| The point is scrolling millions of lines without a stutter, and you accept following Zed's API | GPUI — it was built for exactly that |
His rubric is honest because each answer names what you are giving up: speed of first version, discipline as the code grows, existing skills, or autonomy over your own roadmap. What it does not say, and should, is that the third row is a different kind of decision from the others — choosing Tauri means choosing a two-language architecture permanently, with a serialisation boundary you will spend real time on. It is not a Rust GUI library so much as a way to write a web app with a Rust backend.
✅ Claims checked
| Claim | Verdict | Evidence |
| egui is immediate mode, created by Emil Ernerfeldt | Correct | Repository describes it as "a simple, fast, highly portable immediate mode GUI library" |
| In egui a button line both draws and reports the click | Correct | Documented example: if ui.button("Save file").clicked() { save(file); } |
| eframe opens the window and draws through wgpu; the same code compiles to WebAssembly | Correct | eframe is the official framework, targeting web, Linux, macOS, Windows and Android |
| egui only redraws when something happens | Correct for eframe | Event-driven redraw with explicit requests |
| The Rerun viewer is built with egui | Correct | Cited by egui's own README as a professional example |
| Immediate mode makes layout harder | Correct, and self-documented | egui's docs call immediate mode "easier to use, but less powerful" and explain the layout paradox |
| Iced is inspired by Elm: state, message, update, view | Correct | Repository description, and demonstrated in the video |
| Iced 0.14 shipped in December 2025 with smarter redrawing and testing/debugging tools | Correct | 0.14.0 published 7 December 2025 — reactive rendering, time travel debugging, headless and end-to-end testing |
| Iced can fall back to tiny-skia without a usable GPU | Correct | tiny-skia is the CPU renderer, with damage tracking |
| Iced has not reached 1.0 | Correct | 0.14 is the current release line |
| System76's COSMIC desktop is built on libcosmic, which is built on Iced | Correct | Corroborated by Iced's own ecosystem references |
| Tauri uses the OS web view: WebView2, WKWebView, WebKitGTK | Correct | Per-platform engines as described |
| Tauri v2 became stable in October 2024 with mobile support and capabilities | Correct | tauri-v2.0.0 published 2 October 2024 |
| Tauri apps are a few megabytes; Electron apps usually 100 MB or more | Correct in the normal case | He notes the real size depends on the app; Electron ships Chromium |
| WebKitGTK is where developers report the most problems | Widely reported; not independently measured here | Consistent with the ecosystem's known complaints |
| Tauri v2 is the current line | Incomplete — Tauri 3 is already in alpha | v3.0.0-alpha.4/.5/.6 published October–November 2026 |
| Zed's founders came from Atom, and Electron was created for Atom | Correct | Nathan Sobo led Atom at GitHub |
| GPUI targets up to 120 fps, so a frame must be ready in a little over 8 ms | Arithmetic is right | 1000 / 120 ≈ 8.3 ms |
| Metal on macOS, DirectX 11 on Windows, wgpu on Linux since early 2026 | Consistent with Zed's platform work | Not independently re-verified per backend |
| Zed reached 1.0 in April 2026 | Correct — 29 April 2026 | v1.0.0 tag |
| A Longbridge project provides more than 60 ready-made widgets | Understated, and renamed | Now longbridge/gpui-kit, about 21,200 stars, 75+ documented components, with gpui-component as one crate inside it |
| Slint, Dioxus, Xilem and gtk-rs/Relm4 round out the map | All four exist as described | Slint 24,700★, Dioxus 39,900★, Xilem 5,600★ (Linebender), Relm4 2,000★ |
| Many of them share winit, wgpu, Taffy and AccessKit | Correct | All four crates exist and are widely used by these frameworks |
Basis note. Built from the full 18:50 video and checked against repository metadata, release tags and the projects' own documentation. Star counts were read at publication. The transcript mangles several proper nouns (GPUI, Dioxus, Xilem, Relm4, Héctor Ramón, Ernerfeldt); they are corrected here rather than transcribed. The observation about where the borrow checker stops protecting you, the capabilities-as-security point and the uniform-list generalisation are this article's.
🔑 Key takeaways
- Rust's GUI diversity is a consequence, not a fashion: the classic widget tree with callbacks does not compile.
- The escape hatch — shared mutable state — moves the failure from compile time to a panic in front of a user.
- Two questions sort the field: who draws the pixels, and what happens when data changes.
- Ask a third: where does the borrow checker stop protecting you? That is the real cost of each design.
- egui wins on time-to-first-version because one function, one struct, and no callbacks eliminate the ownership problem.
- But immediate mode cannot measure a group before placing it, so centring and exact widths cost extra — documented, not a rumour.
- Iced's message log is worth its boilerplate: one mutation point, and a recording you can replay.
- A pre-1.0 toolkit running a whole desktop is survivable only because one company owns both sides.
- Tauri's capabilities assume your interface may be compromised — a typed allow-list between the web half and the filesystem.
- Choosing Tauri means a permanent two-language architecture with a serialisation boundary you will maintain.
- GPUI's handle-to-central-context is shared ownership with one owner, which is why it keeps Rust's rule and still allows 120 fps.
- Uniform row heights are the trick behind fast lists: measure one row, derive the rest, draw only what is visible.
- The frameworks share winit, wgpu, Taffy and AccessKit — so a fix there improves all of them at once.
🔗 Resources
Basis note. No sponsor content, no affiliate links. Version dates and star counts come from the repositories; the presenter's rubric is quoted rather than paraphrased where it matters, and the two places where his summary is out of date — Tauri 3's alpha line and the renamed, larger GPUI widget kit — are flagged in both the sections and the claims table.
⏱ Timestamp index
0:00A log too big for an editor
0:22Rust, because searching must be fast
0:29The pile of library names
0:46Different bets, not different syntax
0:55Keeping the screen in step with data
1:24The classic widget tree
1:45Callbacks reaching across the tree
2:05One owner, many borrows
2:25Why it does not compile
2:37The runtime-checked escape hatch
2:54A panic while the user is working
3:15Question one: who draws the pixels
3:31Question two: what happens on change
4:43egui, by Emil Ernerfeldt
5:03One line draws and reports
5:21All state in one struct
5:49Compiled to WebAssembly
5:55Does redrawing waste power
6:10The afternoon prototype
6:36Can't measure before placing
6:56The developer-tool look
7:06Logic spread across drawing
7:54update, the only mutator
8:09Typing a letter, step by step
8:33Why the circle fits Rust
9:06wgpu, with tiny-skia fallback
9:18Version 0.14 and its tooling
9:51The cost: boilerplate
10:00Not yet 1.0, thin guide
10:12Everything has to be written in Rust
10:32Tauri answers question one differently
11:08Versus Electron's bundled Chromium
12:04The split suits the log viewer
12:13Channels for live lines
12:22v2: mobile and capabilities
12:48Trade-offs: engine divergence
13:11Two million lines at once
13:21Paging and virtual lists
13:38Zed, and why they left Electron
14:02GPUI, designed like a game
14:12120 fps, an eight-millisecond budget
14:36Entities, app context, handles
15:08Building an element tree per frame
15:21Chained styles, Tailwind-like
15:34Taffy does the layout
15:55Two million lines for the cost of fifty
16:04Zed 1.0 in April 2026
16:12The Longbridge widget set
16:19Written for Zed first
16:33Screen-reader support behind
17:14Xilem and Linebender
17:23GTK from Rust, and Relm4
17:32The shared crates underneath
17:58Choosing for the log viewer
18:23When the team writes web
18:34When nothing may stutter