M3: app model — App, Entity, Context, typed events and globals (#4)

This commit was merged in pull request #4.
This commit is contained in:
nandi committed 2026-11-24 22:27:48 +00:00
1 parent cca9a49c51
commit 2a4aed1849
15 files changed
+1940 -8

No files matched your search

+4
View File
@@ -15,6 +15,7 @@ roadmap.
| `experiments/gpui/scene` | `scene.rs`, `bounds_tree.rs` | Ported (primitives, draw ordering, layers, batching, replay) |
| `experiments/gpui/font` | font descriptors in `text_system.rs` | Ported (`Font`, weights, styles, features, fallbacks) |
| `experiments/gpui/style` | `style.rs`, `styled.rs`, Refineable, gpui_macros style helpers | Ported (`Style`/`StyleRefinement`, the full `Styled` fluent API) |
| `experiments/gpui/app` | `app.rs`, `entity_map.rs`, `context.rs`, `subscription.rs` | Ported (entities, contexts, notify/observe, typed events and globals, effect flushing) |
| `experiments/gpui/layout` | `taffy.rs` | Ported on [`Milky2018/chicle`](https://mooncakes.io/docs/Milky2018/chicle) (flexbox, grid, block) |
## Example
@@ -37,6 +38,9 @@ moon run src/examples/card --target js
.text_color(@color.rgb(0x1f2328)).text_sm()
```
`src/examples/counter` shows the app model: two entities talking through
notifications, a typed event and a global (`moon run src/examples/counter --target js`).
The first example that renders in the browser comes with milestone M8; see
the roadmap.