The Sparkles toolchain — Acceptance and evidence
Each requirement of the specification, WASI and WebAssembly modules pages maps to a scenario, an oracle, and evidence. Evidence states follow Writing Specification Docs: verified means the named check passed for the named configuration, partial names what is missing, and planned rows name the design, not code that exists. A skipped check is not a pass. Evidence in dlang.nix and the forks is cited by link or by name, since it lies outside this tree.
Oracles
- Compiler behavior — the forks' own test suites (LDC's lit and
dmd-testsuite, LLVM's lit subsets for the changed backends), whose expectations are written independently of the change under test. - Runtime libraries — the upstream druntime and Phobos unittests, run on each host and under wasmtime for each production WASI preview.
- Sanitizer, profile and fuzzer runtimes — programs with a planted defect (an out-of-bounds read, an unreachable branch never executed, a crash on a marked input) whose detection is the expected result.
- Closure contents —
nix path-info -randnix why-dependson the built derivation: an absent path is checked by asking for it. - WebAssembly modules — a differential oracle: the same
sparkles:baseandsparkles:core-clifunctions compiled natively, on a fixed corpus (TCM9). It detects differences between the builds, not defects the two builds share.
Requirement evidence
| Requirement | Scenario | Oracle | Evidence | Status |
|---|---|---|---|---|
| TC1 | Every D compilation in the flake resolves to the fork's LDC | Store paths of the compilers used | checks.d-compiler-is-fork (nix/checks/d-compiler.nix) walks every package and example the flake builds and fails on any compiler without dlang.nix's ldc-vulkan among its layers; dub itself is compiled by the fork (nix/d-toolchain.nix). No build closure of the development shell, hue or ci holds a stock LDC or a second LLVM; the only other D compiler is the prebuilt LDC that bootstraps the fork's own build | verified |
| TC2 | LDC, clang and runtimes report the same LLVM revision | ldc2 --version, clang --version | ldc2 reports LLVM 24.0.0git, and so does clang: LDC is built against the development view of the llvm-spirv-vulkan build that clang-sparkles wraps, one LLVM build at 275dcf28 (upstream c7a69e6f and 31 fork commits) | verified |
| TC3 | Each behavior change in the forks carries a regression test | Review of the branches against upstream | Fork review: all 100 LDC commits and both Phobos commits, 31 of the LLVM fork's 32 (not 019489a268, UV8) and 7 of the DMD fork's 14 (the upstreaming plan lists the rest), each with its test or a reason it has none. Three LDC commits are tested by a later commit of the same series; the tests of 18 LDC and 6 DMD commits were run against a revert and failed | partial |
| TC4 | One glibc and one GCC runtime across toolchain and programs | nix why-depends on a second glibc | dlang.nix's nixpkgs follows Sparkles' (TC-M2): hue, terminal and ci on x86_64-linux hold glibc 2.44 and the GCC 16 runtime only, where hue held glibc 2.40 and 2.42 and the GCC 11, 14 and 15 runtimes before | verified |
| TC5 | The lock evaluates with every Nix version CI uses | Content hash of the fetched inputs | dlang.nix fetches the LLVM fork as a shallow Git checkout; CI run of #691 evaluated it with Nix 2.35. Missing: a check across Nix versions | partial |
| TC6–TC8 | C, C++ and Objective-C build with the wrapped clang; LDC built by it; no unwrapped driver on any PATH | command -v in each build environment | dlang.nix check toolchain-clang builds and runs C, C++20 and Objective-C programs with clang-sparkles; ldc-vulkan builds in clangStdenv-sparkles against LLVM's development view, which holds no compiler driver. Passes on x86_64-linux, aarch64-linux and aarch64-darwin at dlang.nix e0684b2; the macOS shell's CC is clang-sparkles | verified |
| TC9 | Tools share one LLVM library; only listed tools installed | Installed file list against the list below | The tools link the shared libLLVM and libclang-cpp. bin/ of llvm-spirv-vulkan at 275dcf28 holds exactly the installed tools and their aliases; the install is 1023 MiB, from 4.3 GiB before TC-M3 | verified |
| TC10–TC12 | Each runtime of the per-host list detects its planted defect | Planted-defect programs | dlang.nix check toolchain-runtimes at e0684b2. On x86_64-linux and aarch64-linux: AddressSanitizer (D and C), UndefinedBehaviorSanitizer, ThreadSanitizer and MemorySanitizer report their planted defects; the profile runtime writes a profile llvm-profdata merges; libFuzzer finds the crashing input; XRay writes its log. On aarch64-darwin the same check covers ASan (D and C), UBSan, profile and libFuzzer, and LDC's sanitizer lit tests cover TSan and LSan. Missing: XRay on aarch64-darwin, whose runtime is built but not exercised | partial |
| TC13 | No toolchain path in shipped programs' closures | nix why-depends | No shipped program's closure holds a toolchain path on x86_64-linux, aarch64-linux or aarch64-darwin (closure measurements); builds and examples assert the compiler's paths absent and remove none (TC15) | verified |
| TC14 | One glibc and one GCC runtime per shipped program | nix path-info -r on hue, terminal | hue and terminal on x86_64-linux: glibc 2.44 and the GCC 16 runtime only (TC4) | verified |
| TC15 | __FILE__ and debug paths mapped, no reference removal | strings on built programs | LDC fork 3d8b19d5 adds -fmacro-prefix-map and -ffile-prefix-map (__FILE__, __FILE_FULL_PATH__, the file names of runtime errors, final switch errors, __traits(getLocation) and debug information), with lit test codegen/file_prefix_map.d; bd9396c726 maps the file name -cov registers, and 8d5c3c8887 passes the maps to the C preprocessor for ImportC files and headers (tests/codegen/file_prefix_map_importc.c). ldc.reproducible (nix/d-toolchain.nix) maps every layer of the compiler; nix/packages/build-sparkles-app.nix and nix/packages/examples.nix assert the compiler's paths absent and remove none of them. Only Phobos' two service paths (the libcurl dlopen path and tzdata), which are not toolchain paths, are still removed | verified |
| TC16 | Sizes recorded with platform and revisions | nix path-info -S | Closure measurements: the shipped programs, the developer tools, ci, dub and both development shells on the three hosts, with each package's build time, at the final toolchain's revisions | verified |
| TC17 | Assertions on, or the release/checked pair with the checked variant absent from default closures | nix why-depends; build timing | One assertions-enabled LLVM (TCD8): llvm-spirv-vulkan sets LLVM_ENABLE_ASSERTIONS | verified |
| TC18–TC19 | LLVM's runtimes in place of the GCC runtime; exceptions across D and C++; no libgcc_s loaded | Interop program; readelf -d; LD_DEBUG=libs | dlang.nix ldc-vulkan-llvm-runtimes and check toolchain-llvm-runtimes on x86_64-linux and aarch64-linux: a D exception crosses a C++ frame and a C++ exception crosses a D frame (its scope (exit) runs); the trace resolves D frames; neither libgcc_s nor libstdc++ is needed or loaded. The profile links druntime and Phobos statically, so no shared druntime brings the GCC unwinder back | verified |
| TC20 | Static terminal and hue under the profile pass their suites; size and start-up recorded | Test suites; ldd; timing | terminal-static and hue-static (nix/packages/static-apps.nix) build under the profile with every D, C and C++ dependency static, their grammars and hue's minimal curl over OpenSSL included. legacyPackages.<system>.staticAppChecks.terminal-static and .hue-static assert that each NEEDED entry is a platform interface (glibc, the Vulkan loader, Wayland, XCB, xkbcommon, Xlib), that no GCC runtime is loaded, and, for hue, that every grammar it opens is a profile build; .terminal-static-tests (197 passed) and .hue-static-tests (314 passed) run the suites under Xvfb and lavapipe with no failure, on x86_64-linux and aarch64-linux, in CI's static-apps job Size and start-up are in the closure measurements. The window system's decoration plugin and hue's twoslash-extract helper, which runs as its own process, still use the default profile | verified |
| TC20a | Dynamic dependency hygiene in default profile: no unused test or optional subcommands in NEEDED | readelf -d; ldd | hue and WSI-based applications drop libxcb-xtest from direct NEEDED. hue avoids compile-time linking to libcurl, resolving it lazily via dlopen on demand and wrapping with curl under Nix, reducing hue's dynamic shared library closure from 54 libraries down to 24. harfbuzz disables GLib, Graphite2, ICU, FreeType, and PNG, dropping libglib-2.0, libpcre2-8, libfreetype.so.6, libpng16.so.16, libbrotlidec.so.1, and libbz2.so.1.0. | verified |
| TC21 | Toolchain builds and tests pass on each host | Nix builds on each host | dlang.nix e0684b2 builds and passes every TC22 check on x86_64-linux, aarch64-linux and aarch64-darwin | verified |
| TC22 | Each toolchain package exposes a Nix-run test | nix flake check | dlang.nix checks toolchain-clang, toolchain-runtimes, toolchain-ldc, toolchain-llvm-runtimes (Linux), and per production preview wasi-wasipN-runtime and wasi-wasipN-programs, all passing on the three hosts (per-host results) | verified |
| TC23 | Outputs cached for every host before the lock moves; CI builds the missing ones that fit a job | Binary-cache narinfo lookups; the build plan | CI's pin-cache job (ci check pin-cache, derivation_pin.checkToolchainCached) queries the cache for every host's toolchain-* outputs on every trigger, so a lock move stays red until they are cached; it passed in every CI run of #707, which moved the lock to dlang.nix 0993e9d, and of #708. The build half (TCD13): pin-plan runs toolchain-pin-check --plan (derivation_pin_build.planBuilds, derivation_pin_build.buildMatrix), whose tests cover the cost budget, an unrecorded cost, a closure that needs an over-budget output, and the per-system matrix; run against a cache that serves nothing, it planned the twelve derivations for their three systems and left the twelve sources to the mirror, and with the x86_64 LLVM given a cost over the budget it deferred that LLVM and the six outputs built on it and still built DMD. Missing: a pin-build run that turns a lock move green | partial |
| TC24 | The cache's pins are exactly the pin set, one revision each | The cache's pin list against pinTargets | nix/pin-targets.nix; ci/toolchain-pin.d pins the set and deletes other pins (PLAN.md, Cache pins). For dlang.nix bc3291c (2026-10-31) the tool pushed and pinned the x86_64-linux entries and found no pin outside the set; the aarch64 entries, which need a builder for their system, were pinned from mac-bsn. The cache's 34 pins equal the set at one revision each, and --check finds every output cached | verified |
| TCW1–TCW8 | Sysroots, drivers, components and runtimes per preview | wasm-tools validate; link tests | dlang.nix wasi-wasip1, wasi-wasip2, wasi-wasip3-experimental and one D runtime per preview; wasi-wasipN-programs checks the LTO inlining of TCW3 and the absence of legacy try; preview 2 programs are components that validate. A preview 1 reactor linked with LDC's -mexec-model=reactor exports _initialize and no _start and runs its module constructor before its export; a preview 2 reactor component, linked through wasm-component-ld, exports its function and no wasi:cli/run, and wasmtime calls it | verified |
| TCW9–TCW10 | Exceptions, module constructors and the GC work; runtime suites pass under wasmtime | druntime and Phobos unittests | wasi-wasipN-programs runs a D program that throws, runs a module constructor and allocates 100 000 elements, under wasmtime. wasi-wasipN-runtime runs druntime's and Phobos' release and debug runners in the sandbox upstream LDC's WASI CI gives them (a preopened root, tzdata, HOME, network): preview 1 passes 68 druntime and 123 Phobos modules, preview 2 68 and 124 (std.socket), with no known failure, on all three hosts | verified |
| TCW11 | Compile-time quadruple-precision results agree across hosts | Phobos std.math static assertions | dlang.nix builds LDC with LDC_REAL_APFLOAT: the frontend's real_t folds through LLVM's APFloat in the target's format (LDC 6f473423). Lit test codegen/real_target_format.d checks exact quadruple-precision constants for wasm32 and aarch64 and x87 ones for x86_64, and Phobos' WASI runners build on every host. sin, cos and tan of a wider real still fold at host precision: they have no D implementation for CTFE to run | verified |
| TCM1–TCM2 | Dub packages, built by Nix through dub, by each-commit builds and the aggregate | nix build .#text-wasm .#table-wasm; ci commits build-each | sparkles:text-wasm (libs/base/text-wasm/dub.sdl) and sparkles:table-wasm (libs/core-cli/table-wasm/dub.sdl), wasm configuration; nix/packages/wasm-modules.nix builds them, wired-wasm and dub-manifest-nix-wasm with buildSparklesAppWith on pkgsCross.wasm32-wasip1.stdenvNoCC, the WASI host platform (meta.platforms is lib.platforms.wasi); defaultEachCommitPackages (apps/ci/src/each_commit.d) has all four, and every commit of the series builds them on x86_64-linux. CI builds them on every TC21 host, in .#all-desktop on x86_64-linux and aarch64-darwin and in the aarch64-linux test leg, which also runs their tests; wasm-reproducibility (.github/workflows/ci.yml) fails unless all three hosts report the same hashes | verified |
| TCM3 | No module committed; the site builds both from its tree | git ls-files; yarn docs:build | ci docs stage-wasm (apps/ci/src/docs_wasm.d) copies .#docs-wasm into docs/public/, which ignores both modules; the site build serves them from there | verified |
| TCM4–TCM6 | Reactors on the shared interface; errors are values | Module exports; native unittests | Exports _initialize and TCM5's functions, no _start; sparkles.base.wasm defines the shared three; spk_table_wasm's tableRender tests (also run as @wasm tests) cover invalid JSON, invalid specifications and an undersized buffer | verified |
| TCM7 | One host for the site | Components' imports | docs/.vitepress/theme/wasi.ts on @bjorn3/browser_wasi_shim 0.4.2; both components load their modules through it | verified |
| TCM8 | Sizes recorded | wasm-opt -Oz output | Closure measurements: 397 KB and 948 KB; spk-wired.wasm 1552 KB | verified |
| TCM9 | Modules agree with native D | Fixed corpus, node and native | checks.wasm-modules (apps/ci/src/wasm_modules_check.d, docs-wasm.tests.agreement): 35 of 35 cases agree, loaded through wasi.ts. Each reactor's tests.emulator (checks.text-wasm-emulator, …) also instantiates it under the WASI platform's emulator, wasmtime, and calls spk_buf_cap | verified |
Installed tools
TC9's list, each with the step that uses it. A tool is added only with its user.
| Tool | Used by | Status |
|---|---|---|
clang, clang++, clang-cpp | clang-sparkles, the WASI drivers | installed |
lld (ld.lld, ld64.lld, wasm-ld) | Host and WebAssembly links | installed |
llvm-config | LDC's build | installed |
llvm-ar, llvm-ranlib, llvm-nm | Runtime archives for cross targets | installed |
llvm-objcopy, llvm-strip, llvm-readobj, llvm-size, llvm-strings, llvm-cxxfilt | Sparkles' builds (llvm-binutils-sparkles) and closure checks | installed |
llvm-profdata, llvm-cov | Profile data (TC12) | installed |
llvm-symbolizer | Sanitizer reports | installed |
llvm-xray | XRay logs (TC12) | installed |
llvm-objdump | Code inspection in fork and shader debugging | installed |
llvm-dwarfdump | Debug-information inspection (TC15) | installed |
dsymutil, llvm-lipo | macOS debug bundles and universal binaries | installed |
llc, opt, FileCheck, not, count | LDC's lit tests (TC22) | installed |
llvm-tblgen, clang-tblgen | Named by LLVM's exported CMake targets, which the runtime builds import | installed |
LLVM installs some tools under more than one name: llvm-addr2line (llvm-symbolizer), llvm-dlltool and llvm-lib (llvm-ar), llvm-bitcode-strip, llvm-install-name-tool and llvm-extract-bundle-entry (llvm-objcopy), llvm-otool (llvm-objdump), llvm-readelf (llvm-readobj), lld-link (lld), and clang-dxc (clang). These are symbolic links that cost nothing; LLVM 24 creates clang-dxc whatever CLANG_LINKS_TO_CREATE lists.
Runtimes per host
TC10's required set, from compiler-rt's build for each host. A runtime listed here has a required test.
| Runtime | x86_64-linux | aarch64-linux | aarch64-darwin | Status |
|---|---|---|---|---|
| builtins, profile, fuzzer | built and tested | built and tested | tested | verified |
| sanitizers | ASan, UBSan, TSan, MSan tested; LSan, HWASan built | ASan, UBSan, TSan, MSan tested; LSan, HWASan built | ASan, UBSan tested; TSan, LSan by LDC's lit tests | verified |
| XRay | built and tested | built and tested | built, not tested | partial |
Known failures
TCW10's list. A row names one test, the toolchain revision, and the preview.
None at LDC 0a4e8b9a and LLVM 275dcf28: every druntime and Phobos module passes on both production previews and all three hosts. The last one, druntime's core.math (quadruple-precision folding on x86_64 and macOS hosts), was removed by TCW11. A new one is recorded here with the test, the preview, the toolchain revision and its cause.
LDC test results
toolchain-ldc at dlang.nix e0684b2 (LDC 0a4e8b9a, LLVM 275dcf28). Lit runs the codegen, compilable, driver, instrument, linking, sanitizers and PGO directories (418 tests); ctest runs druntime's and Phobos' unittest runners, each module in release and debug, static and shared.
| Host | Lit passed | Lit expected failures | Lit unsupported | ctest passed | Phobos modules | druntime modules |
|---|---|---|---|---|---|---|
| x86_64-linux | 352 | 11 | 55 | 1900 of 1900 | 172 | 276 |
| aarch64-linux | 348 | 11 | 59 | 1900 of 1900 | 172 | 276 |
| aarch64-darwin | 353 | 12 | 53 | 1796 of 1796 | 172 | 250 |
The twelfth expected failure on aarch64-darwin is sanitizers/asan_fiber.d.
Preview 3
TCW2's record of the experimental sysroot, one row per toolchain revision.
| Toolchain revision | Sysroot build | Probe (exceptions, constructors, GC) | Notes |
|---|---|---|---|
LDC c8381c40, LLVM 24d1ae35 | passes | C and C++ throw and catch under wasmtime 49, as components; D does not link | druntime's core.thread.osthread relocates __stack_high as thread-local (R_WASM_MEMORY_ADDR_TLS_SLEB), and wasm-ld crashes |
LDC 0a4e8b9a, LLVM 275dcf28 | Built from source (dlang.nix e0684b2: compiler-rt builtins, wasi-libc, libc++ and their LTO builds; no LLVM rebuild) | Passes under wasmtime 50 with exceptions enabled: prints "ctor 42, gc 100000, caught boom 3"; a valid component exporting wasi:cli/[email protected] | Links since druntime 3948ae9c99 declares __stack_high __gshared; LLVM 275dcf28 makes wasm-ld report, not crash on, a TLS relocation against a synthetic symbol (covered by its lit test only). Threads are unavailable: the sysroot's wasi-libc has no cooperative threads, so pthread_create fails |
Closure measurements
Baseline before TC-M2, on x86_64-linux, with LDC PetarKirov/ldc@edc4ad31, LLVM PetarKirov/llvm-project@24d1ae35 and dlang.nix's nixpkgs of 2025-06-03. Sizes are nix path-info -S closure sizes unless noted.
| Package | Size | Note |
|---|---|---|
LLVM install (llvm-spirv-vulkan) | 4.3 GiB | Static libraries; bin/ 2.9 GB, each tool linking LLVM statically |
ldc-vulkan | 577 MiB | Includes GCC 14 (257 MB) through its default C compiler |
wasi-sdk | 505 MiB | Copies clang and lld (361 MB) |
clang-sparkles (prototype) | 4.6 GiB | Wraps the whole LLVM install |
hue | 1.1 GiB | Two GCC runtimes: GCC 14's libgcc_s and GCC 15's libstdc++ |
spk-text.wasm | 488 KB (file) | After wasm-opt -Oz; the committed copy is 2.5 MB |
spk-table.wasm | 967 KB (file) | After wasm-opt -Oz |
After TC-M2 and the closure fixes (nixpkgs 3ec63636, LLVM and LDC as above), with no toolchain path in any closure listed:
| Package | x86_64-linux | aarch64-darwin | Note |
|---|---|---|---|
hue | 560.5 MiB | 358.6 MiB | macOS was 1.5 GiB: LDC, dub and, through raylib, nixpkgs' clang and cctools |
terminal | 439.0 MiB | 237.2 MiB | |
ui-gallery | 330.0 MiB | 108.1 MiB |
The toolchain after the LLVM rebuild of TC-M3 and the WASI sysroots of TC-M5, on x86_64-linux (LDC b892093b, LLVM 24d1ae35, nixpkgs 3ec63636):
| Package | Own size | Closure | Note |
|---|---|---|---|
LLVM install (llvm-spirv-vulkan) | 1.5 GiB | 1.5 GiB | Shared libLLVM; static libraries kept for LDC; a build input only |
clang-sparkles-unwrapped (view) | 315.7 MiB | 362.6 MiB | clang, lld and the resource headers, relinked against the view's lib |
compiler-rt-sparkles | 35.3 MiB | 82.3 MiB | |
llvm-runtimes-sparkles | 19.6 MiB | 66.6 MiB | libunwind, libc++abi and libc++, shared and static (TC18) |
clang-sparkles | 64.2 KiB | 738.9 MiB | The wrapper; GCC 16's libstdc++ headers and start files |
ldc-vulkan | 298.1 MiB | 1.0 GiB | Holds compiler-rt's runtimes; links through clang-sparkles |
| WASI libraries, both previews | 92 MiB | — | wasi-libc, libc++ and their LTO builds, builtins |
ldc-sparkles-wasi-runtime-wasipN | 31 MiB | 31 MiB | Per preview, with LTO variants |
ldc-sparkles (ldc-vulkan, p1 and p2) | 242 KiB | 1.2 GiB | |
spk-text.wasm | 530 KB (file) | — | After wasm-opt -Oz; 488 KB before TC-M5. Not LTO-linked yet (TCM8) |
spk-table.wasm | 1029 KB (file) | — | After wasm-opt -Oz; 967 KB before TC-M5. Not LTO-linked yet (TCM8) |
spk-wired.wasm | 1552 KB (file) | — | After wasm-opt -Oz; LTO-linked (wasm-lto), docs/specs/wired/wasm WW12 |
spk-dub-manifest.wasm | 1213 KB (file) | — | The Nix module, not the site's; after wasm-opt -Oz, LTO-linked (WW3) |
The final toolchain, after TC-M3 to TC-M5 (Sparkles 8a5702974, dlang.nix 0993e9d, LDC 5d81911f, LLVM 019489a2, nixpkgs 31ecbaca). Closure sizes are nix path-info -S of each output; a development shell's is the joint closure of everything nix develop realises for it. No shipped program's closure holds a toolchain path on any host: each was searched for LDC, LLVM, clang, compiler-rt, dub, DMD and the GCC wrapper, and every hit traced with nix why-depends.
| Package | x86_64-linux | aarch64-linux | aarch64-darwin | Note |
|---|---|---|---|---|
hue | 556 MiB | 587 MiB | 358 MiB | |
hue-static | 510 MiB | 542 MiB | — | TC20 |
terminal | 434 MiB | 465 MiB | 237 MiB | |
terminal-vulkan | 344 MiB | 371 MiB | 137 MiB | |
terminal-static | 175 MiB | 194 MiB | — | TC20 |
ui-gallery | 325 MiB | 353 MiB | 108 MiB | |
shader-compile | 453 MiB | 461 MiB | 319 MiB | Runs ldc2-vulkan: holds LDC and dub by design. macOS was 2.54 GiB before the fork-built dub and libLTO |
twoslash-extract | 719 MiB | 594 MiB | 474 MiB | Its dub probe compiler: DMD and its GCC wrapper on x86_64, the unwrapped LDC elsewhere |
ci | 1.43 GiB | 1.29 GiB | 1.90 GiB | The test toolchain by design |
dub | 74 MiB | 84 MiB | 27 MiB | Compiled by the fork; holds no compiler |
| Development shell, default | 5.84 GiB | 5.67 GiB | 4.59 GiB | |
Development shell, ci | 4.61 GiB | 4.50 GiB | 4.13 GiB |
Build times are the wall clock of each package's own derivation, its inputs from the cache, one build at a time: x86_64-linux on a 16-core Zen 4 with 12 cores per build, aarch64-darwin on an M4 Max with 14, and aarch64-linux in an 8-vCPU virtual machine on that Mac (which includes copying to and from it). hue and terminal are their compile, not the build-information stamp (under 0.5 s), and twoslash-extract its compile, not its wrapper.
| Package | x86_64-linux | aarch64-linux | aarch64-darwin |
|---|---|---|---|
hue | 192 s | 128 s | 161 s |
hue-static | 192 s | 128 s | — |
terminal | 134 s | 89 s | 87 s |
terminal-vulkan | 150 s | 100 s | 94 s |
terminal-static | 150 s | 100 s | — |
ui-gallery | 89 s | 60 s | 60 s |
shader-compile | 22 s | 16 s | 19 s |
twoslash-extract | 121 s | 84 s | 83 s |
ci | 115 s | 80 s | 73 s |
dub | 101 s | 62 s | 73 s |
The toolchain itself, rebuilt from source for this revision: LLVM took 17 minutes on x86_64-linux, 10 on aarch64-darwin and 35 on aarch64-linux; clang and compiler-rt about a minute; LDC 100 to 114 seconds.
The modules as dub packages (TCM1), each linked step of TCM8 on x86_64-linux (LDC 5d81911f, LLVM 019489a2, binaryen 133). A dub build compiles every library a module depends on whole, where the hand-written build compiled only the modules it imported, so the plain link is larger and link-time optimization recovers the table's (the text module, which uses little of its libraries, ends 18 KB above its plain link). Sizes are of the .wasm file, in bytes:
| Step | spk-text.wasm | spk-table.wasm |
|---|---|---|
Linked, build type checked (with debug information) | 638 794 | 4 250 637 |
| The same, debug information stripped | 405 186 | 2 150 223 |
The same, wasm-opt -Oz | 378 828 | 1 507 356 |
-flto=full, the LTO druntime and Phobos, --gc-sections (wasm-lto) | 484 476 | 1 159 323 |
| The same, debug information stripped | 421 146 | 1 034 582 |
The same, wasm-opt -Oz: the shipped module (nix build .#…-wasm) | 396 781 | 947 932 |
Fork review
Forks as dlang.nix e0684b2 builds them: LDC sparkles/main 0a4e8b9a9f (tidied; pre-tidy history under tag archive/sparkles-main-2026-10-30), LLVM sparkles/main275dcf2887 on upstream c7a69e6fc6. "Red on revert": yes = the test was run with the change reverted and failed (pc1, 2026-10-30; for 7cb5c65c69, fuzz_basic.d failing on aarch64-linux before the fix); not run = the test was read, not run against a revert; n/a = no behaviour change. Upstreamable V = after the Vulkan dcompute backend (0f3f2daa31) lands in LDC; L:x = after LLVM fork commit x lands upstream.
LDC fork (origin/master..sparkles/main, tip 0a4e8b9a9f, 81 commits)
| Commit | Regression test | Red on revert | Upstreamable |
|---|---|---|---|
0f3f2daa31 dcompute: Add Vulkan compute backend support (squashed with its tests) | tests/codegen/vulkan_minimal_kernel.d, tests/codegen/vulkan_vector_add.d | not run | yes (GSoC); needs LLVM 88d6cd00e5 |
da17f6c69a Fix compatibility with LLVM 24 OptionalPassInfoMixin | n/a: no (build compat) | n/a | yes |
a7aff0a499 Frontend: size and align odd-width vectors the way LLVM does | none in commit; alignment later asserted by tests/compilable/vector_odd_width_size.d (6a1ecf48e6) | not run | yes |
7f191ac13f dcompute: let device code call ldc.intrinsics and ldc.dcompute helpers | tests/codegen/vulkan_intrinsics_calls.d (0f593e4b6f) | yes | V |
4f435c8501 dcompute: keep device-only template instances off the host, optimise Vulkan modules | tests/codegen/vulkan_host_device_templates.d, vulkan_optimization_levels.d (82d94e5ba4, c73f807bcb); -O0 inliner: vulkan_minimal_kernel.d | yes | V |
835d1ed252 dcompute: @fragment shader entry points for the Vulkan target | none in commit; fragment tests arrive in dd589ebe08 | not run | V |
028c1c2272 dcompute: Sampler2D.sample is @safe pure nothrow @nogc | tests/compilable/dcompute_sample_attributes.d (fb95498594) | yes | V |
13c3ac0eb1 dcompute: Sampler2D is the image handle; one shared sampler at binding 0 (b96329d10c folded in) | none in commit; later tests/codegen/vulkan_fragment_shared_interface.d (dd589ebe08) uses Sampler2D | not run | V |
e71a5d89a2 dcompute: define referenced template instances in device modules; handles stay in SSA form | tests/codegen/vulkan_host_device_templates.d (82d94e5ba4), vulkan_sampler_states.d | yes | V |
6a1ecf48e6 Frontend: an odd-width vector occupies what LLVM allocates for it | tests/compilable/vector_odd_width_size.d | not run | yes |
dd589ebe08 dcompute: shader interfaces the host can bind by name and type | tests/codegen/vulkan_fragment_shared_interface.d, tests/codegen/vulkan_fragment_uniform_types.d, tests/fail_compilation/dcompute_vulkan_fragment_interface.d | not run | V + L:7c6f682594 (MemberNames) |
40032a68ba dcompute: an interface name's type clash names both entry points | tests/fail_compilation/dcompute_vulkan_fragment_interface.d | not run | V |
7bfa7a2c6d dcompute: Vulkan modules ask for signed integers | tests/codegen/vulkan_fragment_uniform_types.d | not run | V + L:7c6f682594, cefc4ed81e |
3a814976bb dcompute: compare interface types unqualified, name them qualified | tests/codegen/vulkan_fragment_uniform_types.d, tests/fail_compilation/dcompute_vulkan_fragment_interface.d | not run | V |
eb88a0de20 dcompute: entry and interface names GLSL keeps; one marker per parameter | tests/fail_compilation/dcompute_vulkan_fragment_interface.d | not run | V |
faff28a7eb dcompute: apply all of spirv-cross's renaming rules to interface names | tests/fail_compilation/dcompute_vulkan_fragment_interface.d | not run | V |
5c7532590b dcompute: no assertion on a one-letter interface name; types before names | tests/fail_compilation/dcompute_vulkan_fragment_interface.d | not run | V |
2d38f70319 dcompute: Vulkan modules are SPIR-V 1.6 | tests/codegen/vulkan_spirv_version.d | not run | V |
5ad52ccb2c dcompute: Vulkan's Shared is workgroup memory, Constant UniformConstant | tests/codegen/vulkan_addrspaces.d | not run | V |
1089bef402 dcompute: recursion in Vulkan device code is an error | tests/fail_compilation/dcompute_vulkan_recursion.d | not run | V |
d959d8d4c2 dcompute: SamplerState, not Sampler; the minimal kernel inlines | tests/codegen/vulkan_minimal_kernel.d | not run | V |
ff3cf25aae dcompute: Vulkan global pointers are buffer device addresses | tests/codegen/vulkan_global_pointer_index.d | not run | V + L:3592f59866 |
a369402d7a dcompute: structure Vulkan device code before the SPIR-V backend | tests/codegen/vulkan_structured_control_flow.d | not run | V + L:340fd88de7 |
bf20db6877 dcompute: initialise Vulkan arrays without memset or 64-bit counters | tests/codegen/vulkan_local_array_index.d | not run | V |
3ab988ae8d dcompute: the vertex stage | tests/codegen/vulkan_vertex_stage.d, tests/fail_compilation/dcompute_vulkan_vertex_interface.d | not run | V + L:06866a48d3 (spirv.Name) |
13768b5bee dcompute: shader profiles and the manifest | tests/codegen/vulkan_shader_manifest.d, tests/codegen/vulkan_shader_profiles.d, tests/fail_compilation/dcompute_vulkan_vertex_profiles.d | not run | V |
b0f7f87ad4 dcompute: decide shader entry points and their interfaces in D | n/a: no (refactor; "diagnostics and generated code unchanged") | n/a | V |
f0c5c1a7b7 dcompute: uniform blocks, push constants and interface structs | tests/codegen/vulkan_resources_blocks.d, tests/codegen/vulkan_resources_loose.d, tests/fail_compilation/dcompute_vulkan_resources.d | not run | V + L:ba75a9aa72, 7578d189eb |
4f78f72d4d dcompute: name the 64-bit integer operations a shader reaches | tests/codegen/vulkan_report_int64.d | not run | V |
19b0e4d0e4 dcompute: one interface variable per stage, direction and name | tests/codegen/vulkan_interface_names_by_stage.d, tests/codegen/vulkan_resources_array_elements.d, tests/codegen/vulkan_resources_nested_block.d, tests/fail_compilation/dcompute_vulkan_resources.d | not run | V + L:ce3d2ec16f (TypeNames) |
790991cb96 dcompute: report conversions through 64-bit integers | tests/codegen/vulkan_report_int64.d | not run | V |
5a37906e49 dcompute: a compilation's capabilities, granted on the command line | tests/fail_compilation/dcompute_capabilities.d | not run | V |
107616549e dcompute: requirements through the call graph; fragment built-ins | tests/codegen/vulkan_fragment_operations.d, tests/fail_compilation/dcompute_requirements.d | not run | V |
f95b4397fb dcompute: samplers of their own (SamplerState parameters) | tests/codegen/vulkan_sampler_states.d | not run | V |
3d607a665f dcompute: a Vulkan target emits the SPIR-V its Vulkan version consumes | tests/codegen/vulkan_spirv_version.d, extended to vulkan-120/110/100 (3e4d55745f) | yes | V + L:4e59be36e8 |
387c291ebf Fix dlang/dmd#21823 - vector operations during CTFE | tests/dmd/runnable/test21823.d | not run | yes (dmd) |
675c520f4d dcompute: a @vectorType struct is its vector at a shader's interface | tests/codegen/vulkan_vector_type.d, tests/fail_compilation/dcompute_vulkan_vector_type.d | not run | V |
4e7e38373c Fix dlang/dmd#21823 - a vector's elements are its own in CTFE | tests/dmd/runnable/test21823.d | not run | yes (dmd) |
70ab6d6153 dcompute: copy and zero whole typed values on Vulkan | tests/codegen/vulkan_typed_copies.d | not run | V + L:9fcf796e56 |
290b691e45 dcompute: inline a Vulkan module's helpers before optimising it | tests/codegen/vulkan_struct_conditional.d | not run | V |
288a375ba5 tests: cover the predefined versions of each WASI triple | n/a: no (test-only) | n/a | yes |
e8193632ae Wasm EH: call the personality as LLVM 24 does | tests/codegen/wasm_eh_personality.d | not run | yes (with LLVM 24 support) |
c1490a15c7 Give interpolated expressions a precedence | tests/dmd/compilable/headerinterpolated.d | not run | yes (dmd) |
929e60e167 ImportC: a variable of tagged type may be declared again | tests/dmd/compilable/redeclare_tagged.c, tests/dmd/fail_compilation/redeclare_tagged.c | not run | yes (dmd) |
1e0ee44092 Fix compatibility with LLVM 24 (PassBuilder, PassPlugin, TableGen, cl) | n/a: no (build compat) | n/a | yes |
a23cd6c137 Wasm EH: select it with the module flag on LLVM 24 | tests/codegen/wasm_exception_model.d | not run | yes (with LLVM 24 support) |
f354aef01b druntime: provide _Unwind_GetWasmLPadContext for LLVM 24's Wasm EH | tests/codegen/wasm_lpad_context.d (1bcf7f50a4) | yes | yes (with LLVM 24 support) |
f1609f5143 druntime: scan TLS through __tls_get_addr on Bionic x86/x86_64 | tests/codegen/bionic_x86_tls_range.d (0a4e8b9a9f) | yes | yes (fixes #5311) |
1cd64184fe DIBuilder: give an enum of an enum its integral base type | tests/debuginfo/enum_of_enum.d | not run | yes |
d6fa02fee6 runtime: pass llvm.returnaddress its pointer type | tests/instrument/finstrument_functions.d | not run | yes |
10040e9a4c Add vendored LLVM 24 tools/utils | n/a: no (vendored tool sources) | n/a | yes |
170d3d0b18 tools: link LLVMHTTP into ldc-profdata when LLVM has it | n/a: no (build) | n/a | yes |
e329860504 ldc.profile: match LLVM 24's profile data record | covered by existing tests/PGO/profile_rt_calls.d (failure cited in message) | not run | yes (with LLVM 24 support) |
24b7022427 importc.h: define __float128 for clang too | covered by existing runtime/druntime/test/importc_compare (failure cited in message) | not run | yes |
7646322d77 driver: say -flto when linking WASI with LTO | tests/linking/wasi_lto_link_flag.d (abe32ad1c4) | yes | yes |
3d8b19d533 driver: add -fmacro-prefix-map and -ffile-prefix-map | tests/codegen/file_prefix_map.d | not run | yes |
f3080882e0 driver, druntime: link WASI reactors with -mexec-model=reactor | tests/driver/wasi_reactor_target.d | not run | yes |
4e5ead1887 driver: take an LTO archive's format from its bitcode | tests/linking/lto_archive_kind.d | not run | yes |
6c9ae46094 druntime: let DefaultTraceInfo call the _Unwind_Backtrace backtrace() | tests/codegen/unwind_backtrace_nogc.d (3e6235059b); at run time on Darwin exception_stack_trace_no_atos.d | yes | yes |
69b2aca9f5 druntime: record glibc stack traces with _Unwind_Backtrace | tests/linking/glibc_backtrace_unwinder.d (Linux) | not run | yes |
6b82ffcf7a driver: gather Darwin debug info into a .dSYM after linking | tests/linking/darwin_dsym.d (Darwin) | not run | yes |
3fc6a23bd5 druntime: survive a missing atos when tracing on Darwin | tests/codegen/exception_stack_trace_no_atos.d (Darwin) | not run | yes |
e41ee91cc1 importc.h: hide __SIZEOF_INT128__ on every platform | tests/compilable/importc_sizeof_int128.c | not run | yes |
6f473423a2 Fold compile-time real in the target's format on any host | tests/codegen/real_target_format.d | not run | yes |
9f51b0b2d5 druntime: read Darwin trace lines from the executable's .dSYM | tests/codegen/exception_stack_trace_no_atos.d (Darwin) | not run | yes |
1e8f386e3e tests: two compilable tests require the LLVM targets they use | n/a: no (test-only) | n/a | yes |
3948ae9c99 fix(druntime): declare WebAssembly __stack_high __gshared | tests/codegen/wasm_stack_high.d | not run | yes |
a19fec3f58 Map the file names of final switch errors and __traits(getLocation) | tests/codegen/file_prefix_map.d | not run | yes (with 3d8b19d533) |
ff472ff2c8 driver: link vcruntime for an explicit MS CRT with the internal toolchain | tests/linking/mscrtlib_cross.d | not run | yes |
400504c38b docs(druntime): say how a WASI component starts the D runtime | n/a: no (docs) | n/a | yes (with f3080882e0) |
860cbe231d phobos: load time zones under a TZDIR without a trailing slash | Phobos unittest in std/datetime/timezone.d at 36f227da93 (both TZDIR spellings) | not run | Phobos commit yes; .gitmodules URL switch no (fork-specific) |
7cb5c65c69 druntime: report an uncaught exception whatever the unwinder returns | re-enables rt_trap_exceptions, memoryerror_null_call on aarch64 in runtime/druntime/test/exceptions/Makefile; existing tests/sanitizers/fuzz_basic.d | yes | yes |
0f593e4b6f tests: device code calls ldc.intrinsics | (test-only: the test itself) | n/a | yes, with the commit it covers |
82d94e5ba4 tests: host and device modules compiled together share template instances | (test-only: the test itself) | n/a | yes, with the commit it covers |
c73f807bcb tests: a Vulkan module is optimised at the -O level asked for | (test-only: the test itself) | n/a | yes, with the commit it covers |
fb95498594 tests: sampling an image is @safe pure nothrow @nogc | (test-only: the test itself) | n/a | yes, with the commit it covers |
3e4d55745f tests: every Vulkan version emits the SPIR-V it consumes | (test-only: the test itself) | n/a | yes, with the commit it covers |
1bcf7f50a4 tests: druntime defines _Unwind_GetWasmLPadContext | (test-only: the test itself) | n/a | yes, with the commit it covers |
abe32ad1c4 tests: an LTO link for WASI passes -flto to the C driver | (test-only: the test itself) | n/a | yes, with the commit it covers |
3e6235059b tests: DefaultTraceInfo records traces with the unwinder | (test-only: the test itself) | n/a | yes, with the commit it covers |
0a4e8b9a9f tests: Bionic x86 scans TLS through __tls_get_addr | (test-only: the test itself) | n/a | yes, with the commit it covers |
LDC fork after the review (0a4e8b9a9f..sparkles/main, tip d04661844b, 19 commits)
dlang.nix c146e4d builds tip d04661844b, which the flake pins through its ldc-sparkles input. The first three commits fix reproducibility, WASI linking and an ASan hang. The next six complete the compiler's dependency output for the build graph:
- the manifest of the files a compile read, with its absent candidates (BGK2);
- the digest of the bytes the compile read from each of them (BGK2, BGK7);
- relocatable coverage and ImportC paths (BGA5).
The next names the spirv-opt a Vulkan compilation runs, so a build that names its tools runs none from PATH (shader build SHP11). The three after it make every build work with -ftime-trace: naming a template instance no longer expands an enum that is still being initialized (which failed sparkles:dub-manifest, sparkles:build-primitives and sparkles:event-horizon); without -ftime-trace-file the trace is named after the object file instead of failing every compilation; and a trace over 2 GiB (hue at granularity 0) is written whole. DMD 2.112, the shell's dmd, had the first and the last bugs too: dlang.nix 4ef5441 and 7bf1b17 patch it with the same fixes. With both compilers, every sub-package builds traced at granularity 0.
The last is the frontend change that the shell's DMD carries too (DMD fork): the caller of a lazy variadic function whose array of delegates is declared scope keeps the frame its arguments read on its stack instead of allocating a GC closure, so @nogc code can call it. A declared scope then covers the delegates, so a @safe callee may not let them escape, and the implicit scope of every typesafe variadic array still covers only the array.
The fix after them is LDC's own. A return inside an associative-array or opApply foreach body routes every return of an sret function through its __result variable, which aliases the hidden return value unless the function needs a GC closure; then __result lives in the closure, and LDC still skipped the copy into the return value, so the caller received uninitialised memory on every return path.
| Commit | Regression test | Red on revert | Upstreamable |
|---|---|---|---|
f62832cc17 WasmPointersSpill: spill and split in a deterministic order | tests/codegen/wasm_spill_pointers_deterministic.d (compiles Phobos' gammafunction five times, compares the objects) | not run | yes |
66e41cd8c9 phobos: no getprotobynumber() reference in std.socket on WASI | none: a link fix (wasi-libc declares the function and does not define it), exercised by any wasip2 program that links socket.o | not run | Phobos commit yes |
5d81911f60 fix(druntime): keep collections out of createLowLevelThread's pthread_create | tests/sanitizers/asan_gc_lowlevel_thread.d (ASan, alarm as the hang check) | yes | yes |
bd9396c726 Map the file name coverage registers a module under | tests/codegen/file_prefix_map.d, extended: -cov registers the remapped path | not run | yes (with 3d8b19d533) |
ca5abb238f List the headers an ImportC file includes in -makedeps | tests/driver/makedeps_importc.c (a header two includes deep) | not run | yes |
6ebdb35ffb Add -makedeps-absent=<file>: the paths the import searches missed | tests/driver/makedeps_absent.d: misses before an import, a string import and a __traits(compiles, { import … }) probe resolved, and no hit | not run | yes (a new option) |
10d6c6b987 List the config file lookup's misses in -makedeps-absent | tests/driver/makedeps_absent.d, extended: the ldc2.conf candidates searched before the one used | not run | yes, with 6ebdb35ffb |
8d5c3c8887 Pass the macro prefix maps to the C preprocessor | tests/codegen/file_prefix_map_importc.c: __FILE__ in an ImportC header is remapped | not run | yes (with 3d8b19d533) |
7bee3fbdeb Add -makedeps-digests=<file>: what the compilation read from each dependency | tests/driver/makedeps_digests.d (a module and a string import, each once) and tests/driver/makedeps_digests_importc.c (a header digested after the preprocessor ran) | ||
64e6453968 dcompute: name the spirv-opt an optimised compilation runs | tests/codegen/dcompute_spirv_opt_path.d (a recording spirv-opt: the named one runs, an empty name runs none, and only without the option is PATH searched) | ||
0b25dd4ad7 Print a template argument in use without expanding it | tests/dmd/compilable/timetrace_eponymous.d (an eponymous enum passed to anySatisfy inside its own initializer, traced at granularity 0) | yes | yes (DMD frontend) |
84afab43cc Name the time trace after the output when no file is given | tests/driver/ftime-trace-default-file.d (an object and a library's object, no --ftime-trace-file) | yes | yes |
4aa7f4a1a9 Write a frontend output file in as many write() calls as it takes | none: the failure needs a file over 2 GiB; hue built with -ftime-trace-granularity=0 fails before the fix and builds after | yes (by that build) | yes (DMD frontend) |
0c89869f30 Fix dlang/dmd#22885: a scope lazy variadic array needs no closure | tests/dmd/{runnable,compilable,fail_compilation}/test22885*.d (the DMD fork's tests); tests/codegen/lazy_variadic_scope.d (no _d_allocmemory in the caller, the array an alloca; a non-scope array still allocates); tests/sanitizers/asan_lazy_variadic.d (deep recursion and stored delegates under ASan's stack-use-after-return detection) | yes | yes (DMD frontend, UD8 of the upstreaming plan) |
c5b18c33b1 Backport dlang/dmd#24243: a closure's later captures still escape | upstream's tests/dmd/fail_compilation/issue24065.d; tests/dmd/runnable/issue24065b.d (sparkles' benchCase reduced: two closures over a local and the parameters, read after the registering frame is overwritten) | yes: issue24065b.d fails on 0c89869f30 and on DMD 2.112.1 | merged upstream (dlang/dmd#24243); UL21 |
873265a00b Run test22885 with -inline | (test-only: tests/dmd/runnable/test22885.d under the default permutations, as in the DMD fork) | n/a | with UD8 |
341bb78fb7 Fix sret return of a __result variable captured in a GC closure | tests/codegen/nrvo_result_closure.d (an associative-array and an opApply foreach returning a 64-byte struct from a function whose frame a stored delegate holds, with and without -O) | yes: the reduction fails on 873265a00b | yes (LDC codegen, UL23 of the upstreaming plan) |
b4d4cc7c65 Add -makedeps-probes=<file>: the -makedeps-absent searches, compactly | tests/driver/makedeps_probes.d (two -I and two -J roots, a package module, a lookup that fails twice and is listed once, the working directory; the probes expanded by expand.d equal the --makedeps-absent set) | yes: the option does not exist without it | yes (frontend and driver, UL24 of the upstreaming plan) |
d04661844b tests: join makedeps_probes' expanded paths as FileName.combine does | (test-only: tests/driver/inputs/makedeps_probes/expand.d joins a root and a candidate with \\ on Windows, as the compiler does) | n/a | with UL24 |
LDC's suites at 0c89869f30 and at its parent 4aa7f4a1a9, built the way dlang.nix 0107f30 builds ldc-vulkan (pc2-local, x86_64-linux, 2026-11-25), differ only by the change's own tests: ldc2-unittest 2 of 2 both; lit 379 against 377 passed of 481 and 479, with the same 33 failures (the nine on LIT_XFAIL, 23 Vulkan tests without spirv-dis on PATH, a plugin test whose C++ build finds no standard headers) and 67 unsupported; dmd-testsuite with the same four failed targets (compilable/ddocYear.d, runnable/importc-test1.sh, runnable/test20275.d, runnable/testmodule.d); druntime and Phobos 1900 of 1900 both.
At 873265a00b against 0c89869f30, built and run the same way: the same results, with the three runs of the backport's tests added and passing (dmd-testsuite 4673 against 4670 runs).
At 341bb78fb7 against 873265a00b (2026-11-26): the same failures, with the new codegen test added and passing (lit 380 against 379 passed of 482 and 481); every other suite as before.
At b4d4cc7c65 against 341bb78fb7 (2026-11-26): the same 48 lit failures in both builds (PGO, Vulkan, XRay, sanitizers, the plugin test: this host's environment) and the same 4 dmd-testsuite failures, with the new driver test added and passing. On sparkles' apps/diagram compile the probes file is 22,367 bytes in 656 lines against --makedeps-absent's 4,351,494 bytes in 84,476, and expands to exactly its 84,475 paths.
DMD fork (sparkles/main, tip e245294ceb)
The shell's dmd is dlang.nix's dmd-sparkles, built from PetarKirov/dmd sparkles/main: DMD master 999db40464 with twelve fixes, each also a single commit on a fix/* branch off DMD master, and two test-only commits. The upstreaming plan lists every fix; this table records the commits reviewed here.
| Commit | Regression test | Red on revert | Upstreamable |
|---|---|---|---|
0964acb1e0 Fix dlang/dmd#22885: a scope lazy variadic array needs no closure (fix/scope-lazy-variadic d8d29a0c3d) | compiler/test/runnable/test22885.d (evaluation order and count, mutation seen through the frame, temporaries' constructors and destructors, exceptions, deep recursion and large frames, GC.stats unchanged, CTFE; a non-scope array's stored delegates read the right values after the frame is gone), runnable/test22885b.d (-betterC), compilable/test22885.d (call shapes, mangling), fail_compilation/test22885.d (escapes from a @safe callee), test22885b.d (an override dropping scope), test22885c.d (a non-scope array still allocates) | yes: all but test22885c.d fail on e0b6e795ff | yes (dlang/dmd#22885) |
333c76284f Read a full expression's value before destroying its temporaries (fix/temporary-lvalue-dtor 311ee8e0f2) | compiler/test/runnable/dtor_temp_lvalue.d (a field, a member call, a static array field, a delegate literal and lazy arguments read before the temporary's destructor; a ref return still returns the variable), under the default permutations, -inline among them | yes: fails on 0964acb1e0 with and without -inline | yes (UD10, no issue yet) |
21663b0b95 Run test22885 with -inline | (test-only: runnable/test22885.d under the default permutations) | n/a | with UD8 |
d19ed4c2ec Test the TypeInfo functions of a struct instance elided here | compiler/test/dshell/typeinfo_elided_instance.d, the test b675a6d14d lacked (TC3): a library built without -unittest, an importer built with -unittest -allinst | yes: the link fails on an undefined Interval!U3.__xopEquals with b675a6d14d reverted | with UD5 (folded into fix/typeinfo-skipped-instance-members a0920c9b9b) |
43457b6d06 Clear a folded constant's bytes before evalu8 writes the result (fix/evalu8-stale-bytes b87bf3b50f) | compiler/test/compilable/fold_const_push.d (-vasm -inline: a constant ubyte argument passed on the stack is push 3, not a register loaded with the high half of an operand's address; the object differed between compilations, the sparkles-test-runner.o of CI run 45970839226) | yes: fails with only evalu8.d reverted before UD14 (c95151e502, tag sparkles/pin-c95151e502), mov RAX,059EF00000003h; at the tip UD14 hides the bytes, and the test is red on revert on fix/evalu8-stale-bytes, with the operands' addresses above 4 GiB as the position-independent compiler's heap puts them: a heap below 4 GiB leaves the bytes zero, and the test passes without the fix | yes (UD12, no issue yet) |
32e923a1ff Clear a comparison's operands from the constant it folds to (fix/gother-cmp-stale-bytes 8960287591) | compiler/test/compilable/fold_const_push_cmp.d with its own import (-vasm -O: a comparison every definition makes true, passed as a stack bool, is push 1) | yes: fails with only gother.d reverted before UD14, mov RAX,057A000000001h and different high bytes on each run; at the tip UD14 hides the bytes, and the test is red on revert on fix/gother-cmp-stale-bytes, with the same dependence on the heap's placement | yes (UD13, no issue yet) |
e245294ceb Read a constant stack argument at its own size (fix/push-const-arg-width 272e1623c8) | compiler/test/compilable/push_const_arg.d (-vasm -inline: cast(byte)-1 widened to int and the fold of ~0u, passed on the stack, are both push -1) | yes, through pushParams (movParams emitted no stale bytes; they only sent a constant to its register path): test fails with only cod1.d reverted at the tip, three runs of three, mov EAX,0FFFFFFFFh push RAX; with UD12 and UD13 reverted as well, mov RAX,060A8FFFFFFFFh, which the fix makes push -1 | yes (UD14, no issue yet) |
DMD's suites at 0964acb1e0 and e0b6e795ff (pc2-local, 2026-11-25), with Phobos at the master that dlang.nix pins: compiler/test/run.d ran 4064 and 4058 targets, with one failure in both (runnable/optimizer1.d, a syntax error in the test at that master); druntime's unittests passed the same 164 runs, with its profile, profilegc and both tests failing in both for a tool the shell lacks; Phobos passed the same 260 runs, with std.datetime.systime, std.datetime.timezone and std.net.curl failing in both (time zone data and network).
At d19ed4c2ec against 0964acb1e0, the same way: run.d ran 4066 targets, the two new tests among them passing, with the same single failure; druntime and Phobos the same as above.
At c95151e502 against d19ed4c2ec (this host, 2026-11-28, Phobos from a local master build): run.d ran the compilable, runnable and fail_compilation targets, both failing the same ones: runnable/optimizer1.d (the syntax error above), and compilable/json2.d, seven .sh tests and the gdb tests, for tools and paths this host lacks. The two new tests pass at c95151e502. Druntime and Phobos were not rerun. With address randomization on, the sparkles-test-runner.o that CI found nondeterministic is byte-identical over ten builds each in the checked and debug build types with the fork built from source, and over three each with dlang.nix's dmd-sparkles; the previous dmd-sparkles gave a different object on each build.
At 44211d0aeb (tag sparkles/pin-44211d0aeb) against c95151e502 (this host, 2026-11-28, Phobos at 79358d159), UD14 on c95151e502, whose tree differs from e245294ceb only in UD13's test import: run.d ran 1380 compilable, 732 runnable and 1904 fail_compilation targets, and 1379, 732 and 1904 at c95151e502, both failing the same 26: optimizer1.d, and .sh tests, cdcmp.d's objdump script and the gdb tests, for tools this host lacks. push_const_arg.d passes, and so does UD13's test with its own import, run alone from e245294ceb's test files. The -vasm listings of druntime (-m64, -m32, each with and without -O -inline -release, and Win64 with them) and of Phobos (-m64 and -m32 with them, without std.internal.digest.sha_SSSE3, whose listing crashes the disassembler in both) are identical between the two. With address randomization on, sparkles-test-runner.o is byte-identical over three builds each in the checked and debug build types with dlang.nix's dmd-sparkles at e245294ceb.
UD14's sign extension makes one kind of call larger: a uint constant with bit 31 set, passed on the stack twice, was mov EAX,imm32 and two push RAX (7 bytes), and is now two 5-byte immediate pushes. Passed once, it is 6 bytes against 5, and a folded narrow negative 6 against 2. The listings above have no instance of the repeated case.
LLVM fork (upstream/main..sparkles/main, tip 275dcf2887, 31 commits)
| Commit | Regression test | Red on revert | Upstreamable |
|---|---|---|---|
88d6cd00e5 [SPIRV] Support PhysicalStorageBuffer addressing and struct block wrapping for Vulkan | llvm/test/CodeGen/SPIRV/pointers/physical-storage-buffer-load-store.ll | not run | open upstream as llvm/llvm-project#216919 (GSoC) |
7c6f682594 [SPIRV] Signed integers on request; struct member names for shader interfaces | llvm/test/CodeGen/SPIRV/signed-integers.ll, signed-integers-zext.ll, member-names.ll | not run | yes (new module flag + metadata need agreement) |
391bbed1a8 [SPIRV] Build logical access chains with 32-bit literal indices | modifies llvm/test/CodeGen/SPIRV/pointers/structured-buffer-access.ll and 5 others | not run | yes |
3592f59866 [SPIRV] Buffer device addresses on request; index them with OpPtrAccessChain | llvm/test/CodeGen/SPIRV/pointers/physical-storage-buffer-byte-addressing.ll, physical-storage-buffer-ptr-access-chain.ll | not run | after #216919 (amends it) |
7ed8c4cae2 [SPIRV] Do not materialise a resource's name string | llvm/test/CodeGen/SPIRV/hlsl-resources/resource-name-no-int8.ll | not run | yes |
211a3ab07d [SPIRV] Add llvm.spv.terminate.invocation | llvm/test/CodeGen/SPIRV/hlsl-intrinsics/terminate-invocation.ll | not run | yes (new intrinsic) |
340fd88de7 [SPIRV] Give nested conditions that share an exit merge blocks of their own | llvm/test/CodeGen/SPIRV/structurizer/early-return-shared-exit.ll | not run | yes |
fd8b2594fd [SPIRV] Read the members of a buffer laid out with spirv.Layout | llvm/test/CodeGen/SPIRV/hlsl-resources/spirv.layout.getpointer.ll | not run | yes |
c8cd35917d [SPIRV] Lower a peeled cbuffer array to an array of its element | llvm/test/CodeGen/SPIRV/hlsl-resources/explicit-layout-blocks.ll | not run | yes |
a179f26f88 [SPIRV] Name a laid-out struct once | llvm/test/CodeGen/SPIRV/hlsl-resources/spirv.layout.type.ll | not run | yes |
929b6bb879 [SPIRV] Index logical access chains with the 32-bit index a frontend widened | llvm/test/CodeGen/SPIRV/logical-access-chain-narrow-index.ll | not run | yes |
9fcf796e56 [SPIRV] Lower a memset of a whole object to a store on logical SPIR-V | llvm/test/CodeGen/SPIRV/logical-memset-whole-object.ll | not run | yes |
cefc4ed81e [SPIRV] Compute unsigned division and conversion in an unsigned type | llvm/test/CodeGen/SPIRV/signed-integers-unsigned-ops.ll | not run | after 7c6f682594 |
d56b7d97a2 [SPIRV] Fold whole element steps into the index of a logical access chain | llvm/test/CodeGen/SPIRV/logical-access-chain-step-elements.ll | not run | yes |
06866a48d3 [SPIRV] Name a global variable by its spirv.Name metadata | llvm/test/CodeGen/SPIRV/global-variable-spirv-name.ll | not run | yes (new metadata needs agreement) |
b62852ae29 [SPIRV] List a shader entry point's interface from its call tree | llvm/test/CodeGen/SPIRV/entry-point-interface-per-entry.ll | not run | yes |
7578d189eb [SPIRV] Drop spirv.Padding members from an explicitly laid-out struct | llvm/test/CodeGen/SPIRV/hlsl-resources/explicit-layout-padding-members.ll | not run | yes |
ba75a9aa72 [SPIRV] Uniform blocks of one struct on request (spirv.struct-blocks) | llvm/test/CodeGen/SPIRV/hlsl-resources/struct-blocks.ll | not run | yes (new module flag needs agreement) |
1de563895a [SPIRV] Keep a push-constant global's name | modifies llvm/test/CodeGen/SPIRV/vk-pushconstant-access.ll | not run | yes |
70b51b6381 [SPIRV] Keep structs with named members distinct | llvm/test/CodeGen/SPIRV/struct-member-names-distinct.ll | not run | after 7c6f682594 |
d6e24f6100 [SPIRV] Read element 0 of a peeled array through one index | llvm/test/CodeGen/SPIRV/hlsl-resources/cbuffer-peeled-array-first-element.ll | not run | yes |
c9dd5124e6 [SPIRV] Keep a push-constant global's metadata | llvm/test/CodeGen/SPIRV/vk-pushconstant-spirv-name.ll | not run | after 06866a48d3 |
ce3d2ec16f [SPIRV] Name a struct by its spirv.TypeNames name | llvm/test/CodeGen/SPIRV/struct-type-names.ll | not run | yes (new metadata needs agreement) |
4e59be36e8 [SPIRV] Accept Vulkan 1.0 and 1.1 triples | llvm/test/CodeGen/SPIRV/vulkan1.1-spirv1.3.ll, llvm/unittests/TargetParser/TripleTest.cpp | not run | yes |
41ccb17558 [VNCoercion] Forward a vector element as an extractelement | modifies llvm/test/Transforms/GVN/pr63059.ll | not run | yes |
1d775759c7 [SelectionDAG] Fall back on sin and cos when an FSINCOS libcall is missing | llvm/test/CodeGen/X86/sincos-f128-no-libcall.ll | not run | yes |
2d833c467d libunwind: exclude __declspec from wasm build | hard to test: header-only build fix, exercised only by a wasm libunwind build | not run | yes |
e31c11bf0b [DebugInfo] Look through an enumeration based on an enumeration | llvm/test/DebugInfo/X86/enum-of-enum-constant.ll | not run | yes |
739a6c7943 [libc++] Include the IBM locale base API on z/OS only | hard to test: header build fix, exercised only by a wasm32-wasi libc++ build | not run | yes (wasi-sdk carries the same patch) |
54d4be7f9f [libc++] Provide the default rune table for WASI again | hard to test: header build fix, exercised only by a wasm32-wasi libc++ build | not run | yes |
275dcf2887 [lld][WebAssembly] Do not crash on a TLS relocation against a synthetic symbol | lld/test/wasm/tls-reloc-synthetic.s | not run | yes |
Phobos fork (PetarKirov/phobos, the submodule commit of 66e41cd8c9)
| Commit | Regression test | Red on revert | Upstreamable |
|---|---|---|---|
36f227da93 Fix std.datetime.timezone: names under a TZ dir without a trailing slash | new unittest in std/datetime/timezone.d (the TZ Database directory with and without a trailing slash gives the same, loadable names) | not run for the new unittest; the module's existing unittests failed under nixpkgs' TZDIR without the fix (toolchain-ldc excluded std.datetime.timezone until then) | yes (dlang/phobos) |
9d9ceb18b3 std.socket: no getprotobynumber() on WASI | none: a link fix (wasi-libc declares the function and does not define it), as LDC's 66e41cd8c9 records | not run | needs a fix/* branch (UP2) |