Sigil 0.24.4
A toolchain and scripting release. Programs built through Zig get repaired libc sources, .sgv files can be read as bounded data, and UEFI applications can choose display modes. Process pipes deliver EOF promptly, shell pipelines stop producers when consumers exit early, and wildcard directories work in glob. Subtracting equal large integers now returns zero. Native exception handlers also stop code that should have been skipped.
Native code no longer continues past a caught exception
In natively compiled code that calls bytecode, or is called by it, two exception paths could carry on running code that should have been skipped. A release sigil cli install could report success after a failed Zig install this way.
A guard handler that raised a new exception could lose it when bytecode sat between the handler and the next guard out. That outer handler never ran, and its body continued with a meaningless value. The new exception now reaches the outer guard, or stops the program if nothing catches it. A failing dynamic-wind cleanup in the same position no longer removes the guard enclosing the one it reaches.
A native exception caught by a bytecode guard could resume the bytecode procedures between the raise and the guard, after the handler had run. Their remaining code ran, and a dynamic-wind among them ran its cleanup twice. Those procedures are now abandoned, as they are when bytecode raises. A handler that suspends through a bytecode prompt and resumes at a different stack depth can still return to the wrong procedure.
UEFI display modes
UEFI programs can now choose a panel's native resolution instead of being limited to 1920x1200. (sigil uefi) adds gop-modes to list display modes, gop-set-mode! to select one, and gop-edid to read the panel's EDID. edid-preferred-mode and edid-screen-size parse its preferred timing and physical size. Programs that do not choose a mode keep the existing automatic behavior; explicit choices have no resolution cap.
Higher resolutions cost more memory and time per frame. In QEMU, full-frame presentation took about 41 ms at 1920x1080, 68 ms at 2560x1440 and 221 ms at 3840x2160. These are emulated copy times, not hardware measurements. EDID reading has passed protocol-fixture tests and read the correct preferred mode on one laptop panel. See the UEFI Graphics guide for details.
Spawned programs receive EOF and SIGPIPE normally
Later children no longer inherit earlier children's process pipes, so closing a child's input delivers EOF even while another child is running. On Unix, spawned programs now start with the default SIGPIPE behavior, including PTY and synchronous commands. Programs that need to ignore SIGPIPE can still set that behavior themselves.
Strict .sgv data files
(sigil sgv) adds read-sgv-string, read-sgv-bytevector and read-sgv to read exactly one data value. A list such as (delete-file "example") stays data. Quote shorthands, datum labels, directives, character literals and exponents are refused, along with invalid UTF-8 and invisible Unicode format characters.
Reads have configurable limits, including 1 MiB of input and 64 levels of nesting by default. Invalid input raises a catchable error with byte, line and column, without quoting the document. Ordinary read is unchanged. Applications still need to validate their own schema. See the Sigil Value Files guide.
Pipelines stop producers when consumers exit early
Piping an infinite Sigil program to head -n 1 now returns after the first line. Pipelines close unused pipes and stop producers even when they ignore SIGPIPE and SIGTERM. Completed stages retain their output and exit statuses, and a failed consumer still reports a pipeline failure. A producer that has reached normal output EOF can finish its remaining work and report its natural exit status.
Globs find files through wildcard directories
glob now finds files with patterns such as repos/*/*/*.git/worktrees/*/gitdir and deps/*/.git, using relative or absolute paths. Literal hidden components work after wildcards. Wildcards skip hidden names unless the component starts with a dot, and ** traverses directories without following directory symlinks. Recursive results keep their previous traversal order, omit file symlinks, and include each pathname once even with repeated ** components.
Pinned Git sources for environment packages
Environment packages can now fetch repositories over HTTPS, including static Git hosting that has no archive endpoint. Sources pin a full commit and tree ID with git+https://HOST/REPO.git#COMMIT:TREE, plus the SHA-256 of a deterministic source archive. Sigil verifies the pin and checksum before caching the archive. Existing source pins and locks remain compatible.
A repaired Zig toolchain for cross-compilation
Sigil stays on Zig 0.16.0 and ships repaired copies of two libc source files. They fix page-boundary faults in strnlen, wcsnlen, wcslen, memchr, wmemchr and snprintf with %s, plus incorrect memccpy results. Faults were reproduced in x86_64 musl test programs. Exposure on Linux ARM64 with musl, WASI and selected Windows functions follows from source inspection; it has not been reproduced on each target. The static Linux AMD64 CLI uses GCC/musl. strncmp, wcsncmp and wcsncat remain outside this patch.
The managed SDK repairs recognized pristine sources before the first build or bundle, with backups. Unknown edits are refused. Every Zig discovery checks the effective sources, including a ZIG_LIB_DIR override. Use sigil toolchain install zig for a managed installation or ./scripts/with-zig true in a source checkout. A linked SDK must be repaired in its owning directory; Sigil will not repair through the link. Pass overrides through ZIG_LIB_DIR, since --zig-lib-dir is refused.
The repair needs no extra download or patch command. Zig archive downloads must match a pinned SHA-256, or the upstream signature on a host without a recorded hash. External package builds verify without rewriting their toolchains. CLI version switching remains available if SDK repair fails, with a warning and repair instructions.
Waiting on read and write descriptors together
(sigil async) adds await-fds, which suspends a task on lists of read and write descriptors, with optional timeout-ms: and cancel?: arguments. One wait owns both sets and one deadline, so repeated readiness notifications cannot resume the task more than once. Other tasks keep running while an embedded event loop waits. Ready results use the fd-select pair shape; a timeout returns an empty pair, and cancellation or an error returns #f.
Directory bundles complete successfully
sigil bundle <directory> now completes instead of failing with unbound variable dep-modules. The bundle contains the application's own modules and the standard library; use sigil bundle <package> in a workspace or sigil build for applications with other dependencies.
Release downloads
Release binaries are served from https://pkg.usesigil.org/dl/ and are no longer uploaded to Codeberg. Scripts fetching release binaries from Codeberg need to use the new location. Source dependencies using codeberg:sigil/sigil still work.
Fixes
- Subtracting a large integer from itself could return the negated sum instead of zero, including at and above 2^47 such as microsecond timestamps. This is fixed in bytecode and native builds.
(make-parameter "ok" string-length)failed withapply: not a procedure. Native apply helpers now accept plain native procedures.- A compiled macro referring to a module absent from an application's dependencies raised a generic I/O error. The module error now names the module and symbol and points to the target's declared dependencies.
- Waiting on an empty descriptor set ignored its timeout and could make the scheduler spin. It now waits for the timeout.
- A closed descriptor could go unnoticed by the epoll backend. Its waiter now completes with
#f, while other waiters continue. - Concurrent calls to
ensure-directorycould fail withmake-directory: File exists. Another caller creating the directory now counts as success; a file in the way remains an error.
Known limitations
Building an external package from source fails with mount: permission denied (are you root?) when the Sigil store is on a filesystem mounted nosuid or nodev. By default the store is under your home directory, so a separate hardened /home can hit this. The build stops at that error and never runs with a writable input. Packages from a cache or substitute aren't affected. This isn't new in 0.24.4, and the fix is planned for 0.24.5.