gioser

tawasuyu/llimphi

Sovereign retained-mode GPU UI framework in Rust (wgpu+vello+taffy+parley), Elm loop, 40+ widgets.

Rust 660Markdown 302TOML 157RON 312382 Definiciones

⎇ main llimphi-wasm-runner/README.md Markdown · 23 líneas · 935 B Historia crudo

chore: refresco desde el monorepo — 27 crates nuevos (anim, lottie, svg, mesh, image, layer, test, wire-view, widgets rag-sidebar/router/lazy-list/rive-button) y sync de los 95 existentes 93253cc22 · Sergio ·

1# llimphi-wasm-runner
2
3The host side of Tier 3 WASM apps.
4
5`WasmGuest` loads a `.wasm` following the `llimphi-wasm-app-sdk` ABI, instantiates
6it with wasmi and runs its Elm loop:
7
81. `wasm_init` builds the guest's `Model` (it lives in the instance).
92. `wasm_view` returns a serialized `WireNode`; we deserialize and cache it.
103. `wire_to_view` materializes it into a real Llimphi `View<RunnerMsg>`.
114. A click emits `RunnerMsg::Guest(bytes)`; `WasmGuest::dispatch` bounces those
12   bytes back to `wasm_dispatch` and refreshes the view.
13
14The host keeps a single live `Store` per app, so the `Model` persists between
15frames — exactly Llimphi's Elm contract, only with the transition running on the
16other side of the WASM boundary.
17
18It is the Linux-side twin of wawa's WASM app executor (`sys_render_frame` +
19capabilities by physical boundary): the same spirit, another host.
20
21---
22
23Part of **llimphi** — see [llimphi](../README.md).

README.md

llimphi-wasm-runner

The host side of Tier 3 WASM apps.

WasmGuest loads a .wasm following the llimphi-wasm-app-sdk ABI, instantiates it with wasmi and runs its Elm loop:

  1. wasm_init builds the guest's Model (it lives in the instance).
  2. wasm_view returns a serialized WireNode; we deserialize and cache it.
  3. wire_to_view materializes it into a real Llimphi View<RunnerMsg>.
  4. A click emits RunnerMsg::Guest(bytes); WasmGuest::dispatch bounces those bytes back to wasm_dispatch and refreshes the view.

The host keeps a single live Store per app, so the Model persists between frames — exactly Llimphi's Elm contract, only with the transition running on the other side of the WASM boundary.

It is the Linux-side twin of wawa's WASM app executor (sys_render_frame + capabilities by physical boundary): the same spirit, another host.


Part of llimphi — see llimphi.