From 7f0df9369459dc34d7e3ce31a82ec4daf4fd640b Mon Sep 17 00:00:00 2001 From: Luis <42945842+ldiaz94@users.noreply.github.com> Date: Wed, 14 Oct 2026 13:14:06 +0100 Subject: [PATCH] site: v0.11.1 --- diff --git a/site/public/_redirects b/site/public/_redirects index 9ecc9fa..6a45f1d 100644 --- a/site/public/_redirects +++ b/site/public/_redirects @@ -1 +1 @@ -/download/latest /download/raz-0.11.0-linux-x86_64.tar.gz 302 +/download/latest /download/raz-0.11.1-linux-x86_64.tar.gz 302 diff --git a/site/public/download/raz-0.11.1-linux-x86_64.tar.gz b/site/public/download/raz-0.11.1-linux-x86_64.tar.gz new file mode 100644 index 0000000..d3f2986 Binary files /dev/null and b/site/public/download/raz-0.11.1-linux-x86_64.tar.gz differ diff --git a/site/public/download/raz-0.11.1-linux-x86_64.tar.gz.sha256 b/site/public/download/raz-0.11.1-linux-x86_64.tar.gz.sha256 new file mode 100644 index 0000000..392a912 --- /dev/null +++ b/site/public/download/raz-0.11.1-linux-x86_64.tar.gz.sha256 @@ -0,0 +1 @@ +65e8d5ffd5b1b22b917e260516bbf708bb6af9e25264bec5881aee02c821b22b raz-0.11.1-linux-x86_64.tar.gz diff --git a/site/public/index.html b/site/public/index.html index 7d07356..90bcc36 100644 --- a/site/public/index.html +++ b/site/public/index.html @@ -112,24 +112,24 @@ the library.
raz 0.11.0 is a tarball for x86-64 Linux with the compiler, raz,
+
raz 0.11.1 is a tarball for x86-64 Linux with the compiler, raz,
its library, lib/, which it finds beside itself, the formatter
and the documentation tool as sources in tools/, and the manual
pages. It needs nothing else installed.
$ tar xzf raz-0.11.0-linux-x86_64.tar.gz
-$ ln -s $PWD/raz-0.11.0-linux-x86_64/raz ~/.local/bin/raz
+$ tar xzf raz-0.11.1-linux-x86_64.tar.gz
+$ ln -s $PWD/raz-0.11.1-linux-x86_64/raz ~/.local/bin/raz
$ raz run Hello.raz
The link works since raz finds lib/ beside its real path. The
manual pages are in man/: man ./man/raz-tutorial.7.
The address download/latest always leads to the newest release,
-and download/raz-0.11.0-linux-x86_64.tar.gz to this one, for
-good. Earlier releases: 0.10.1, 0.10.0, 0.9.1, 0.9.0, 0.8.0, 0.7.1; each has its SHA-256 beside it, with
+and download/raz-0.11.1-linux-x86_64.tar.gz to this one, for
+good. Earlier releases: 0.11.0, 0.10.1, 0.10.0, 0.9.1, 0.9.0, 0.8.0, 0.7.1; each has its SHA-256 beside it, with
.sha256 added to its name.
-SHA-256 21efde9a00f589ff456a44dafb9f49a124e87d22f557965050480ce300c09c97
+SHA-256 65e8d5ffd5b1b22b917e260516bbf708bb6af9e25264bec5881aee02c821b22b
diff --git a/site/public/raz-lib.pdf b/site/public/raz-lib.pdf
index 40d9ba4..d55ba7a 100644
Binary files a/site/public/raz-lib.pdf and b/site/public/raz-lib.pdf differ
diff --git a/site/public/raz.pdf b/site/public/raz.pdf
index 0855957..9eac1dd 100644
Binary files a/site/public/raz.pdf and b/site/public/raz.pdf differ
diff --git a/site/public/spec.html b/site/public/spec.html
index 4e3a1fe..8299cb3 100644
--- a/site/public/spec.html
+++ b/site/public/spec.html
@@ -38,7 +38,7 @@
raz is a small systems language, first made for x86-64 Linux. A raz program can lay a record over a device’s registers, read and write a device’s memory exactly as written, take part in lock-free algorithms, make 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.
This is the first volume of the report: the language, what an implementation chooses, and the grammar. The second, doc/raz-lib.md, is the library, which sections 3 and 10 and appendix A name.
This report defines the language. It is short on purpose. Whatever it doesn’t allow, raz doesn’t have.
-This is version 2026-10.22 of the report; section 11 says where each version’s changes are told. 2026-10.11 and 2026-10.12 are a thaw the owner chose, for a language anyone can build again. They break programs written for 2026-10.10 and before: for 2026-10.9, say, the report of compiler 0.5.0, the last release before them; and 2026-10.12 breaks code procedures written for 2026-10.11. 2026-10.20 is a third, for try (section 7.8); it breaks a program that has a name try.
+This is version 2026-10.23 of the report; section 11 says where each version’s changes are told. 2026-10.11 and 2026-10.12 are a thaw the owner chose, for a language anyone can build again. They break programs written for 2026-10.10 and before: for 2026-10.9, say, the report of compiler 0.5.0, the last release before them; and 2026-10.12 breaks code procedures written for 2026-10.11. 2026-10.20 is a third, for try (section 7.8); it breaks a program that has a name try.
The language is frozen, softly, from this version on: it changes only to mend a defect, and its library grows only by what breaks no program written for it. What anyone wishes it had waits on a list, for a later thaw.
1. A first look
module Hello;
@@ -1114,7 +1114,10 @@
proc asin*(x: F64): F64; (* from -pi/2 to pi/2 *)
proc acos*(x: F64): F64; (* from 0 to pi *)
proc atan*(x: F64): F64; (* from -pi/2 to pi/2 *)
-proc atan2*(y, x: F64): F64; (* the angle of (x, y) from the x axis, from -pi to pi *)
+proc atan2*(y, x: F64): F64; (* the angle of (x, y) from the x axis, from -pi to pi *)
+proc bits*(x: F64): U64; (* the bits of x, as IEEE 754 lays them out *)
+proc fromBits*(u: U64): F64; (* the F64 whose bits are u *)
+proc mul*(a, b: U64): (U64, U64); (* a times b: the low 64 bits of the product, and the high *)
A Buf, a List and a Map take their memory from the allocator init gives them. Fmt’s format takes the next argument at each {}; {{ and }} stand for { and }. A Map hashes and compares its keys with the procedures it is given: import Count := Map([]U8, INT, Str.hash, Str.eq);.
Str reads and writes UTF-8. encode writes a character, of at most 10FFFFH, in one to four bytes; a number that isn’t one becomes FFFDH, the character that stands for a wrong one. decode reads the first character of s, and gives FFFDH and 1 for a byte that doesn’t start one rightly, and 0 and 0 for an empty s. toInt reads a decimal number, with a - or + before it if any, and nothing else.
le and be read an unsigned number of up to 8 bytes in a fixed order, little-endian or big-endian, whatever the machine’s own, and putLE and putBE write one; more than 8 bytes stops the program. They are how a file format or a network protocol is read and written: