feat(v4): Phase 7 Task 3b -- compudynamics on the 32 F18 opcodes as on the words, behind OPCODE_PHYSICS (#189)
Captain Bob, 2026-11-14: "we're supposed to be working on f18 opcode as well as our composed f18 dictionary"; ruled every loop on both, "and an easy revert if opcodes are too granular". - The engine: a hook at retire (exec.h on_retire), as Part A's at call; NULL unless set. test_exec.c. - The mesh: 32 opcode records per node, an opcode window, opcode transitions under L4; at every retired instruction decay at the opcodes' own slope, heat, temperature, the window, the transition; in each cycle all 32 cooled, the opcode window's service, inference on its heat. L8 scores from the words and its gates govern both; the tick stays paced by word calls. The window is now one type for words and opcodes. - The revert: OPCODE_PHYSICS (Kconfig.physics, default y; the kernel's flags) -- 0 and the opcodes are counted and charged to the Stadium as in Phase 1. make -C v4 mesh-boot-noop builds and tests it. - Tests first: test_mesh_boot.c 77 checks as built, 86 with pipelining on, 74 with the revert. - Measured on amd64, back to back: 219 s on, 196 s off (+12% under TCG). Both boots' logs labelled. Not pushed (held to the end of Phase 7). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_017RzZgrf7V7Zk2iczBXDRbm
This commit is contained in:
@@ -37,6 +37,17 @@
|
||||
`Kconfig.physics` and `kernel/Makefile`), so v3's boot records no transitions and uses no cache.
|
||||
Ruled: both written and tested, behind the same two build options, off by default as in v3.
|
||||
|
||||
7. **Compudynamics on the F18 opcodes as well as the composed words** (2026-11-14: "we're supposed to be
|
||||
working on f18 opcode as well as our composed f18 dictionary"; ruled "#1 and an easy revert if opcodes
|
||||
are too granular"). Every loop runs on both: the 32 opcodes are a second set of records on each node,
|
||||
fed at every retired instruction (a hook at retire, as Part A's at `call`) -- heat, decay, temperature,
|
||||
an opcode window, opcode transitions (under L4, as the words'), background decay and inference in the
|
||||
cycle. L8 scores from the words, as v3, and its card's gates govern both. The tick stays paced by word
|
||||
calls, as v3's. **The revert:** one build option, `OPCODE_PHYSICS` (`Kconfig.physics`, default y);
|
||||
off, the opcodes are counted and charged to the Stadium as in Phase 1, and nothing more.
|
||||
**Where the arithmetic lives:** compudynamics is the Stadium/fabric's (2026-11-14: "The compudynamics
|
||||
is stadium/fabric"): the kernel computes; a word that reads or sets it is F18 that asks the kernel.
|
||||
|
||||
## What ruling 3 brings in
|
||||
|
||||
v3's POST is 26 modules (`v3/src/test_runner/modules/`, about 1,050 cases; v3's bare-metal boot says
|
||||
@@ -146,6 +157,17 @@ Phase 4).
|
||||
- [x] The snapshot (v3's `heartbeat_publish_snapshot`): each cycle, the tick, window, slope and the
|
||||
dictionary's heat as inference counted it (v3's `*_at_check`). One copy: v3 double-buffers for its
|
||||
heartbeat thread, which v4 has no counterpart of. Test first (73 checks; 81 on).
|
||||
### Task 3b: the loops on the 32 opcodes (ruling 7), behind `OPCODE_PHYSICS` -- measured
|
||||
- [x] The engine: a hook at retire (`exec.h`, `on_retire`), as Part A's at `call`; test first (`test_exec.c`).
|
||||
- [x] The mesh: 32 opcode records per node beside the words', an opcode window, opcode transitions (L4);
|
||||
at every retire decay at the opcodes' own slope, heat, temperature, the window, the transition; in
|
||||
the cycle all 32 cooled, the opcode window's service, inference on its heat (their own width and
|
||||
slope). L8 scores from the words; its gates govern both. The window refactored to one type for both.
|
||||
Test first, three builds: as built (77 checks), pipelining on (86), the revert `OPCODE_PHYSICS=0` (74).
|
||||
- [x] `OPCODE_PHYSICS` in `Kconfig.physics` (default y) and the kernel's flags; `OPCODE_PHYSICS=0` checked
|
||||
to reach the build (the revert's kernel has none of the opcode code).
|
||||
- [x] Measured, back to back on amd64: 219 s on, 196 s off -- about +12% under TCG. Kept, as ruled; the
|
||||
revert is the one switch.
|
||||
### Task 4: the words that read and set them (`FREEZE-WORD`, the inference words, ...), and their POST
|
||||
### Task 5: the StarForth words (Phase 3's: `init.4th`, `starforth.4th`), and their POST
|
||||
### Task 6: the ACL (Phase 4's: `ACL.4th`, the word card, the countdown), and its POST
|
||||
|
||||
Reference in New Issue
Block a user