<feed xmlns='http://www.w3.org/2005/Atom'>
<title>zash.git/bench/probes, branch main</title>
<subtitle>Fast Almquist-family POSIX shell for z/OS UNIX with bundled libedit</subtitle>
<id>https://git.abendless.com/zash.git/atom?h=main</id>
<link rel='self' href='https://git.abendless.com/zash.git/atom?h=main'/>
<link rel='alternate' type='text/html' href='https://git.abendless.com/zash.git/'/>
<updated>2026-11-26T02:30:22Z</updated>
<entry>
<title>interactive: a prompt's width counts columns, not bytes</title>
<updated>2026-11-26T02:30:22Z</updated>
<author>
<name>Sean Kurtz</name>
<email>seankurtz75@gmail.com</email>
</author>
<published>2026-11-26T02:30:22Z</published>
<link rel='alternate' type='text/html' href='https://git.abendless.com/zash.git/commit/?id=deb0ed011fe2cfc7058facb3f63b7feaeb8d4a8e'/>
<id>urn:sha1:deb0ed011fe2cfc7058facb3f63b7feaeb8d4a8e</id>
<content type='text'>
The built-in editor skipped `ESC [ ...` sequences when working out where
the prompt ends.  Colour and titles are not all CSI: an OSC title or
hyperlink runs to BEL or `ESC \`, DCS runs the same way, and `tput sgr0`
is the three-byte `ESC ( B` before `ESC [ m`.  A prompt built with
`$(tput ...)` was measured wrong, which costs the cursor position and
with it the wrapped-line arithmetic.

`esc_seq_len()` in interact.c now walks what a terminal understands, and
edit_builtin.c uses it.  The libedit build shares the walk: it brackets
control runs for `EL_PROMPT_ESC`, and adds the space libedit needs when
a prompt ends in one, since libedit attaches a literal run to the
character after it.

bench/editor.py measures the two costs run.sh cannot see, start to first
prompt and per-key echo, on a pty; bench/README.md has the table.  The
release, z/OS and fuzz builds move to -O3 while the sanitizer and
coverage builds stay low: inlined frames make their reports harder to
read than the few percent they would gain.
</content>
</entry>
<entry>
<title>C23: nullptr for null pointers, constexpr for typed constants</title>
<updated>2026-11-25T06:31:26Z</updated>
<author>
<name>Sean Kurtz</name>
<email>seankurtz75@gmail.com</email>
</author>
<published>2026-11-25T06:30:44Z</published>
<link rel='alternate' type='text/html' href='https://git.abendless.com/zash.git/commit/?id=c7f23b8a5fb86f8df51809aca64415bcadcaa9f6'/>
<id>urn:sha1:c7f23b8a5fb86f8df51809aca64415bcadcaa9f6</id>
<content type='text'>
nullptr in every place a null pointer constant was meant; NULL is gone
from src/.

constexpr where it improves on #define without costing anything: the
IGGCSI00 work-area offsets and sizes, and the scalar sizes MVS_DSN_MAX,
CSI_FIELD_LEN, CSI_WORK_MIN, PDS_DIRBLK, CSI_WORK, CSI_MAX_CALLS.  A
constexpr in C is a constant expression, so it still bounds the arrays
that use it, and it now carries a type and can be checked with
static_assert.  Feature switches (#if), the CSIETYPE/EBCDIC byte
constants read as octets, and the related-constant enum sets stay as
they were.
</content>
</entry>
<entry>
<title>notes: the 64-bit runtime is loaded from the linklist, not the LPA (#19)</title>
<updated>2026-11-25T04:24:00Z</updated>
<author>
<name>Sean Kurtz</name>
<email>seankurtz75@gmail.com</email>
</author>
<published>2026-11-25T04:24:00Z</published>
<link rel='alternate' type='text/html' href='https://git.abendless.com/zash.git/commit/?id=4eeb68e37ca5703377d8bd9423a47af7d56d832a'/>
<id>urn:sha1:4eeb68e37ca5703377d8bd9423a47af7d56d832a</id>
<content type='text'>
* bench: keep the HLASM probe comments out of the continue column

Also fixes the tiny64.s header, which named tiny31.s.

* notes: the 64-bit runtime is loaded from the linklist, not the LPA</content>
</entry>
<entry>
<title>bench: keep the start-up and fork probes in bench/probes</title>
<updated>2026-11-25T03:31:20Z</updated>
<author>
<name>Sean Kurtz</name>
<email>seankurtz75@gmail.com</email>
</author>
<published>2026-11-25T03:31:20Z</published>
<link rel='alternate' type='text/html' href='https://git.abendless.com/zash.git/commit/?id=582a3ec37a96d6797e8b64039f5b6d43490997fc'/>
<id>urn:sha1:582a3ec37a96d6797e8b64039f5b6d43490997fc</id>
<content type='text'>
The probe sources only existed inline in the docs and in a scratch
directory on the z/OS box, so the numbers in bench/README.md could not be
reproduced from the repository.  fk3.c (fork cost against parent storage),
tiny.c (start-up cost) and the HLASM pair tiny31.s/tiny64.s (start-up with
no C runtime) now live in bench/probes/, with run.sh building and timing
them at both widths; the docs point at them instead of repeating them.
</content>
</entry>
</feed>
