raz / commit efe5d6f0

commit
efe5d6f0718ec09fdfb5eb70c25aea5245d410ec
author
Luis <42945842+ldiaz94@users.noreply.github.com>
date
parent
ebfe9e19
release
v0.7.1
PLAN: v0.7.1, the manual, released; v0.8.0 under way

The release's tarball carries the manual pages.

patch · log

4 files changed, +16 -60

.github/workflows/ci.yml (history) modified +4 -3

@@ -1,6 +1,6 @@
11 # Checks every push to main. A pushed tag vX.Y.Z is checked too and
2-# becomes a GitHub release, with a tarball of raz and the lib/ it reads
3-# beside itself. Run by hand with a tag, it releases an older tag.
2+# becomes a GitHub release, with a tarball of raz, the lib/ it reads
3+# beside itself, and the manual pages. Run by hand with a tag, it releases an older tag.
44 name: ci
55 on:
66 push:
@@ -31,7 +31,8 @@
3131 GH_TOKEN: ${{ github.token }}
3232 run: |
3333 d=raz-${TAG#v}-linux-x86_64
34- mkdir $d && cp -r raz lib LICENSE README.md $d
34+ mkdir -p $d/man && cp -r raz lib LICENSE README.md $d
35+ cp doc/raz.1 doc/raz.7 doc/raz-tutorial.7 build/raz-lib.3 $d/man
3536 tar czf $d.tar.gz $d
3637 gh release create "$TAG" $d.tar.gz --verify-tag \
3738 --title "raz ${TAG#v}" --notes "$(./raz --version)"

CLAUDE.md modified +4 -4

@@ -86,9 +86,9 @@
8686 `Info`'s `file` and `symlink` for rloc (2026-10.6, step 49d), and
8787 stage 9, several results in place of var parameters (2026-10.8,
8888 steps 52-53), and v0.5.0, the library of report 2026-10.9, which the
89-compiler says it follows, and v0.7.0, better code. Next, by
90-`PLAN.md`: the manual (v0.7.1), then better code again (v0.8.0), each
91-on the owner's go.
89+compiler says it follows, and v0.7.0, better code, and v0.7.1, the manual: `raz(1)`,
90+`raz-tutorial(7)`, `raz(7)` and `raz-lib(3)`, made by `tools/Doc.raz`
91+from `lib/`. Under way, by `PLAN.md`: better code again (v0.8.0).
9292
9393 **The freeze.** Since v0.5.0 the language changes only to mend a
9494 defect, and the library grows only by what breaks no program written
@@ -112,7 +112,7 @@
112112 `.github/workflows/ci.yml`, which checks it and makes the GitHub
113113 release with a tarball of `raz` and `lib/`; it also checks every push
114114 to `main`. `README.md`'s "Versions" gives the commands. v0.3.0 is
115-the first; v0.7.0, report 2026-10.17, the latest.
115+the first; v0.7.1, report 2026-10.17, the latest.
116116
117117 `test/libc` runs its programs over `lib/Sys.raz`, the C one, through
118118 a link in its `mods`. A test or example without `.expect` is only

PLAN.md (history) modified +3 -48

@@ -5,55 +5,10 @@
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-The manual (v0.7.1) is under way, by the owner's word, and better code
9-again (v0.8.0) after it. v0.7.0, better code, is tagged, and all before
10-it is approved by the owner.
11-
12-## Next: the manual (v0.7.1)
13-
14-For: someone who has never seen raz can learn it from `man`, and come
15-back to it as a reference, without the report open; the report stays
16-the definition, and the manual never disagrees with it. No change to
17-the language or the compiler. Modelled on concha's three pages, which
18-the owner knows: a reference, a tour, and the rest.
19-
20-The rules for every page: mdoc, so man, mandoc and groff all set it
21-well; short sections, each with one idea; every example a whole
22-program or a piece of one that `make check` compiles and runs, as it
23-does the report's, so none can go stale; plain, short prose, as the
24-report's; `groff -mdoc -ww` and `mandoc -Tlint`, if there, say
25-nothing; and each page read whole at 80 columns, as a user would,
26-before it is done.
8+Better code again (v0.8.0) is under way, by the owner's word. v0.7.1,
9+the manual, is tagged, and all before v0.7.1 is approved by the owner.
2710
28-1. Done: **`raz-tutorial(7)`, a tour of the language.** Numbered sections,
29- each one idea with a program to run: hello, world and modules;
30- values, types and conversions; procedures and several results;
31- arrays, slices and strings; records and pointers; memory and
32- allocators; errors, `ERROR` and `MSG`; `defer`; checks and what a
33- failure says; generic modules; talking to C; threads. Then "From
34- Pascal and C to raz", a table of what each spells differently, as
35- concha's tour has from sh. About 500 lines. The examples go in
36- `test/man`, run by `make check`.
37-2. Done: **`raz-lib(3)`, the library, made from its sources.** `tools/Doc`
38- learns to write mdoc: each module's own comment, then its exported
39- declarations with theirs, under a heading of its name. `make` builds
40- the page from `lib/`, so it says what the library says, always.
41- About 60 lines of `Doc`.
42-3. Done: **`raz(7)`, the language at a glance.** What a programmer looks up:
43- the grammar in brief, the types and their sizes, the operators and
44- their order, the built-in procedures, the statements, what is
45- checked, and the limits; each pointing to the report's section for
46- the whole of it. About 400 lines.
47-4. Done: **`raz(1)` again, and the pages together.** The command's page
48- points into the others; `make install` installs all four, and
49- `make uninstall` removes them; README and `doc/compiler.md` name
50- them; the desktop guide gets an entry for raz as one of our own
51- tools. The pages are read whole once more, together.
52-
53-Each step is a commit and stops for review. Step 1 stands on its own
54-and is most of the worth; 2 to 4 can wait.
55-
56-## Then: better code again (v0.8.0)
11+## Now: better code again (v0.8.0)
5712
5813 For: on the same program, raz within 1.3 times the time of FPC `-O2`
5914 with `check off;` (today 1.3 on a heap sort, 1.7 on a sum over a slice,

README.md (history) modified +5 -5

@@ -188,19 +188,19 @@
188188 The compiler says its own version and that of the report it follows:
189189
190190 $ ./raz --version
191- raz 0.7.0, report 2026-10.17
191+ raz 0.7.1, report 2026-10.17
192192
193193 The compiler's version is git's name for the commit it was built from:
194-`0.7.0` at the tag `v0.7.0`, `0.7.0-5-g38d29a8` five commits past it.
194+`0.7.1` at the tag `v0.7.1`, `0.7.1-5-g38d29a8` five commits past it.
195195 To release, check `main` and tag it; the tag's message is what
196196 `raz --version` will print:
197197
198198 $ make check
199- $ git tag -a v0.7.1 -m 'raz 0.7.1, report 2026-10.17'
200- $ git push origin v0.7.1
199+ $ git tag -a v0.8.0 -m 'raz 0.8.0, report 2026-10.17'
200+ $ git push origin v0.8.0
201201
202202 GitHub then builds and checks the tag, and makes a release of it with
203-a tarball of `raz` and its `lib/`. A tag pushed before the workflow
203+a tarball of `raz`, its `lib/` and its manual pages. A tag pushed before the workflow
204204 existed is released from the Actions tab: run "ci" with its name.
205205
206206 A version of the report is named by its month and a count; the report's