raz / commit 7f0df936

commit
7f0df9369459dc34d7e3ce31a82ec4daf4fd640b
author
Luis <42945842+ldiaz94@users.noreply.github.com>
date
parent
52169ca3
site: v0.11.1

patch · log

7 files changed, +15 -11

site/public/_redirects (history) modified +1 -1

@@ -1 +1 @@
1-/download/latest /download/raz-0.11.0-linux-x86_64.tar.gz 302
1+/download/latest /download/raz-0.11.1-linux-x86_64.tar.gz 302

site/public/download/raz-0.11.1-linux-x86_64.tar.gz (history) added

Binary file; the patch has it.

site/public/download/raz-0.11.1-linux-x86_64.tar.gz.sha256 (history) added +1 -0

@@ -0,0 +1 @@
1+65e8d5ffd5b1b22b917e260516bbf708bb6af9e25264bec5881aee02c821b22b raz-0.11.1-linux-x86_64.tar.gz

site/public/index.html (history) modified +8 -8

@@ -112,24 +112,24 @@
112112 <a href="raz-lib.pdf">the library</a>.</p>
113113
114114 <h2 id="download">Download</h2>
115-<p>raz 0.11.0 is a tarball for x86-64 Linux with the compiler, <code>raz</code>,
115+<p>raz 0.11.1 is a tarball for x86-64 Linux with the compiler, <code>raz</code>,
116116 its library, <code>lib/</code>, which it finds beside itself, the formatter
117117 and the documentation tool as sources in <code>tools/</code>, and the manual
118118 pages. It needs nothing else installed.</p>
119119 <div class="cta">
120- <a class="btn primary" href="download/raz-0.11.0-linux-x86_64.tar.gz">Download raz 0.11.0</a>
121- <a class="btn" href="download/raz-0.11.0-linux-x86_64.tar.gz.sha256">SHA-256</a>
120+ <a class="btn primary" href="download/raz-0.11.1-linux-x86_64.tar.gz">Download raz 0.11.1</a>
121+ <a class="btn" href="download/raz-0.11.1-linux-x86_64.tar.gz.sha256">SHA-256</a>
122122 </div>
123-<pre class="code"><code>$ tar xzf raz-0.11.0-linux-x86_64.tar.gz
124-$ ln -s $PWD/raz-0.11.0-linux-x86_64/raz ~/.local/bin/raz
123+<pre class="code"><code>$ tar xzf raz-0.11.1-linux-x86_64.tar.gz
124+$ ln -s $PWD/raz-0.11.1-linux-x86_64/raz ~/.local/bin/raz
125125 $ raz run Hello.raz</code></pre>
126126 <p>The link works since raz finds <code>lib/</code> beside its real path. The
127127 manual pages are in <code>man/</code>: <code>man ./man/raz-tutorial.7</code>.
128128 The address <code>download/latest</code> always leads to the newest release,
129-and <code>download/raz-0.11.0-linux-x86_64.tar.gz</code> to this one, for
130-good. Earlier releases: <a href="download/raz-0.10.1-linux-x86_64.tar.gz">0.10.1</a>, <a href="download/raz-0.10.0-linux-x86_64.tar.gz">0.10.0</a>, <a href="download/raz-0.9.1-linux-x86_64.tar.gz">0.9.1</a>, <a href="download/raz-0.9.0-linux-x86_64.tar.gz">0.9.0</a>, <a href="download/raz-0.8.0-linux-x86_64.tar.gz">0.8.0</a>, <a href="download/raz-0.7.1-linux-x86_64.tar.gz">0.7.1</a>; each has its SHA-256 beside it, with
129+and <code>download/raz-0.11.1-linux-x86_64.tar.gz</code> to this one, for
130+good. Earlier releases: <a href="download/raz-0.11.0-linux-x86_64.tar.gz">0.11.0</a>, <a href="download/raz-0.10.1-linux-x86_64.tar.gz">0.10.1</a>, <a href="download/raz-0.10.0-linux-x86_64.tar.gz">0.10.0</a>, <a href="download/raz-0.9.1-linux-x86_64.tar.gz">0.9.1</a>, <a href="download/raz-0.9.0-linux-x86_64.tar.gz">0.9.0</a>, <a href="download/raz-0.8.0-linux-x86_64.tar.gz">0.8.0</a>, <a href="download/raz-0.7.1-linux-x86_64.tar.gz">0.7.1</a>; each has its SHA-256 beside it, with
131131 <code>.sha256</code> added to its name.</p>
132-<p class="sha">SHA-256 <code>21efde9a00f589ff456a44dafb9f49a124e87d22f557965050480ce300c09c97</code></p>
132+<p class="sha">SHA-256 <code>65e8d5ffd5b1b22b917e260516bbf708bb6af9e25264bec5881aee02c821b22b</code></p>
133133
134134 </main>
135135 <footer>raz is under the ISC license.</footer>

