From ff852bb169e7737ab10f12901c7111cbd3503ffb Mon Sep 17 00:00:00 2001 From: Luis <42945842+ldiaz94@users.noreply.github.com> Date: Tue, 13 Oct 2026 11:27:18 +0100 Subject: [PATCH] Report 2026-10.19: Bytes The library gains Bytes: index, last, count and find over a []U8, many bytes at a time. How fast they are is the implementation's, so appendix A needs no word. By the owner's word. --- diff --git a/doc/raz.md b/doc/raz.md index 198455b..faef334 100644 --- a/doc/raz.md +++ b/doc/raz.md @@ -9,7 +9,7 @@ This report defines the language. It is short on purpose. Whatever it doesn't allow, raz doesn't have. -This is version 2026-10.18 of the report; section 12 says what each +This is version 2026-10.19 of the report; section 12 says what each version changed. 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 @@ -1229,6 +1229,7 @@ | `Heap` | a general allocator, `Heap.heap`, safe to call from several threads; freeing a block twice, or one it never gave out, stops the program | | `Arena` | an allocator that frees everything at once; `ADR(arena.base)` is its allocator | | `Str` | operations on `[]U8` strings: comparing, hashing, finding, UTF-8, reading a number | +| `Bytes` | searches of bytes, many at a time: `index`, `last`, `count` and `find` in a `[]U8`; one file per target where the target has instructions for it | | `Buf` | a growable byte buffer | | `Fmt` | formatted output: `Fmt.print("{} of {}\n", [Fmt.int(n), Fmt.real(x, 2)])`, or into a `Buf` with `Fmt.write` | | `List` | a generic singly linked list, `List(T)` | @@ -1931,6 +1932,7 @@ another as a block (section 6.8). - **2026-10.18.** A code procedure takes and returns slices (section 8). +- **2026-10.19.** The library gains `Bytes` (section 11). ## Appendix A. What an implementation chooses