Docs and site for v0.10.1: the compiler is in raz, 650,000 lines a second
| @@ -14,7 +14,7 @@ | ||
| 14 | 14 | make kernels # test/bench's kernels against FPC -O2's twins |
| 15 | 15 | make loc # lines of the compiler, by rloc; the last, code, is the budget |
| 16 | 16 | make tests # the small Pascal tests of scan, x64, link and elf |
| 17 | - make seed-check # src/ against the seed: each unit, then every program | |
| 17 | + make seed-check # src/ against the seed: scan to x64, then the messages and statuses of every program | |
| 18 | 18 | make fixpoint # the seed builds src, that builds src, that again: the last two agree |
| 19 | 19 | make gdb # gdb stops at a line of a test and names it |
| 20 | 20 | make stress # 40,000 native threads; make check runs a small version |
| @@ -130,8 +130,10 @@ | ||
| 130 | 130 | `.github/workflows/ci.yml`, which checks it and makes the GitHub |
| 131 | 131 | release with a tarball of `raz` and `lib/`; it also checks every push |
| 132 | 132 | to `main`. `README.md`'s "Versions" gives the commands. v0.3.0 is |
| 133 | -the first; v0.9.1, report 2026-10.19, the latest: v0.9.0 with | |
| 134 | -`tools/` in the tarball, which the website offers from 0.7.1 on. | |
| 133 | +the first; v0.10.1, report 2026-10.21, the latest: the compiler in raz, | |
| 134 | +built by itself, and 1.4 times the Pascal one's time (v0.9.1 was the last | |
| 135 | +built by the Pascal seed). The tarball has `tools/`, which the website | |
| 136 | +offers from 0.7.1 on. | |
| 135 | 137 | |
| 136 | 138 | `test/libc` runs its programs over `lib/Sys.raz`, the C one, through |
| 137 | 139 | a link in its `mods`. A test or example without `.expect` is only |
| @@ -26,8 +26,8 @@ | ||
| 26 | 26 | |
| 27 | 27 | The compiler is about 10,700 lines of raz, written in itself: one pass, no |
| 28 | 28 | intermediate form, no optimizer. It writes x86-64 machine code and the |
| 29 | -ELF executable itself, with no assembler or linker, and compiles over | |
| 30 | -400,000 lines a second. | |
| 29 | +ELF executable itself, with no assembler or linker, and compiles about | |
| 30 | +650,000 lines a second. | |
| 31 | 31 | |
| 32 | 32 | ## What's here |
| 33 | 33 | |
| @@ -197,16 +197,16 @@ | ||
| 197 | 197 | The compiler says its own version and that of the report it follows: |
| 198 | 198 | |
| 199 | 199 | $ ./raz --version |
| 200 | - raz 0.9.0, report 2026-10.19 | |
| 200 | + raz 0.10.1, report 2026-10.21 | |
| 201 | 201 | |
| 202 | 202 | The compiler's version is git's name for the commit it was built from: |
| 203 | -`0.9.0` at the tag `v0.9.0`, `0.9.0-5-g38d29a8` five commits past it. | |
| 203 | +`0.10.1` at the tag `v0.10.1`, `0.10.1-5-g38d29a8` five commits past it. | |
| 204 | 204 | To release, check `main` and tag it; the tag's message is what |
| 205 | 205 | `raz --version` will print: |
| 206 | 206 | |
| 207 | 207 | $ make check |
| 208 | - $ git tag -a v0.9.1 -m 'raz 0.9.1, report 2026-10.19' | |
| 209 | - $ git push origin v0.9.1 | |
| 208 | + $ git tag -a v0.10.1 -m 'raz 0.10.1, report 2026-10.21' | |
| 209 | + $ git push origin v0.10.1 | |
| 210 | 210 | |
| 211 | 211 | GitHub then builds and checks the tag, and makes a release of it with |
| 212 | 212 | a tarball of `raz`, its `lib/` and its manual pages, made by `make |
| @@ -15,13 +15,13 @@ | ||
| 15 | 15 | system calls and call C libraries. It has no garbage collector and no hidden |
| 16 | 16 | run time: what the program does is what its text says.</p> |
| 17 | 17 | |
| 18 | -<p>The compiler is written in raz, about 10,500 lines, and builds itself. It makes | |
| 18 | +<p>The compiler is written in raz, about 10,700 lines, and builds itself. It makes | |
| 19 | 19 | x86-64 machine code and the ELF file itself, with no assembler or linker, in |
| 20 | -one pass, at about 500,000 lines a second.</p> | |
| 20 | +one pass, at about 650,000 lines a second.</p> | |
| 21 | 21 | |
| 22 | 22 | <div class="facts"> |
| 23 | - <span><b>~10,500</b> lines of compiler</span> | |
| 24 | - <span><b>~500K</b> lines compiled a second</span> | |
| 23 | + <span><b>~10,700</b> lines of compiler</span> | |
| 24 | + <span><b>~650K</b> lines compiled a second</span> | |
| 25 | 25 | <span><b>static</b> executables, no run time to install</span> |
| 26 | 26 | <span><b>1</b> report, about <b>30</b> pages</span> |
| 27 | 27 | </div> |
| @@ -30,7 +30,7 @@ | ||
| 30 | 30 | mistakes among them, over 60 scripts (the text its messages point into |
| 31 | 31 | is `test/ItemDump.txt`): the bytes, fixups, line notes and listing, and |
| 32 | 32 | the messages, had to be the same as the seed's. They were, until the |
| 33 | -compiler's code was improved (v0.10.0): `src/` makes better code than | |
| 33 | +compiler's code was improved (v0.10.1): `src/` makes better code than | |
| 34 | 34 | the seed, so the dumpers are kept, as a way to read what `Gen` makes, |
| 35 | 35 | and no longer compared. `src/check.sh` says what is. |
| 36 | 36 | |
| @@ -41,13 +41,13 @@ | ||
| 41 | 41 | examples, the tools, `src/` itself, every test of `test/` and |
| 42 | 42 | `conform/`, and the 348,025-line program of `test/genbench.py`, with the |
| 43 | 43 | options each test has. The messages and the status must be the same |
| 44 | -for every file (the executables no longer are, since v0.10.0): 409 of them, 289 of which are errors. | |
| 44 | +for every file (the executables no longer are, since v0.10.1): 409 of them, 289 of which are errors. | |
| 45 | 45 | `make seed-bench` gives the speed of both. |
| 46 | 46 | |
| 47 | 47 | `make fixpoint` (`fixpoint.sh`) is the proof that the port is whole: |
| 48 | 48 | the seed builds `Raz.raz` (stage 1), stage 1 builds it (stage 2), and |
| 49 | 49 | stage 2 builds it again (stage 3). Stages 2 and 3 must be the same |
| 50 | -file; they are (stage 1 is not, since v0.10.0: the port makes better code | |
| 50 | +file; they are (stage 1 is not, since v0.10.1: the port makes better code | |
| 51 | 51 | than the seed's). Stage 3 then stands in for `./raz`, and `make check` and |
| 52 | 52 | `make bench` run on it. Each stage is built by the same command in the |
| 53 | 53 | same place, since a program holds the paths it was made from. |
| @@ -94,7 +94,7 @@ | ||
| 94 | 94 | |
| 95 | 95 | # Gen and Item were tested here against the seed's while they were ported, |
| 96 | 96 | # by the code they made: the same bytes, listings and line notes. Since the |
| 97 | -# compiler's own code was improved (v0.10.0) that code is no longer the | |
| 97 | +# compiler's own code was improved (v0.10.1) that code is no longer the | |
| 98 | 98 | # seed's, so they are tested by what the seed can still check, the |
| 99 | 99 | # messages and statuses of Parse and Raz below, and by the fixpoint and |
| 100 | 100 | # the tests of `make check`, on the compiler they make. |