From 4fb633402a36cb45333007343ebf06876caebcf3 Mon Sep 17 00:00:00 2001 From: Luis <42945842+ldiaz94@users.noreply.github.com> Date: Mon, 12 Oct 2026 15:27:42 +0100 Subject: [PATCH] PLAN: v0.7.0 done, for review rat 622 -> 513 ms, 1.20 times pt built -O2 -Cr (426 ms); text -1.5%; 8,559 lines of code. No tag until the owner has reviewed. --- diff --git a/CLAUDE.md b/CLAUDE.md index 1b7bc1b..a70bdb5 100644 --- a/CLAUDE.md +++ b/CLAUDE.md @@ -85,7 +85,8 @@ `Info`'s `file` and `symlink` for rloc (2026-10.6, step 49d), and stage 9, several results in place of var parameters (2026-10.8, steps 52-53), and v0.5.0, the library of report 2026-10.9, which the -compiler says it follows. +compiler says it follows. v0.7.0, better code (`PLAN.md`), has its +seven steps pushed and awaits the owner's review before its tag. **The freeze.** Since v0.5.0 the language changes only to mend a defect, and the library grows only by what breaks no program written diff --git a/PLAN.md b/PLAN.md index ce72a65..25fa998 100644 --- a/PLAN.md +++ b/PLAN.md @@ -5,10 +5,11 @@ stopping for the owner's review. A finished milestone is cut from this file: git keeps the history, and the report's section 12 the language's. -v0.7.0, better code, is under way. v0.6.0 is tagged; its steps 5 to 10 await +v0.7.0, better code, has all its steps done and awaits the owner's +review before its tag. v0.6.0 is tagged; its steps 5 to 10 await the owner's review. -## Under way: better code (v0.7.0) +## Done, for review: better code (v0.7.0) For: rat within 1.25 times the time of pt built by FPC `-O2 -Cr` (today 634 ms against 428, 1.48 times), with the compiler still a @@ -20,11 +21,12 @@ listings show the steps below. ulam's `doc/codegen.md` measured the same rewrites in a compiler of the same kind; its gains are quoted. -**Where it stands.** Steps 1 to 6 are done and pushed. rat takes 504 -to 512 ms against 614 to 625 for the same workload built by the -milestone's first compiler, on a machine that drifts by 3%; pt built -with `-O2 -Cr` takes 424 ms on the same day, so rat is at 1.19 times, -inside the goal. Text is 1.5% smaller. Each step, with its commit: +**Where it stands.** All seven steps are done and pushed. rat takes +513 ms against 622 for the same workload built by the milestone's +first compiler (-18%), on a machine that drifts by 3%; pt built with +`-O2 -Cr` takes 426 ms the same hour, so rat is at 1.20 times, inside +the goal. Text is 1.5% smaller; the compiler is 8,559 lines of code +and compiles 980,000 lines a second. Each step: | Step | rat | Its kernel | |---|---|---| @@ -34,6 +36,7 @@ | 4. Conditions as jumps | noise | a search leaving by break, -28% | | 5. Shifts, constants right | noise | heap sort and list walk, -11% | | 6. for loops | noise | matrix product -14%, sum -21% | +| 7. Read by a beginner | | | Steps that left rat's time alone stayed for their kernels, which the 2% rule allows. Moves between registers bought size, not time: this