feat(v4): every word but the ten is called, so it can be checked
Plan 2026-10-20 (ENGINE step 4), Task A2, for #189. Captain Bob, 2026-11-13: "The ten"; "Accept it". - compile.f18 (COMPILE,): a word is copied in line only when it is flagged in-line and compile-only (24) -- the ten that work on the return stack, >R R> R@ I J LEAVE and the later UNLOOP 2>R 2R> 2R@. Every other word, in-line ones too, is a call the hook at `call` sees. - EXECUTE calls the xt: `call xt` (opcode 3, slot 0) and a ; in (EXEC), run. INTERPRET runs a word by (GO): `call xt` and `jump (IL)` in (RUNX), entered by a jump, at the old return-stack depth. - host_map.h: (EXEC) BUF0_W-22, (RUNX) BUF0_W-115, from what was free. - Its cost, accepted: one return entry at the bottom of a chain (30 deep from the prompt, not 31) and one per explicit EXECUTE while its word runs; the hosted boot +2.4% (2.917 s to 2.987 s), instructions +0.4%. - Tests first (logs/20261113-045122/a2): inline_words_are_called, residue_stays_inline, execute_passes_the_hook, rstack_kept_across_call, abandoned_definition_not_called -- 3 of 1096 failed before. The depth checks moved to the new figures; SEE shows the calls; two layout checks use in-line test words; 2>R 2R@ 2R> checked in test_host_quit. - DECOMPOSITION.md EXECUTE, the plan's A2 and rulings, FABRIC-3 XLVIII.22. Suite: test, test-32 99 programs 0 failures; v4-checks 79 under the sanitizers 0 failures, the hosted builds alike; hosted POST 539/539. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_017RzZgrf7V7Zk2iczBXDRbm
This commit is contained in:
@@ -6601,3 +6601,27 @@ and memorize frequently so we can pick up where we left off").
|
||||
config (`physics_execution_hooks.c`, `kernel/src/vm/vm_core.c`).
|
||||
`ssm_jacquard.h` says what is wired, bit by bit; `v3/CLAUDE.md` and the L8 reference corrected.
|
||||
- **Seen to pass:** both tests; v4 does not read the rolling window, so acceptance is unchanged.
|
||||
|
||||
### 22. #189: v4's physics, the first of it -- the hook at `call`, HEAT-OP, every word called (2026-11-12/13)
|
||||
|
||||
- **Found** (2026-11-12, wiring #188): v4 -- what every acceptance boot runs -- has no Compudynamics
|
||||
beyond a count per opcode and the anti-clock, which nothing read; the rolling window, decay,
|
||||
pipelining, inference, L8 and the heartbeat are v3's alone (`V3-PARITY.md` 2.2, 2026-10-07, never a
|
||||
release blocker). Captain Bob: "That's a critical finding that blocks alpha.0" -- it blocks the alpha.5
|
||||
release; #189. The way is the plan of 2026-10-20 (`docs/v4.0.0/plans/2026-10-20-engine-step4-node-in-
|
||||
the-vms-place.md`), ruled then: Part A, Phases 1, 2, then 7 ("A, 1, 2, then 7").
|
||||
- **A1, the hook at `call`:** `v4/src/exec.c` calls whoever runs the node at every `call`, after the
|
||||
return address is pushed; the engine's per-call-target table, which counted no capsule word, is gone.
|
||||
- **HEAT-OP** ("Add HEAT-OP. If it's a huge performance hit, we'll revert it"; a full array):
|
||||
`HEAT-OP[0..31]` and `ANTICLOCK`, 33 read-only registers at word 13824, read by `HEAT-OP@` and
|
||||
`ANTICLOCK@`. No measurable cost (the hosted boot's median, 3.734 s then 3.731 s): it stands.
|
||||
- **A2, every word called:** the compiler copies in line only the ten words that work on the return
|
||||
stack ("The ten": `>R R> R@ I J LEAVE` and the later `UNLOOP 2>R 2R> 2R@`, by their flags); every
|
||||
other word is a call the hook sees. `EXECUTE` calls the xt through a two-cell `call`/`;`, and the
|
||||
interpreter through `(GO)`, whose second cell jumps back into its loop. Its cost ("Accept it"): one
|
||||
return entry at the bottom of a chain, and one per explicit `EXECUTE` while its word runs; the
|
||||
hosted boot +2.4% (2.917 s to 2.987 s), instructions +0.4%. `SEE` shows the calls.
|
||||
- **Tested first, seen to fail:** the hook (`test_exec.c`), the registers (`test_node.c`,
|
||||
`test_host_quit.c`), A2's five (`test_host_compile.c`); the depth checks moved to the new figures.
|
||||
- **Next:** Phase 1 -- v4 in the kernel's boot, the Stadium and the heartbeat started; then Phase 2,
|
||||
the word accounts at `call`; then Phase 7, the loops on them.
|
||||
|
||||
Reference in New Issue
Block a user