docs: "The GPUI front end" in docs/ui.md, the spikes report's status and notes, README
docs/ui.md gains the section "The GPUI front end": what exists (the crate's files and what each does), the root state and its three loops (the engine's events through a foreground task, the one-second tick, Later for other threads, and why Later exists: GPUI's AsyncApp is not Send), the tests and why they use gpui-pre's test-support and not gpui-kit's, how to run it (what GPUI needs at run time: Vulkan or OpenGL, lavapipe in software, a window manager on X11), the development switches in a table, how the screenshots are made (scripts/gpui-shot.sh, and the NixOS recipe over the spikes' headless display) with the two swatch pictures, the theme in its two layers with the mapping from the Voelin tokens to gpui-component's ThemeColor fields, the mode, Inter and Lucide, and what is next: the plan's slices 1 to 9 with what each takes from the Bridge, the conditions the spikes set (the emoji patch before chat, a GPU run before the viewer, Wayland's preedit) and the steps around them. docs/design/gpui-spikes.md: the status paragraph says the foundation of step 3 landed (items 1 to 4 and 6 of its list; the shell is next) and points to docs/ui.md; "Before step 3 can start" and "Dependencies" say the Rust move and the ashpd move are done, with what zbus does with both features and the test that calls ashpd with no tokio runtime; the size bullet gives what gpui-kit adds to the root lock (279 entries, about 195 packages on Linux, two new licences); a paragraph after the first slice's list says which items are done and how. README.md: the crate's bullet says what the window has so far. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
a2fad4569a
commit
172d6247c6
3 files changed
+225
-7
No files matched your search
@@ -18,7 +18,12 @@ exception is explained (a counter window longer than the case). Step 3
|
||||
(2026-10-27) rebuilt the three spikes on `gpui-kit` 0.8.1 of 2026-10-26 and
|
||||
ran each README's measurement command once: they build, every check passes
|
||||
and the per-frame cost is 0.8.0's, so the pin is 0.8.1 ("The version to
|
||||
pin"); the figures on this page are still 0.8.0's.
|
||||
pin"); the figures on this page are still 0.8.0's. The same day the
|
||||
foundation of step 3 landed on `phase5/gpui-foundation` (items 1 to 4 and 6
|
||||
of "What step 3's first slice must contain": Rust 1.95, ashpd on `async-io`,
|
||||
the `voelin-gpui` crate with its root entity, the theme with Inter and Lucide,
|
||||
the cost meter; item 5, the shell, is next): what exists, how to run it and
|
||||
the slices that follow are in [docs/ui.md](../ui.md), "The GPUI front end".
|
||||
|
||||
| Spike | The plan's no-go | Seen (software rendering, see Setup) | Verdict |
|
||||
|---|---|---|---|
|
||||
@@ -28,7 +33,8 @@ pin"); the figures on this page are still 0.8.0's.
|
||||
|
||||
Before step 3 can start: Rust 1.95 for the client (no `gpui-kit` builds on
|
||||
1.94) and the client's ashpd on `async-io` (GPUI's and the client's ashpd
|
||||
features cannot be built together); both are under "Settled for step 3".
|
||||
features cannot be built together); both are under "Settled for step 3", and
|
||||
both are done (the first two commits of `phase5/gpui-foundation`).
|
||||
|
||||
## Setup
|
||||
|
||||
@@ -457,8 +463,24 @@ the raw source's `for n in 0u64..` in `spikes/gpui/video/src/main.rs`, now
|
||||
(X11 capture and hotkeys only). **Step 3 must move the client's ashpd use
|
||||
to `async-io`** before `voelin-ui` can depend on gpui-kit with PipeWire
|
||||
capture and the portal hotkey; zbus with `async-io` runs its own I/O
|
||||
thread, so it does not need GPUI's executor.
|
||||
- **Size and compile time.** The spikes' lock has 1,069 packages; the
|
||||
thread, so it does not need GPUI's executor. *Done:* voelin-media's
|
||||
`pipewire` and voelin-platform's `portal` features ask ashpd for `async-io`,
|
||||
and `voelin-gpui` holds both (it depends on `voelin-core` with
|
||||
`media-desktop`, which brings PipeWire, and on `voelin-platform` with its
|
||||
portal feature). What zbus 5.19 does with the features (read in its
|
||||
source): with `async-io` and `tokio` both compiled in it picks per
|
||||
connection, tokio when a tokio runtime is current on the calling thread and
|
||||
`async-io` with an I/O thread of its own otherwise. The workspace has both
|
||||
on already (notify-rust asks for `tokio`, others for the defaults), so the
|
||||
engine's portal calls inside its runtime still run on tokio and a caller
|
||||
with no runtime (a GPUI foreground task) gets the thread; a test in
|
||||
voelin-platform (`tests/proxy.rs`) calls ashpd from a thread with no tokio
|
||||
runtime and gets the answer.
|
||||
- **Size and compile time.** In the root workspace, which already carries
|
||||
Slint's and the codecs' dependencies, gpui-kit adds 279 entries to
|
||||
`Cargo.lock` (208 new names; about 195 packages on Linux), and cargo deny
|
||||
needed two licences it had not allowed, 0BSD and CC0-1.0. The spikes' lock
|
||||
has 1,069 packages; the
|
||||
release binaries are 390 to 480 MB with line tables. A full debug build
|
||||
of the workspace with a toolchain it had not built with before (nightly)
|
||||
took 3 min 14 s on the 32 threads at a load average around 90.
|
||||
@@ -577,6 +599,19 @@ and size tokens.
|
||||
Not in it: video (slice 6) needs the decision of spike 1's "What a real GPU
|
||||
changes"; emoji need the patch above before the chat slice (4).
|
||||
|
||||
Items 1, 2, 3, 4 and 6 are done on `phase5/gpui-foundation` (2026-10-27), a
|
||||
commit each (item 1 as two, item 2 as two: the spikes rebuilt on 0.8.1, then
|
||||
the crate; item 4 with one small follow-up): Rust 1.95.0 and the seven lints
|
||||
it adds; ashpd on `async-io`; `crates/voelin-gpui`
|
||||
on `gpui-kit = "=0.8.1"`; the root `Entity<AppState>` with the engine's events,
|
||||
the one-second tick and `Later`; `VoelinTheme`, Inter and the client's Lucide
|
||||
set; the meter as `VOELIN_METER=1`. The crate is named `voelin-gpui` (binary
|
||||
`voelin-gpui`), the choices below stayed as the report leaves them except
|
||||
those named in docs/ui.md ("The GPUI front end"): the theme's second layer is
|
||||
written as a `ThemeColor` mapping (a table there), and the client's Lucide set
|
||||
is served under gpui-component's `icons/` paths. Item 5, the shell, is the
|
||||
next task.
|
||||
|
||||
### The risks of plan section 6, against what was seen
|
||||
|
||||
| Risk (plan) | Seen |
|
||||
|
||||
Reference in new issue
Block a user