<feed xmlns='http://www.w3.org/2005/Atom'>
<title>zash.git/DESIGN.md, branch perf/fork-fastpath</title>
<subtitle>Fast Almquist-family POSIX shell for z/OS UNIX with bundled libedit</subtitle>
<id>https://git.abendless.com/zash.git/atom?h=perf%2Ffork-fastpath</id>
<link rel='self' href='https://git.abendless.com/zash.git/atom?h=perf%2Ffork-fastpath'/>
<link rel='alternate' type='text/html' href='https://git.abendless.com/zash.git/'/>
<updated>2026-11-25T19:19:07Z</updated>
<entry>
<title>docs: the z/OS tables and prose at 64-bit, C23 and the LPA</title>
<updated>2026-11-25T19:19:07Z</updated>
<author>
<name>Sean Kurtz</name>
<email>seankurtz75@gmail.com</email>
</author>
<published>2026-11-25T19:19:07Z</published>
<link rel='alternate' type='text/html' href='https://git.abendless.com/zash.git/commit/?id=e85914ec27f202a277a5a3e2a41a5f5328ab70cf'/>
<id>urn:sha1:e85914ec27f202a277a5a3e2a41a5f5328ab70cf</id>
<content type='text'>
README's benchmark table is the 64-bit run with the run-time in the LPA
and zsh installed (it was the 2.1-era table, and its zsh column was the
31 ms start-up, not zsh). bench/README.md keeps the 2.1 numbers as the
history of what the LPA fixed, and gains the start-up table it now has a
measurement for. investigation.md's §2 recommendation was still "build
31-bit"; it now says what happened instead.
</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>C23: compile as C23 and use its spelling</title>
<updated>2026-11-25T06:17:57Z</updated>
<author>
<name>Sean Kurtz</name>
<email>seankurtz75@gmail.com</email>
</author>
<published>2026-11-25T06:17:57Z</published>
<link rel='alternate' type='text/html' href='https://git.abendless.com/zash.git/commit/?id=122dd54f6d915240cd5327d08f9b36e243983956'/>
<id>urn:sha1:122dd54f6d915240cd5327d08f9b36e243983956</id>
<content type='text'>
The z/OS toolchain would not take C23 when this was first written; IBM
Open XL C/C++ 2.2 does (clang 21.1, __STDC_VERSION__ 202311), and so
does the clang on Linux.  -std=c23 in the Makefile, and the standard
attributes in place of the ones that were macros:

  _Noreturn      -&gt; [[noreturn]] (on declarations and definitions)
  _Static_assert -&gt; static_assert
  _Alignas       -&gt; alignas
  NODISCARD      -&gt; [[nodiscard]]
  FALLTHROUGH    -&gt; [[fallthrough]]

PRINTFLIKE and UNREACHABLE() stay macros: [[gnu::format]] and
[[gnu::unreachable]] are vendor attributes, and the standard has no
[[format]] or [[unreachable]] for a header-only project yet.

Standard-library additions newer than the libc of either system
(&lt;stdbit.h&gt;, &lt;stdckdint.h&gt;) are not used, so gcc -std=c2x still builds
the tree warning-free.  The suite, ASan/UBSan and the z/OS lint pass as
before; linux/i-dscomplete remains the one local failure it was on
main.
</content>
</entry>
<entry>
<title>build: make the 64-bit z/OS build the default</title>
<updated>2026-11-25T06:06:46Z</updated>
<author>
<name>Sean Kurtz</name>
<email>seankurtz75@gmail.com</email>
</author>
<published>2026-11-25T06:06:46Z</published>
<link rel='alternate' type='text/html' href='https://git.abendless.com/zash.git/commit/?id=b786aac5c1578a5e87c42db8273e13af09ab5ef7'/>
<id>urn:sha1:b786aac5c1578a5e87c42db8273e13af09ab5ef7</id>
<content type='text'>
zash is built 64-bit on z/OS now: -m64 for the ASCII and the EBCDIC
build and for the debug build, and `make` as well as `make zash` land
on zos-ascii there. The 31-bit build existed for the 64-bit start and
fork costs, which were the C run-time being loaded out of the linklist;
with CELQ* in the LPA the widths measure the same and the shell is
built at the width IBM builds for.

The catalog and dynamic-allocation modules are AMODE 31 and OS_UPSTACK
does not exist at -m64, so both are declared with plain OS linkage,
which is the 64-bit glue for an AMODE 31 callee. Neither module is
installed on the test system, so that path is unverified there;
csi_call() still catches a program check and retires the catalog.
IGGCSI00's VL bit comes from the width of a pointer, not 0x80000000.

