raz / commit ff852bb1

commit
ff852bb169e7737ab10f12901c7111cbd3503ffb
author
Luis <42945842+ldiaz94@users.noreply.github.com>
date
parent
413478c6
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.

patch · log

1 file changed, +3 -1

doc/raz.md (history) modified +3 -1

@@ -9,7 +9,7 @@
99 This report defines the language. It is short on purpose. Whatever it
1010 doesn't allow, raz doesn't have.
1111
12-This is version 2026-10.18 of the report; section 12 says what each
12+This is version 2026-10.19 of the report; section 12 says what each
1313 version changed. 2026-10.11 and 2026-10.12 are a thaw the owner chose,
1414 for a language anyone can build again. They break programs written
1515 for 2026-10.10 and before: for 2026-10.9, say, the report of compiler
@@ -1229,6 +1229,7 @@
12291229 | `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 |
12301230 | `Arena` | an allocator that frees everything at once; `ADR(arena.base)` is its allocator |
12311231 | `Str` | operations on `[]U8` strings: comparing, hashing, finding, UTF-8, reading a number |
1232+| `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 |
12321233 | `Buf` | a growable byte buffer |
12331234 | `Fmt` | formatted output: `Fmt.print("{} of {}\n", [Fmt.int(n), Fmt.real(x, 2)])`, or into a `Buf` with `Fmt.write` |
12341235 | `List` | a generic singly linked list, `List(T)` |
@@ -1931,6 +1932,7 @@
19311932 another as a block (section 6.8).
19321933 - **2026-10.18.** A code procedure takes and returns slices (section
19331934 8).
1935+- **2026-10.19.** The library gains `Bytes` (section 11).
19341936
19351937 ## Appendix A. What an implementation chooses
19361938