From 69d40f8faeb84833c114e69529c8be1f2909b167 Mon Sep 17 00:00:00 2001 From: Luis <42945842+ldiaz94@users.noreply.github.com> Date: Mon, 19 Oct 2026 11:01:04 +0100 Subject: [PATCH] site: v0.21.0 Its tarball, made from the tag by make dist, and download/latest; the pages that show raz's output say what 0.21.0 prints. --- diff --git a/site/public/_redirects b/site/public/_redirects index 55616d6..db5dd2e 100644 --- a/site/public/_redirects +++ b/site/public/_redirects @@ -1 +1 @@ -/download/latest /download/raz-0.20.0-linux-x86_64.tar.gz 302 +/download/latest /download/raz-0.21.0-linux-x86_64.tar.gz 302 diff --git a/site/public/advanced/static.html b/site/public/advanced/static.html index 3f8a8ad..617006f 100644 --- a/site/public/advanced/static.html +++ b/site/public/advanced/static.html @@ -97,8 +97,8 @@ Cprint: ELF 64-bit LSB executable, x86-64, version 1 (SYSV), dynamically linked, interpreter /lib64/ld-linux-x86-64.so.2, with debug_info, not stripped $ ldd Cprint | sed 's/ (0x[0-9a-f]*)//' linux-vdso.so.1 - libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 - /lib64/ld-linux-x86-64.so.2 + libc.so.6 => /usr/lib/libc.so.6 + /lib64/ld-linux-x86-64.so.2 => /usr/lib64/ld-linux-x86-64.so.2

Both are fine. The point is that you choose, and the language says which you chose: a program uses C exactly when a module of it has an extern or a link of a library.

Only what is reached

The compiler keeps only what can be reached from main and the module bodies. Unused procedures, variables and strings are left out. Here are two programs that differ by one large procedure that nothing calls.

@@ -134,14 +134,14 @@
$ raz Lean.raz
 $ raz Heavy.raz
 $ ls -l Lean Heavy | awk '{print $9, $5}'
-Heavy 28480
-Lean 28472
+Heavy 28488 +Lean 28480

The sizes differ by a few bytes, not by the hundreds of kilobytes that the table and the procedure would take: they are not in the executable at all. You can link in a library module without worrying what else it offers.

Stripping

-s leaves out what is there for finding faults: the symbols and line numbers, the places a failure is told by, and the profiler. It is for the final build of a size-conscious program; the default keeps them so that gdb and failure messages work.

$ raz -s -o Lean-stripped Lean.raz
 $ ls -l Lean Lean-stripped | awk '{print $9, $5}'
-Lean 28472
+Lean 28480
 Lean-stripped 6856
 $ ./Lean-stripped
 same program
diff --git a/site/public/download/raz-0.21.0-linux-x86_64.tar.gz b/site/public/download/raz-0.21.0-linux-x86_64.tar.gz new file mode 100644 index 0000000..8794913 Binary files /dev/null and b/site/public/download/raz-0.21.0-linux-x86_64.tar.gz differ diff --git a/site/public/download/raz-0.21.0-linux-x86_64.tar.gz.sha256 b/site/public/download/raz-0.21.0-linux-x86_64.tar.gz.sha256 new file mode 100644 index 0000000..1f46a58 --- /dev/null +++ b/site/public/download/raz-0.21.0-linux-x86_64.tar.gz.sha256 @@ -0,0 +1 @@ +a8e2e550e927050d36a7e9731e6de22b094189adea15a984cd921917cbd8d90f raz-0.21.0-linux-x86_64.tar.gz diff --git a/site/public/index.html b/site/public/index.html index 4fb339d..e50cb59 100644 --- a/site/public/index.html +++ b/site/public/index.html @@ -114,24 +114,24 @@ the library.

Download

-

raz 0.20.0 is a tarball for x86-64 Linux with the compiler, raz, +

raz 0.21.0 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.

- Download raz 0.20.0 - SHA-256 + Download raz 0.21.0 + SHA-256
-
$ tar xzf raz-0.20.0-linux-x86_64.tar.gz
-$ ln -s $PWD/raz-0.20.0-linux-x86_64/raz ~/.local/bin/raz
+
$ tar xzf raz-0.21.0-linux-x86_64.tar.gz
+$ ln -s $PWD/raz-0.21.0-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.20.0-linux-x86_64.tar.gz to this one, for -good. Earlier releases: 0.19.0, 0.18.1, 0.18.0, 0.17.2, 0.17.1, 0.17.0, 0.16.0, 0.15.0, 0.14.0, 0.13.0, 0.12.0, 0.11.1, 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 +and download/raz-0.21.0-linux-x86_64.tar.gz to this one, for +good. Earlier releases: 0.20.0, 0.19.0, 0.18.1, 0.18.0, 0.17.2, 0.17.1, 0.17.0, 0.16.0, 0.15.0, 0.14.0, 0.13.0, 0.12.0, 0.11.1, 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 bfa954d27d759e4ca7f7f33debb4705f25d5c05a097d86aa28b3260048b5d9cc

+

SHA-256 a8e2e550e927050d36a7e9731e6de22b094189adea15a984cd921917cbd8d90f

Release pages give each version's commit, notes, compiler and source archives, with checksums. Browse the source and history, or clone: diff --git a/site/public/tour/hello.html b/site/public/tour/hello.html index 2fe7db3..86c2774 100644 --- a/site/public/tour/hello.html +++ b/site/public/tour/hello.html @@ -70,7 +70,7 @@ $ raz run Quiet.raz hello, again $ ls -l Quiet | awk '{print $5, "bytes"}' -28472 bytes

+28480 bytes

The program is a static executable with no run time besides the code it uses, so it is a few kilobytes, and runs without any library installed.

What Out can write

Out is the library's buffered output. It writes strings, single characters, numbers in decimal or hexadecimal, and a line feed. A string is written as it is, with \n for a line feed, \t for a tab, \" and \\; or between backquotes, as a raw string with no escapes at all, which may run over lines (lesson 6).