updated README and a bunch of other stuff

This commit is contained in:
Sebastian Moser
2026-11-04 20:24:14 +01:00
parent 6eedb1826a
commit 9707286375
46 changed files with 3725 additions and 172 deletions

View File

@@ -0,0 +1,18 @@
# Plan: dist publish + dist.mize.works (approved)
## Config
- `parts.workspaces`: list of dirs; each subdir is a part to build/upload
- `parts.dist.cd`: bool; when true artifact uses `-cd` instead of `-{version}`
## Publish (`mize.dev`)
- After build: pack each part `.so` under `lib/`, special part `mize` gets `libmize.so` + `bin/mize`
- Hash via `get_part_hash` with modName, system (target), mize_version
- Filename: `{hash}-{id}-{version}.tar.gz` or `{hash}-{id}-cd.tar.gz`
- rsync to `ocib:host/mize-dist/`
## fetch_part
- Base URL `https://dist.mize.works/`
- Same naming; ensure mize_version in selector
## ocib
- `~/host/docker-compose.yaml`: Traefik + kugland/darkhttpd serving `mize-dist` for `dist.mize.works`

View File

@@ -0,0 +1,14 @@
# load_part_at instances (priv.spacetime / ppc.spacetime)
Approved 2026-11-04.
## Goal
Instantiate the same `spacetime` `.so` under different part ids (`priv.spacetime`, `ppc.spacetime`), each with its own config namespace. Dependents use `Spacetime::get("priv.spacetime")` etc.
## Changes
1. Platform `load_part(part_name, path, at_id)` via `get_global_mize()`; save/restore `cur_eval_part`.
2. Rename `Mize::load_part_at` → `load_part_from_path`.
3. `config::load_part_at(at_id, part_name)` — no-op in generate mode.
4. Codegen: special SpacetimeDB client gen when `gen` contains `"spacetime"`, module at `{cwd}/spacetime` if present.
5. `sci`: `gen += spacetime`, `load_part_at("priv.spacetime", "spacetime")`.
6. New `mize/parts/ppc`: loads `ppc.spacetime`.