From efe5d6f0718ec09fdfb5eb70c25aea5245d410ec Mon Sep 17 00:00:00 2001 From: Luis <42945842+ldiaz94@users.noreply.github.com> Date: Mon, 12 Oct 2026 17:35:46 +0100 Subject: [PATCH] PLAN: v0.7.1, the manual, released; v0.8.0 under way The release's tarball carries the manual pages. --- diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 25bf715..f65ba80 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -1,6 +1,6 @@ # Checks every push to main. A pushed tag vX.Y.Z is checked too and -# becomes a GitHub release, with a tarball of raz and the lib/ it reads -# beside itself. Run by hand with a tag, it releases an older tag. +# becomes a GitHub release, with a tarball of raz, the lib/ it reads +# beside itself, and the manual pages. Run by hand with a tag, it releases an older tag. name: ci on: push: @@ -31,7 +31,8 @@ GH_TOKEN: ${{ github.token }} run: | d=raz-${TAG#v}-linux-x86_64 - mkdir $d && cp -r raz lib LICENSE README.md $d + mkdir -p $d/man && cp -r raz lib LICENSE README.md $d + cp doc/raz.1 doc/raz.7 doc/raz-tutorial.7 build/raz-lib.3 $d/man tar czf $d.tar.gz $d gh release create "$TAG" $d.tar.gz --verify-tag \ --title "raz ${TAG#v}" --notes "$(./raz --version)" diff --git a/CLAUDE.md b/CLAUDE.md index b52faa0..6cc9ecf 100644 --- a/CLAUDE.md +++ b/CLAUDE.md @@ -86,9 +86,9 @@ `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, and v0.7.0, better code. Next, by -`PLAN.md`: the manual (v0.7.1), then better code again (v0.8.0), each -on the owner's go. +compiler says it follows, and v0.7.0, better code, and v0.7.1, the manual: `raz(1)`, +`raz-tutorial(7)`, `raz(7)` and `raz-lib(3)`, made by `tools/Doc.raz` +from `lib/`. Under way, by `PLAN.md`: better code again (v0.8.0). **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 @@ -112,7 +112,7 @@ `.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.7.0, report 2026-10.17, the latest. +the first; v0.7.1, report 2026-10.17, the latest. `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/PLAN.md b/PLAN.md index 4c01755..d11c22f 100644 --- a/PLAN.md +++ b/PLAN.md @@ -5,55 +5,10 @@ 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. -The manual (v0.7.1) is under way, by the owner's word, and better code -again (v0.8.0) after it. v0.7.0, better code, is tagged, and all before -it is approved by the owner. - -## Next: the manual (v0.7.1) - -For: someone who has never seen raz can learn it from `man`, and come -back to it as a reference, without the report open; the report stays -the definition, and the manual never disagrees with it. No change to -the language or the compiler. Modelled on concha's three pages, which -the owner knows: a reference, a tour, and the rest. - -The rules for every page: mdoc, so man, mandoc and groff all set it -well; short sections, each with one idea; every example a whole -program or a piece of one that `make check` compiles and runs, as it -does the report's, so none can go stale; plain, short prose, as the -report's; `groff -mdoc -ww` and `mandoc -Tlint`, if there, say -nothing; and each page read whole at 80 columns, as a user would, -before it is done. +Better code again (v0.8.0) is under way, by the owner's word. v0.7.1, +the manual, is tagged, and all before v0.7.1 is approved by the owner. -1. Done: **`raz-tutorial(7)`, a tour of the language.** Numbered sections, - each one idea with a program to run: hello, world and modules; - values, types and conversions; procedures and several results; - arrays, slices and strings; records and pointers; memory and - allocators; errors, `ERROR` and `MSG`; `defer`; checks and what a - failure says; generic modules; talking to C; threads. Then "From - Pascal and C to raz", a table of what each spells differently, as - concha's tour has from sh. About 500 lines. The examples go in - `test/man`, run by `make check`. -2. Done: **`raz-lib(3)`, the library, made from its sources.** `tools/Doc` - learns to write mdoc: each module's own comment, then its exported - declarations with theirs, under a heading of its name. `make` builds - the page from `lib/`, so it says what the library says, always. - About 60 lines of `Doc`. -3. Done: **`raz(7)`, the language at a glance.** What a programmer looks up: - the grammar in brief, the types and their sizes, the operators and - their order, the built-in procedures, the statements, what is - checked, and the limits; each pointing to the report's section for - the whole of it. About 400 lines. -4. Done: **`raz(1)` again, and the pages together.** The command's page - points into the others; `make install` installs all four, and - `make uninstall` removes them; README and `doc/compiler.md` name - them; the desktop guide gets an entry for raz as one of our own - tools. The pages are read whole once more, together. - -Each step is a commit and stops for review. Step 1 stands on its own -and is most of the worth; 2 to 4 can wait. - -## Then: better code again (v0.8.0) +## Now: better code again (v0.8.0) For: on the same program, raz within 1.3 times the time of FPC `-O2` with `check off;` (today 1.3 on a heap sort, 1.7 on a sum over a slice, diff --git a/README.md b/README.md index d146585..ba00703 100644 --- a/README.md +++ b/README.md @@ -188,19 +188,19 @@ The compiler says its own version and that of the report it follows: $ ./raz --version - raz 0.7.0, report 2026-10.17 + raz 0.7.1, report 2026-10.17 The compiler's version is git's name for the commit it was built from: -`0.7.0` at the tag `v0.7.0`, `0.7.0-5-g38d29a8` five commits past it. +`0.7.1` at the tag `v0.7.1`, `0.7.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.7.1 -m 'raz 0.7.1, report 2026-10.17' - $ git push origin v0.7.1 + $ git tag -a v0.8.0 -m 'raz 0.8.0, report 2026-10.17' + $ git push origin v0.8.0 GitHub then builds and checks the tag, and makes a release of it with -a tarball of `raz` and its `lib/`. A tag pushed before the workflow +a tarball of `raz`, its `lib/` and its manual pages. A tag pushed before the workflow existed is released from the Actions tab: run "ci" with its name. A version of the report is named by its month and a count; the report's