Documentation follows: README gains a Recommendations section for the
LPA change and loses the 31-bit rationale; DESIGN.md's cost model,
catalog linkage and open questions match the measurements; bench/README
states the current width and the rerun numbers; investigation.md
records the decision.
</content>
</entry>
<entry>
<title>docs: humanize the markdown docs</title>
<updated>2026-11-24T17:52:12Z</updated>
<author>
<name>Sean Kurtz</name>
<email>seankurtz75@gmail.com</email>
</author>
<published>2026-11-24T17:52:12Z</published>
<link rel='alternate' type='text/html' href='https://git.abendless.com/zash.git/commit/?id=2b257338481007b88331ae445b26ff99bdbf8977'/>
<id>urn:sha1:2b257338481007b88331ae445b26ff99bdbf8977</id>
<content type='text'>
Plain sentences where the prose had decorative bold lead-ins, em dashes
and one-line closers. Claims, numbers and commands are unchanged, except
two corrections that the startup probe settled: README said the remaining
z/OS gap was the price of the address mode, and DESIGN's open question on
`a | b &amp;` said the gain depended on the address mode. Both are the 64-bit
C run-time, not the address mode.
</content>
</entry>
<entry>
<title>docs: keep the probe write-up in notes/investigation.md</title>
<updated>2026-11-24T17:39:53Z</updated>
<author>
<name>Sean Kurtz</name>
<email>seankurtz75@gmail.com</email>
</author>
<published>2026-11-24T17:39:53Z</published>
<link rel='alternate' type='text/html' href='https://git.abendless.com/zash.git/commit/?id=d60ce596e6f4ecd62ada6be0916caea22c75e0a8'/>
<id>urn:sha1:d60ce596e6f4ecd62ada6be0916caea22c75e0a8</id>
<content type='text'>
The assembler-vs-C experiment, its method and the questions it leaves
open get a tracked home outside the generated docs/ tree; bench/README
keeps the result table and points there.
</content>
</entry>
<entry>
<title>docs: the 64-bit start-up cost is LE, not the address mode</title>
<updated>2026-11-24T17:34:17Z</updated>
<author>
<name>Sean Kurtz</name>
<email>seankurtz75@gmail.com</email>
</author>
<published>2026-11-24T17:34:17Z</published>
<link rel='alternate' type='text/html' href='https://git.abendless.com/zash.git/commit/?id=3dbb5a19db60fa2bb681a5a3158b8dc91be40964'/>
<id>urn:sha1:3dbb5a19db60fa2bb681a5a3158b8dc91be40964</id>
<content type='text'>
An AMODE 64 HLASM program that returns 0 without any C run-time starts
in 0.8 ms, the same as the AMODE 31 copy, while the same empty program
in C costs 29.4 ms at -m64 and 2.0 ms at -m32. So the 28 ms is Language
Environment's 64-bit initialization, not the address space, and the
31-bit LE start is about 1 ms. Records the probe and corrects the
claims in bench/README.md and DESIGN.md.
</content>
</entry>
<entry>
<title>fix: keep the Makefile readable by IBM make</title>
<updated>2026-11-24T03:24:32Z</updated>
<author>
<name>Sean Kurtz</name>
<email>seankurtz75@gmail.com</email>
</author>
<published>2026-11-24T03:24:32Z</published>
<link rel='alternate' type='text/html' href='https://git.abendless.com/zash.git/commit/?id=aea7186e9e940b5c4017d6a607483de49f17641a'/>
<id>urn:sha1:aea7186e9e940b5c4017d6a607483de49f17641a</id>
<content type='text'>
Remove ?= and $(shell) from the docs browser lookup, use $(MAKE) for recursion, and make the z/OS default naming explicit.
</content>
</entry>
<entry>
<title>Merge origin/main into docs/logo-and-clean</title>
<updated>2026-11-23T17:50:17Z</updated>
<author>
<name>Sean Kurtz</name>
<email>seankurtz75@gmail.com</email>
</author>
<published>2026-11-23T17:50:17Z</published>
<link rel='alternate' type='text/html' href='https://git.abendless.com/zash.git/commit/?id=b6574b2f3cb86d33d7e55985c7914dfce6dbf296'/>
<id>urn:sha1:b6574b2f3cb86d33d7e55985c7914dfce6dbf296</id>
<content type='text'>
Resolutions: README.md and DESIGN.md keep the new colour logo
(packaging/zash-logo.svg) at width 220; the Makefile keeps main's newer
shellcheck header, lists `make docs` in the usage block, and `clean`
removes docs, cov and $(ZTOOLS) along with the branch's new tools.
</content>
</entry>
<entry>
<title>docs: one centred logo, and clean removes what this makefile builds</title>
<updated>2026-11-23T17:19:30Z</updated>
<author>
<name>Sean Kurtz</name>
<email>seankurtz75@gmail.com</email>
</author>
<published>2026-11-23T17:19:30Z</published>
<link rel='alternate' type='text/html' href='https://git.abendless.com/zash.git/commit/?id=e1711d9e687cd17175bdd0a17c1ed717e53def28'/>
<id>urn:sha1:e1711d9e687cd17175bdd0a17c1ed717e53def28</id>
<content type='text'>
README and DESIGN.md showed a light/dark &lt;picture&gt; pair, copied from a
layout that had no centring; both now use packaging/zash-logo.svg inside
a centred paragraph, the same header the typst spec already uses.

make clean listed neither zash-debug nor fuzz-mvsfmt, so both survived a
clean. The shellcheck directive at the top of the makefile now also
covers the $(OBJS)-style expansions and the recipe `if` it reads as shell
syntax.
</content>
</entry>
</feed>
