summaryrefslogtreecommitdiff
path: root/docs/next-plumber.md
diff options
context:
space:
mode:
authorGabriel Schneider <[email protected]>2026-11-18 22:03:14 -0300
committerGabriel Schneider <[email protected]>2026-11-18 22:23:51 -0300
commit99f5b10eccd95aa0066ea6fe6bb75f367ab56a47 (patch)
tree813596ea84318a7bae4fd7416ba463de8e3b7107 /docs/next-plumber.md
parent92d553123673376adf6126ab90d49a22c5b833d2 (diff)
downloadpardes-99f5b10eccd95aa0066ea6fe6bb75f367ab56a47.tar.gz
pardes-99f5b10eccd95aa0066ea6fe6bb75f367ab56a47.zip
core: src/ becomes core/, pardes.zig its root.zig (the reorganisation's tree, step 2d), and every mention of a src/ path follows: the build's paths, the core's imports of its root, the tests that read the repository's files by path (lspbench's, look.zig's spans over core/look.zig), the comments that cite files, the documents and the manual (the typst corpus reads core/tutor.txt and core/plumbing); left as they were: the /src tree's served names (src/pardes.zig and the rest are the 9P tree's, not the repository's), the CHANGELOG's history, fixtures that are only strings; fs-unit-test runs from the core's root (a module of the core rooted at fs.zig had the runtime's and the devices' `core` be fs.zig); nothing else changes: the ledger (pardes.test.* now root.test.*), frames byte-identical, replicas and process-test the base's
Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_016Y9MNBECMWcJD5pdS4SR6T
Diffstat (limited to 'docs/next-plumber.md')
-rw-r--r--docs/next-plumber.md20
1 files changed, 10 insertions, 10 deletions
diff --git a/docs/next-plumber.md b/docs/next-plumber.md
index 178814b3..247d9928 100644
--- a/docs/next-plumber.md
+++ b/docs/next-plumber.md
@@ -43,7 +43,7 @@ including the user's uncommitted edits.
No user rule exists today: the user's init has no `Plumb` line. Two tests pin
the word: look.zig:2688 and test/behaviour/addons.zig:188.
- **The design.**
- - `src/Plumb.zig` owns the rules as text, which is replicated and dumped core
+ - `core/Plumb.zig` owns the rules as text, which is replicated and dumped core
state, plus the ports this session has named.
- Its matcher is a pure function of the rules and a message. The exceptions
are `isfile`/`isdir`, which resolve a name exactly as Look does, through
@@ -306,7 +306,7 @@ The hover, the n/N walk and lineSpan ask `resolve` what is lookable (look.zig:13
### 3.1 Where the rules live
-`src/Plumb.zig` is one type file owning its fields, with its tests at its end.
+`core/Plumb.zig` is one type file owning its fields, with its tests at its end.
```zig
//! The plumber (Plan 9's plumber(4), windows/plumb/): the rules, and a
@@ -533,7 +533,7 @@ plumb to image
### 4.3 Where the default rules live
-- **Location.** `src/plumbing`, the default rules file, compiled in with
+- **Location.** `core/plumbing`, the default rules file, compiled in with
`@embedFile`. `include basic` names it, as Plan 9's `include basic` names
`/lib/plumb/basic`.
- **Other includes.** Any other relative include is read from the configuration
@@ -547,7 +547,7 @@ plumb to image
- `plumb/rules`;
- the `Plumb` pane (after `include basic`, the flattened rules are in
`plumb/rules`);
- - the reference, which quotes `src/plumbing` whole (§6).
+ - the reference, which quotes `core/plumbing` whole (§6).
## 5. Look after the plumber
@@ -582,7 +582,7 @@ plumb to image
- the `.diff` hook goes from the `.file` arm;
- lookCommit goes from lookUnresolved.
-### 5.2 The default rule file (`src/plumbing`), in full
+### 5.2 The default rule file (`core/plumbing`), in full
```
# pardes's plumbing rules, in plumb(6)'s language. The first rule set
@@ -712,9 +712,9 @@ no rule), Incl, `@p`, addresses, and the search.
| the one definition | its sinks |
|---|---|
-| `src/plumbing` (embedded) | `include basic`; the boot rules; the reference's plumber section, which quotes the file. Typst reading `src/` from docs/typ is not verified; otherwise build.zig copies it next to the generated builtins JSON |
+| `core/plumbing` (embedded) | `include basic`; the boot rules; the reference's plumber section, which quotes the file. Typst reading `src/` from docs/typ is not verified; otherwise build.zig copies it next to the generated builtins JSON |
| `Plumb.text` (the rules in force) | `plumb/rules`; the `Plumb` pane's file after a save; a dump |
-| Plumb.zig's table of pardes's own ports, each with a line saying what it does | `plumb/` readdir (with the ports rules named); the reference's port table; fs-help.txt's `plumb/` line (one line, as every directory has there, src/fs-help.txt:20-23) |
+| Plumb.zig's table of pardes's own ports, each with a line saying what it does | `plumb/` readdir (with the ports rules named); the reference's port table; fs-help.txt's `plumb/` line (one line, as every directory has there, core/fs-help.txt:20-23) |
| Plumb.zig's error words (Plan 9's) | `plumb/send` and `plumb/rules` write errors; the `Plumb` pane's save error; the reference |
| the message's text form (one pack, one unpack in Plumb.zig) | `plumb/send`, the ports, a later `pardes plumb [-s src] [-d dst] [-w wdir] [-t type] [-a attr] -i \| data…` (plumb(1); PLAN.md §7 C+L's `fs write` over the tree) |
@@ -727,7 +727,7 @@ lines of tests.
- What it builds:
- Plumb.zig: pack and unpack; parse, print, variables and include; expand;
match, including click; dispose to `start` and to pardes's own ports;
- - `src/plumbing`;
+ - `core/plumbing`;
- `plumb/rules` and `plumb/send` in the tree;
- the field `Core.plumber`.
- Nothing calls the plumber from Look yet. External ports answer `no such plumb
@@ -824,7 +824,7 @@ Decided 2026-11-17 by the coordinator, the user asked where marked:
stays byte-identical.
3. **The `Plumb` word: (a).** Bare, it opens `<config>/plumbing` as `Config`
opens the init; Save applies it; an argument is refused in words. Without
- that file the rules are `include basic`, the embedded `src/plumbing`.
+ that file the rules are `include basic`, the embedded `core/plumbing`.
4. **`plumb start` of a program: (a).** It runs as pardes's exec does: a
builtin in place, a command as a command does today. The user has been
asked whether a started program should run detached with no pane, as Plan
@@ -909,7 +909,7 @@ The options as round 1 put them:
- **Dumps and boot.**
- How walk.Load treats the removed `plumb` field of an old dump.
- Whether the init-file reapply call at host_io.zig:3006 is a taped input.
- - Whether Typst can read `src/plumbing` from docs/typ.
+ - Whether Typst can read `core/plumbing` from docs/typ.
- **Replicas.** That a replica's pushes to its own `p.fs` port queues are
harmless. That is assumed from events.noteAction's pattern; replica.zig was
not read for it.