From 0dcd3513a633479ce228f24826db4f09e4c0fc8b Mon Sep 17 00:00:00 2001 From: Cliff Click Date: Mon, 16 Nov 2026 14:25:14 -0800 Subject: Phi fix Fix Phi/Add refactoring peephole to canonicalize regardless of peephole order. Treat class fcns as having `self` be the class pointer --- skills/chapter25-codex-notes.md | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'skills/chapter25-codex-notes.md') diff --git a/skills/chapter25-codex-notes.md b/skills/chapter25-codex-notes.md index e7362c3b..7cf22839 100644 --- a/skills/chapter25-codex-notes.md +++ b/skills/chapter25-codex-notes.md @@ -35,6 +35,20 @@ callers promise no initialized fields. No new passes or backward demand walks. ## Chapter 32: restart guidance (2026-11-15) +On 2026-11-16, Cliff requested backporting the shared class receiver to chapter +28a, imported-summary handling to 28b, and both through the later snapshots. +The chapter28a README now owns that explanation. Preserve 28a/28b's monolithic +parser and Scope-based instance construction when adapting this fix; do not +copy chapter29's parser or construction machinery backward. Native fixtures +must also respect the older chapters' 64-bit `int` ABI. + +The Phi factoring fix starts in chapter5: match `x*2` as `x+x` without expanding +the graph. Chapter14 also recognizes `x<<1`; chapter19 and later use that shift +as doubling's strength-reduced representation. Keep each snapshot's existing +factoring guards, type checks, and dependency direction. The chapter5 README +teaches the rule; chapter32 retains the investigation and measurements. No +allocator scoring experiments were adopted or backported. + Continue in `chapter32/` on branch `ch32`. Chapter 31 is complete as the graphics, games, and library snapshot; keep its compiler before the speedups. The chapter32 README teaches the current performance work: parallel test JVMs -- cgit v1.2.3