site/public/raz-lib.pdf (history) modified

Binary file; the patch has it.

site/public/raz.pdf (history) modified

Binary file; the patch has it.

site/public/spec.html (history) modified +5 -2

@@ -38,7 +38,7 @@
3838 <p>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.</p>
3939 <p>This is the first volume of the report: the language, what an implementation chooses, and the grammar. The second, <code>doc/raz-lib.md</code>, is the library, which sections 3 and 10 and appendix A name.</p>
4040 <p>This report defines the language. It is short on purpose. Whatever it doesn’t allow, raz doesn’t have.</p>
41-<p>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 <code>try</code> (section 7.8); it breaks a program that has a name <code>try</code>.</p>
41+<p>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 <code>try</code> (section 7.8); it breaks a program that has a name <code>try</code>.</p>
4242 <p>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.</p>
4343 <h1 id="a-first-look">1. A first look</h1>
4444 <pre><code>module Hello;
@@ -1114,7 +1114,10 @@
11141114 proc asin*(x: F64): F64; (* from -pi/2 to pi/2 *)
11151115 proc acos*(x: F64): F64; (* from 0 to pi *)
11161116 proc atan*(x: F64): F64; (* from -pi/2 to pi/2 *)
1117-proc atan2*(y, x: F64): F64; (* the angle of (x, y) from the x axis, from -pi to pi *)</code></pre>
1117+proc atan2*(y, x: F64): F64; (* the angle of (x, y) from the x axis, from -pi to pi *)
1118+proc bits*(x: F64): U64; (* the bits of x, as IEEE 754 lays them out *)
1119+proc fromBits*(u: U64): F64; (* the F64 whose bits are u *)
1120+proc mul*(a, b: U64): (U64, U64); (* a times b: the low 64 bits of the product, and the high *)</code></pre>
11181121 <p>A <code>Buf</code>, a <code>List</code> and a <code>Map</code> take their memory from the allocator <code>init</code> gives them. <code>Fmt</code>’s format takes the next argument at each <code>{}</code>; <code>{{</code> and <code>}}</code> stand for <code>{</code> and <code>}</code>. A <code>Map</code> hashes and compares its keys with the procedures it is given: <code>import Count := Map([]U8, INT, Str.hash, Str.eq);</code>.</p>
11191122 <p><code>Str</code> reads and writes UTF-8. <code>encode</code> 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. <code>decode</code> reads the first character of <code>s</code>, and gives FFFDH and 1 for a byte that doesn’t start one rightly, and 0 and 0 for an empty <code>s</code>. <code>toInt</code> reads a decimal number, with a <code>-</code> or <code>+</code> before it if any, and nothing else.</p>
11201123 <p><code>le</code> and <code>be</code> read an unsigned number of up to 8 bytes in a fixed order, little-endian or big-endian, whatever the machine’s own, and <code>putLE</code> and <code>putBE</code> write one; more than 8 bytes stops the program. They are how a file format or a network protocol is read and written:</p>