From cfff918dadc5c8f8447209ef1f84fc5df570e62f Mon Sep 17 00:00:00 2001 From: Luis <42945842+ldiaz94@users.noreply.github.com> Date: Tue, 13 Oct 2026 21:50:03 +0100 Subject: [PATCH] site: v0.10.1 --- diff --git a/site/public/_redirects b/site/public/_redirects index 27598d1..e6129a0 100644 --- a/site/public/_redirects +++ b/site/public/_redirects @@ -1 +1 @@ -/download/latest /download/raz-0.10.0-linux-x86_64.tar.gz 302 +/download/latest /download/raz-0.10.1-linux-x86_64.tar.gz 302 diff --git a/site/public/advanced/static.html b/site/public/advanced/static.html index 5b9a1ae..1998974 100644 --- a/site/public/advanced/static.html +++ b/site/public/advanced/static.html @@ -65,7 +65,7 @@ $ ldd Bare not a dynamic executable $ ls -l Bare | awk '{print $5, "bytes"}' -26280 bytes +26288 bytes

It is statically linked: no interpreter, no shared libraries, no libc. ldd says so.

What it does when it runs

strace lists every system call a program makes. This is the whole of it:

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

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 28480
-Lean-stripped 6848
+Lean 28488
+Lean-stripped 6880
 $ ./Lean-stripped
 same program

raz -S Lean.raz is the other direction: it prints the machine code the compiler made, one source line at a time. The next two parts of the tour use it.

Save a program under its module’s name and run it with raz run Name.raz.

← Writing an allocatorContents
diff --git a/site/public/download/raz-0.10.1-linux-x86_64.tar.gz b/site/public/download/raz-0.10.1-linux-x86_64.tar.gz new file mode 100644 index 0000000..ebe255f Binary files /dev/null and b/site/public/download/raz-0.10.1-linux-x86_64.tar.gz differ diff --git a/site/public/download/raz-0.10.1-linux-x86_64.tar.gz.sha256 b/site/public/download/raz-0.10.1-linux-x86_64.tar.gz.sha256 new file mode 100644 index 0000000..d991764 --- /dev/null +++ b/site/public/download/raz-0.10.1-linux-x86_64.tar.gz.sha256 @@ -0,0 +1 @@ +d844589a05ba97f25413cbf5befe8f60f33857ecdbc12e049c18fe703ab23097 raz-0.10.1-linux-x86_64.tar.gz diff --git a/site/public/index.html b/site/public/index.html index 5e4e0bb..c9c62ea 100644 --- a/site/public/index.html +++ b/site/public/index.html @@ -35,13 +35,13 @@ 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.

-

The compiler is written in raz, about 10,500 lines, and builds itself. It makes +

The compiler is written in raz, about 10,700 lines, and builds itself. It makes x86-64 machine code and the ELF file itself, with no assembler or linker, in -one pass, at about 500,000 lines a second.

+one pass, at about 650,000 lines a second.

- ~10,500 lines of compiler - ~500K lines compiled a second + ~10,700 lines of compiler + ~650K lines compiled a second static executables, no run time to install 1 report, about 30 pages
@@ -109,24 +109,24 @@ short on purpose: whatever it doesn’t allow, raz doesn’t have.

Download

-

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

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

- Download raz 0.10.0 - SHA-256 + Download raz 0.10.1 + SHA-256
-
$ tar xzf raz-0.10.0-linux-x86_64.tar.gz
-$ ln -s $PWD/raz-0.10.0-linux-x86_64/raz ~/.local/bin/raz
+
$ tar xzf raz-0.10.1-linux-x86_64.tar.gz
+$ ln -s $PWD/raz-0.10.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.10.0-linux-x86_64.tar.gz to this one, for +and download/raz-0.10.1-linux-x86_64.tar.gz to this one, for good. Earlier releases: 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 9ba56121485956986dd242259b9a1e797cd4949ec824e927b16d1f54f23c4a8f

+

SHA-256 d844589a05ba97f25413cbf5befe8f60f33857ecdbc12e049c18fe703ab23097

raz is under the ISC license.
diff --git a/site/public/tour/hello.html b/site/public/tour/hello.html index ff01fe0..b991229 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"}' -28488 bytes
+28496 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 \\.