From 92a199c69853ad1cb67203dea6ecf763452b2904 Mon Sep 17 00:00:00 2001 From: Luis <42945842+ldiaz94@users.noreply.github.com> Date: Tue, 13 Oct 2026 21:26:40 +0100 Subject: [PATCH] Docs and site for v0.10.1: the compiler is in raz, 650,000 lines a second --- diff --git a/CLAUDE.md b/CLAUDE.md index 08642ef..a265556 100644 --- a/CLAUDE.md +++ b/CLAUDE.md @@ -14,7 +14,7 @@ make kernels # test/bench's kernels against FPC -O2's twins make loc # lines of the compiler, by rloc; the last, code, is the budget make tests # the small Pascal tests of scan, x64, link and elf - make seed-check # src/ against the seed: each unit, then every program + make seed-check # src/ against the seed: scan to x64, then the messages and statuses of every program make fixpoint # the seed builds src, that builds src, that again: the last two agree make gdb # gdb stops at a line of a test and names it make stress # 40,000 native threads; make check runs a small version @@ -130,8 +130,10 @@ `.github/workflows/ci.yml`, which checks it and makes the GitHub release with a tarball of `raz` and `lib/`; it also checks every push to `main`. `README.md`'s "Versions" gives the commands. v0.3.0 is -the first; v0.9.1, report 2026-10.19, the latest: v0.9.0 with -`tools/` in the tarball, which the website offers from 0.7.1 on. +the first; v0.10.1, report 2026-10.21, the latest: the compiler in raz, +built by itself, and 1.4 times the Pascal one's time (v0.9.1 was the last +built by the Pascal seed). The tarball has `tools/`, which the website +offers from 0.7.1 on. `test/libc` runs its programs over `lib/Sys.raz`, the C one, through a link in its `mods`. A test or example without `.expect` is only diff --git a/README.md b/README.md index 47b7c28..603c6fb 100644 --- a/README.md +++ b/README.md @@ -26,8 +26,8 @@ The compiler is about 10,700 lines of raz, written in itself: one pass, no intermediate form, no optimizer. It writes x86-64 machine code and the -ELF executable itself, with no assembler or linker, and compiles over -400,000 lines a second. +ELF executable itself, with no assembler or linker, and compiles about +650,000 lines a second. ## What's here @@ -197,16 +197,16 @@ The compiler says its own version and that of the report it follows: $ ./raz --version - raz 0.9.0, report 2026-10.19 + raz 0.10.1, report 2026-10.21 The compiler's version is git's name for the commit it was built from: -`0.9.0` at the tag `v0.9.0`, `0.9.0-5-g38d29a8` five commits past it. +`0.10.1` at the tag `v0.10.1`, `0.10.1-5-g38d29a8` five commits past it. To release, check `main` and tag it; the tag's message is what `raz --version` will print: $ make check - $ git tag -a v0.9.1 -m 'raz 0.9.1, report 2026-10.19' - $ git push origin v0.9.1 + $ git tag -a v0.10.1 -m 'raz 0.10.1, report 2026-10.21' + $ git push origin v0.10.1 GitHub then builds and checks the tag, and makes a release of it with a tarball of `raz`, its `lib/` and its manual pages, made by `make diff --git a/site/content/home.html b/site/content/home.html index d157459..15561d2 100644 --- a/site/content/home.html +++ b/site/content/home.html @@ -15,13 +15,13 @@ system calls and call C libraries. It has no garbage collector and no hidden run time: what the program does is what its text says.

-

The compiler is written in raz, about 10,500 lines, and builds itself. It makes +

The compiler is written in raz, about 10,700 lines, and builds itself. It makes x86-64 machine code and the ELF file itself, with no assembler or linker, in -one pass, at about 500,000 lines a second.

+one pass, at about 650,000 lines a second.

- ~10,500 lines of compiler - ~500K lines compiled a second + ~10,700 lines of compiler + ~650K lines compiled a second static executables, no run time to install 1 report, about 30 pages
diff --git a/src/README.md b/src/README.md index bf0195d..be2e1c0 100644 --- a/src/README.md +++ b/src/README.md @@ -30,7 +30,7 @@ mistakes among them, over 60 scripts (the text its messages point into is `test/ItemDump.txt`): the bytes, fixups, line notes and listing, and the messages, had to be the same as the seed's. They were, until the -compiler's code was improved (v0.10.0): `src/` makes better code than +compiler's code was improved (v0.10.1): `src/` makes better code than the seed, so the dumpers are kept, as a way to read what `Gen` makes, and no longer compared. `src/check.sh` says what is. @@ -41,13 +41,13 @@ examples, the tools, `src/` itself, every test of `test/` and `conform/`, and the 348,025-line program of `test/genbench.py`, with the options each test has. The messages and the status must be the same -for every file (the executables no longer are, since v0.10.0): 409 of them, 289 of which are errors. +for every file (the executables no longer are, since v0.10.1): 409 of them, 289 of which are errors. `make seed-bench` gives the speed of both. `make fixpoint` (`fixpoint.sh`) is the proof that the port is whole: the seed builds `Raz.raz` (stage 1), stage 1 builds it (stage 2), and stage 2 builds it again (stage 3). Stages 2 and 3 must be the same -file; they are (stage 1 is not, since v0.10.0: the port makes better code +file; they are (stage 1 is not, since v0.10.1: the port makes better code than the seed's). Stage 3 then stands in for `./raz`, and `make check` and `make bench` run on it. Each stage is built by the same command in the same place, since a program holds the paths it was made from. diff --git a/src/check.sh b/src/check.sh index e22b1be..f299f7a 100755 --- a/src/check.sh +++ b/src/check.sh @@ -94,7 +94,7 @@ # Gen and Item were tested here against the seed's while they were ported, # by the code they made: the same bytes, listings and line notes. Since the -# compiler's own code was improved (v0.10.0) that code is no longer the +# compiler's own code was improved (v0.10.1) that code is no longer the # seed's, so they are tested by what the seed can still check, the # messages and statuses of Parse and Raz below, and by the fixpoint and # the tests of `make check`, on the compiler they make.