The MoonBit host (wasmhost/, build/wasmhost) is the only host now. Gone: host-wasm/ (Rust on the wasmtime crate, ~5,700 lines incl. Cargo.lock), the run-rust, run-drm-rust and host-wasm recipes, and `just install --rust` (both the recipe and session/install.py now stop with an error naming the removal instead of quietly ignoring the flag). remote-build.sh builds and pulls build/wasmhost. README, wasmhost/README and docs no longer describe a second host, apart from short history notes. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01DPL5hiBxpbLoeUM9xfZayq
This commit is contained in:
31 files changed
+59
-5827
No files matched your search
@@ -219,7 +219,7 @@ using the **same WIT and the same build outputs** (the components are standard;
|
||||
only `host/` changes), then (c) from M5 as the path to real windows. The WIT stays
|
||||
host-agnostic: nothing in `wit/` mentions JS, a browser or a window system. What
|
||||
does **not** transfer is `host/src/desktop.mjs`; it is intentionally small
|
||||
(~200 lines) and is the executable spec for the Rust host.
|
||||
(~200 lines) and was the executable spec for the native host (now the MoonBit `wasmhost/`).
|
||||
|
||||
## 9. Interface catalogue
|
||||
|
||||
@@ -255,8 +255,8 @@ Designed next (no WIT yet): `window-registry`/`wm-policy`/`decoration`, `search-
|
||||
|
||||
## 11. Roadmap
|
||||
|
||||
> Status as of 2026-11-25: M0 is done; the native host (M3) exists as the MoonBit wasmhost
|
||||
> (default) and the Rust host-wasm; the compositor hosts real Wayland clients (M5, in MoonBit
|
||||
> Status as of 2026-11-26: M0 is done; the native host (M3) is the MoonBit wasmhost on the
|
||||
> wasmtime C API (a Rust host on the wasmtime crate came first and was removed on 2026-11-26); the compositor hosts real Wayland clients (M5, in MoonBit
|
||||
> rather than smithay) and runs as a DRM/KMS + libinput login session (M8). Settings, power and
|
||||
> clipboard from M6 are in; notifications, tray, vfs and packaging are not.
|
||||
|
||||
@@ -274,7 +274,7 @@ Designed next (no WIT yet): `window-registry`/`wm-policy`/`decoration`, `search-
|
||||
|
||||
## 12. Open design questions (with recommendations)
|
||||
|
||||
1. **Host language/long-term host** — Rust+wasmtime native host vs trying to keep even the host in MoonBit. *Recommend Rust+wasmtime for M3; revisit MoonBit-native host only if wasmtime's C API gains full component embedding.*
|
||||
1. **Host language/long-term host** — Rust+wasmtime native host vs trying to keep even the host in MoonBit. *Recommend Rust+wasmtime for M3; revisit MoonBit-native host only if wasmtime's C API gains full component embedding.* Resolved: the host is MoonBit (`wasmhost/`) on the wasmtime C API, whose component model support turned out to be enough; the Rust host was removed on 2026-11-26.
|
||||
2. **Render-list vs textures** — *Recommend render-list as the default, `buffer-surface` resource only for non-vector content (§4).*
|
||||
3. **UI toolkit inside components** — adopt `moon-gpui` or a tiny immediate-mode helper (`lib/ui`)? *Recommend `lib/ui` until moon-gpui has a stable scene package and a flatten-to-draw-op adapter, then migrate widget internals; keep the WIT draw-op vocabulary as the stable boundary.*
|
||||
4. **Text and fonts** — host-provided shaping (`text` interface) vs components bundling a shaper. *Recommend host-provided: layout needs metrics from the same engine that rasterises.*
|
||||
|
||||
Reference in new issue
Block a user