raz / commit 4fb63340

commit
4fb633402a36cb45333007343ebf06876caebcf3
author
Luis <42945842+ldiaz94@users.noreply.github.com>
date
parent
ff8675c8
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.

patch · log

2 files changed, +12 -8

CLAUDE.md modified +2 -1

@@ -85,7 +85,8 @@
8585 `Info`'s `file` and `symlink` for rloc (2026-10.6, step 49d), and
8686 stage 9, several results in place of var parameters (2026-10.8,
8787 steps 52-53), and v0.5.0, the library of report 2026-10.9, which the
88-compiler says it follows.
88+compiler says it follows. v0.7.0, better code (`PLAN.md`), has its
89+seven steps pushed and awaits the owner's review before its tag.
8990
9091 **The freeze.** Since v0.5.0 the language changes only to mend a
9192 defect, and the library grows only by what breaks no program written

PLAN.md (history) modified +10 -7

@@ -5,10 +5,11 @@
55 stopping for the owner's review. A finished milestone is cut from this
66 file: git keeps the history, and the report's section 12 the language's.
77
8-v0.7.0, better code, is under way. v0.6.0 is tagged; its steps 5 to 10 await
8+v0.7.0, better code, has all its steps done and awaits the owner's
9+review before its tag. v0.6.0 is tagged; its steps 5 to 10 await
910 the owner's review.
1011
11-## Under way: better code (v0.7.0)
12+## Done, for review: better code (v0.7.0)
1213
1314 For: rat within 1.25 times the time of pt built by FPC `-O2 -Cr`
1415 (today 634 ms against 428, 1.48 times), with the compiler still a
@@ -20,11 +21,12 @@
2021 listings show the steps below. ulam's `doc/codegen.md` measured the
2122 same rewrites in a compiler of the same kind; its gains are quoted.
2223
23-**Where it stands.** Steps 1 to 6 are done and pushed. rat takes 504
24-to 512 ms against 614 to 625 for the same workload built by the
25-milestone's first compiler, on a machine that drifts by 3%; pt built
26-with `-O2 -Cr` takes 424 ms on the same day, so rat is at 1.19 times,
27-inside the goal. Text is 1.5% smaller. Each step, with its commit:
24+**Where it stands.** All seven steps are done and pushed. rat takes
25+513 ms against 622 for the same workload built by the milestone's
26+first compiler (-18%), on a machine that drifts by 3%; pt built with
27+`-O2 -Cr` takes 426 ms the same hour, so rat is at 1.20 times, inside
28+the goal. Text is 1.5% smaller; the compiler is 8,559 lines of code
29+and compiles 980,000 lines a second. Each step:
2830
2931 | Step | rat | Its kernel |
3032 |---|---|---|
@@ -34,6 +36,7 @@
3436 | 4. Conditions as jumps | noise | a search leaving by break, -28% |
3537 | 5. Shifts, constants right | noise | heap sort and list walk, -11% |
3638 | 6. for loops | noise | matrix product -14%, sum -21% |
39+| 7. Read by a beginner | | |
3740
3841 Steps that left rat's time alone stayed for their kernels, which the
3942 2% rule allows. Moves between registers bought size, not time: this