| | @@ -5,10 +5,11 @@ |
| 5 | 5 | stopping for the owner's review. A finished milestone is cut from this |
| 6 | 6 | file: git keeps the history, and the report's section 12 the language's. |
| 7 | 7 | |
| 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 |
| 9 | 10 | the owner's review. |
| 10 | 11 | |
| 11 | | -## Under way: better code (v0.7.0) |
| 12 | +## Done, for review: better code (v0.7.0) |
| 12 | 13 | |
| 13 | 14 | For: rat within 1.25 times the time of pt built by FPC `-O2 -Cr` |
| 14 | 15 | (today 634 ms against 428, 1.48 times), with the compiler still a |
| | @@ -20,11 +21,12 @@ |
| 20 | 21 | listings show the steps below. ulam's `doc/codegen.md` measured the |
| 21 | 22 | same rewrites in a compiler of the same kind; its gains are quoted. |
| 22 | 23 | |
| 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: |
| 28 | 30 | |
| 29 | 31 | | Step | rat | Its kernel | |
| 30 | 32 | |---|---|---| |
| | @@ -34,6 +36,7 @@ |
| 34 | 36 | | 4. Conditions as jumps | noise | a search leaving by break, -28% | |
| 35 | 37 | | 5. Shifts, constants right | noise | heap sort and list walk, -11% | |
| 36 | 38 | | 6. for loops | noise | matrix product -14%, sum -21% | |
| 39 | +| 7. Read by a beginner | | | |
| 37 | 40 | |
| 38 | 41 | Steps that left rat's time alone stayed for their kernels, which the |
| 39 | 42 | 2% rule allows. Moves between registers bought size, not time: this |