Release Notes
Unreleased
Concurrent parsing and source imports no longer raise ReentrancyError
when a translation builds its private interface view or copies a dependency
from a read-only product directory while another thread owns the runtime
heap. The fault could occur with or without the GIL when the ICurry cache
missed (#300). Private copying and cleanup reject public reentry while their
directory lock is held. Copying also waits for a complete loaded-object
record and verifies the copied products against it.
Concurrent parsing, importing, and type resolution now copy the loaded-module
registry before reading its entries. On free-threaded Python this prevents
RuntimeError: dictionary changed size during iteration when another
thread imports a module (#302).
Modules with overlapping rules now import even when they use no name from the Prelude. This also fixes modules that define their own choice operator and modules with an unimplemented external function (#298).
On a case-insensitive volume, a path that spells the installation in another case is now recognized as the installed library, so an import no longer writes its products into the installation (#230).
A compile error now shows the front end’s whole diagnostic below its first line (#285).
The product cache no longer hands a build an object compiled in another directory, which made a later build fail to find the module (#286).
The interpreter flag search selects the order of a search: fair, the
default and the order of the Fair Scheme, or dfs, depth-first with the left
alternative first. A search that ends without an error finds the same values
under both; their sequence can differ. Two things read the sequence: the list
that the I/O action values2list returns, and the values that arrive before
an error. Under dfs the left alternative
runs to its end, or until it waits on a free variable, before the next one
starts, so the queue holds the alternatives beside the current path and the
waiting ones. An alternative that never ends hides the values after it. Set
the flag with curry.reset(search='dfs'), with
SPRITE_INTERPRETER_FLAGS=search:dfs or with :set search dfs in the REPL,
or select the order of one evaluation with curry.eval(goal, search='dfs')
and curry.solve(goal, search='dfs').
Under the fair order with time rotation, a deep evaluation could spend each turn on the descent to the place where it had stopped and do almost no new work. A turn now gets a minimum of steps that grows with the depth of its stack, and a deadline of 100 quanta, before it yields to a waiting alternative (#290).
On Windows, Sprite now uses the clang-cl of the Visual Studio installation before a clang-cl on PATH. The standard library of Visual Studio 2026 accepts clang 22 or newer and rejected an older clang-cl found first on PATH (#292).
A Python primitive that calls curry.eval could keep its alternative
running long past its turn in a fair search with time rotation, because the
nested evaluation took the signal that ends a turn. The outer search now
sees that signal when the nested evaluation ends (#294).
0.9.0a3 (2026-11-10)
Windows x64 is new. Its wheels carry the compiled Curry library and the
interpreter. The LLVM JIT runs with the extra curry[jit]. The C++
compiler backend on Windows uses clang-cl of Visual Studio. Microsoft cl
is not supported.
Linux x86-64 and aarch64 and macOS 15 or newer on arm64 and x86-64
remain as in 0.9.0a2. Windows ARM64 comes later (#259).
The CPM package index of 2026-11-04 has 148 packages. Of these, 60 have a
test suite for the current base library: 46 pass, 13 are known
exceptions and 1 is open. The CPM tools are tested on Linux only.
The known exceptions fall into five classes:
Results depend on the schedule or search order:
allvalues,searchtree,searchtree-unsafe,global-variables.Sprite is stricter than PAKCS under a schedule-independent rule:
flatcurry-xmlrejects a choice that reaches an I/O step (#216).The package installs a module the runtime implements:
base,setfunctions.The package binds a PAKCS constraint solver:
clp-pakcs,clpbool.An external tool is absent, or the package is broken upstream under PAKCS too:
db-pakcs,dsdcurry,ui,wui.
contract-prover and property-prover pass with z3 4.8.12, the version
that the CI job installs; with z3 4.16.0 their proofs exceed the upstream
four-second solver limit, under PAKCS 3.10.0 too.
The open package is currypp: Contracts times out (#247, caused by #251),
and DefaultRules times out (#242).
Require closed initializers and one definition per key for
Data.Global.globalT; caller dependencies and conflicting initial values raise a namedEvaluationError(#266, owner decision of 2026-11-08).Record the CPM support rule of 2026-11-08 (#262). Sprite supports features whose result sets do not depend on the schedule or search order. Features whose meaning relies on PAKCS’s left-first search raise named errors. The CPM index records these packages as known exceptions, and the release notes list them:
allvalues,searchtree,searchtree-unsafeandglobal-variables. PAKCS is evidence; the dissertation’s semantics is the reference. The release goal is that every CPM package works or fails with a named and documented error.Add the page Compatibility with PAKCS and KiCS2 (#264). It explains what runs unchanged, what runs with a different result and what Sprite refuses, with the CPM package table. Errors for externals that Sprite refuses by design end with the page’s URL, https://andyjost.github.io/Sprite/Compatibility.html.
Ship 0.9.0a3 with #251 as a known defect (decision #269, 2026-11-08). The general fix comes after the release. A functional-pattern binding (
=:<=) can lose call-time choice for a shared application that reads the bound variable. The program can return more answers than call-time choice allows. For example:pick n = if n == 1 then 0 ? 1 else failed let r = pick x in (x =:<= 1) &> (r,r)
Sprite gives four pairs. Call-time choice and PAKCS 3.10.0 give only
(0,0)and(1,1). The same mechanism makes currypp’s contract check of a seven-element sort recompute exponentially (#247).Implement
Data.Globaltemporary globals with interpreter-owned storage, copied reads and initialization in the caller’s encapsulated search (one ground value is stored, no value fails, multiple values raise an error naming the key), and recordglobal-variablesas a known exception because it was written for PAKCS 2.x and PAKCS 3.10.0 has no implementation or reference semantics (#215).Keep pure functions that call
traceout of monadic choice rejection by stopping effect propagation atunsafePerformIO(#241).Support process fork at an idle Sprite boundary with fresh child workers and locks, preserve parent-owned compiler processes and temporary directories, and raise the public
ForkErrorin children forked while Sprite is busy; a callback fork on the large-stack worker attempts a bounded error report and exits the child.Answer compiler version probes using only the installed Curry library, ignoring the caller’s Curry path and CPM project sources.
Implement the CPM
Debug.Profileprocess information and collection primitives; collector on/off operations are supported as no-ops (#240).Make
Distribution.installDira Curry home at<root>/curry(#214): move library sources and products tocurry/liband the private tool launchers tocurry/bin; ship FlatCurry and AbstractCurry library analyses for stock CPM readers. Native libraries remain in<root>/lib.Cap image translation, attachment and ICurry conversion retries so an input that keeps changing reports a compilation error instead of retrying forever (#226).
Raise
curry.ReentrancyErrorfor host reentry under Sprite locks or the evaluation-worker handoff, preserving primitive callback evaluation; defer front-end and ICurry-cache diagnostics until locks release, retain ownership through thread creation, and refuse worker stack sizes the Windows thread API cannot represent before trying smaller reservations.Add a weekly CPM index workflow with pinned package expectations, regression checks, and downloadable package results and logs. Fix CurryCheck driver loading, transitive local imports and saved application options, accept an empty runtime argument list, read piped commands after startup settings, support
:addimports, and implement the CPM clock and UTC conversion used for random seeds, binary files, and command pipes, including a bidirectional command handle.Preserve module path order, saved dependency provenance and ICurry import validation; rebuild stale installed and read-only user products privately, retain local CPM sources without packages, and validate private rebuild provenance under the loaded-module boundary. Saved objects retain their signed bytes with dependency side records; direct rewrites, external translation keep their resolution scope. Relative paths in front-end options are no longer supported because the front end runs in an empty directory to preserve module path order; use absolute paths or preprocessors on PATH. The front end reports relative paths it cannot find.
Stop selecting Microsoft
clfrom PATH on Windows; it is not supported. Use clang-cl (the Visual Studio component “C++ Clang tools for Windows”).Give each interpreter its own runtime module registry; share static runtime builtin tables and loaded compiled objects across resets (#184). Interpreted reserved importers keep their interpreter’s dependencies; compiled slots, C++ hot jobs and first-use compilation preserve the selected registry. Two constructor classes compare by identity. The work of the LLVM hot tier belongs to the interpreter that made it: a reset or a reload drops that interpreter’s queued and posted work, a reload rearms the functions that stay loaded, a step is installed only for the attachment it was compiled for, and
curry.reloadrefuses a module of another interpreter.Validate reusable products by content and publish complete generations: protect cache and JIT mappings, ICurry receipts, image inputs, exported files, precompiled headers and tiered adoption; require publication locks.
Move symbol construction and image runtime snapshots before cache/product locking; defer JIT compilation, resolution, cache indexing and publication logs, the product-lock helper’s own diagnostics, and C++ object compiler, stamp and product-cache logs until their enclosing locks release. Collect abandoned results and streams without heap waits, save counts in the native value pull, and apply posted LLVM steps under the heap gate.
Still open: property bindings do not apply their heap guards (#195); the
icurry_is_jitrace with native step/aux writers (#196).Serve loaded modules from memory until reload or reset, without product snapshots; product-file readers verify the digests recorded at load.
Library modules follow Curry path order; only runtime builtin module names are reserved, allowing CurryCheck’s EasyCheck dependency to load.
Private
curry,cleancurryandsprite-frontendlaunchers provide the installation paths used by CurryCheck. A test-only CPM index overlay permits compatibility testing.The
spritecommand starts the REPL and accepts CPM command lines, version probes, program arguments and:save. The REPL module is nowcurry.tools.repl.Implement
Control.Search.Unsafe.rewriteAllandrewriteSomethrough Sprite’s weak native capsules. Outside-variable demands propagate to the enclosing search, unlike PAKCS’s rejection of outside bindings.rewriteSomeconsumes only the first answer.Implement the two
ReadShowTermprimitives of CPMread-legacyfor PAKCS prefix serialization and reading FlatCurry data files.Fix a deadlock between LLVM hot compilation and reset or cached function resolution by deferring native root and state destruction when the heap is busy (#182).
Implement
System.IOhandles and current Python standard streams, enablingDebug.Trace.traceIO, plus primitives for the CPM packagesdirectoryandprocess.exitWithraises catchableSystemExitin the API.Cache the C-stack floor once per thread, probing again after a fork. In local measurements the direct evaluation entry falls from 172 to 1.2 microseconds with compiled code and from 914 to 1.4 microseconds with LLVM.
Mark dictionary types once and test a flag during head normalization. With the stack-floor cache also enabled, compiled Fib uses about 4% less CPU time (0.0800 to 0.0771 seconds).
Store union-find parents sparsely, omit repeated pairs from its collector log and preserve spare log capacity at a fork. Mergesort uses 0.31 CPU seconds per evaluation instead of 0.80 (2.6 times faster); large copies over 12 evaluations fall from 70.1 GB to 0.46 GB. Steps, forks and value order are unchanged.
Resolve class defaults at known instance dictionaries during compilation. Fib30 with
<drops from 65,285,178 to 18,529,949 steps and from 1.0524 to 0.3238 CPU seconds (3.3 times faster, medians of five runs).Recover Int and Char literal cases as one dispatch on the unboxed value, preserving the original equality graph for nonliteral scrutinees. Literal-case Fib30 drops from 16,473,032 to 6,731,342 steps and from 0.2512 to 0.1226 CPU seconds (2.0 times faster, medians of five runs).
Reuse typed Python terms, copy their graphs for evaluation, and format goal text on demand. Warm CPU measurements reduce a small interpreted call from 402 to about 270 microseconds and lesson 21’s overload call from 18.3 to about 4.3 milliseconds. Nested
Justconstruction is linear (#181): a depth-128 chain falls from 2.93 seconds to about 9 milliseconds.Convert ground results in the C++ bindings, preserving Python value types and representations. Measured CPU conversion time falls from 7.39 ms to 11.4 us for 1000 Ints and from 2.18 ms to 2.11 us for a 300-character String; lesson 24’s complete query falls from 978 us to 635 us. Cached expression-symbol tables also remove converter-construction growth after repeated parses.
Add the qualified-name primitive registry and the primitives of
Curry.Compiler.Distribution,System.CPUTime,System.EnvironmentandData.IORef, including registered Python implementations for process arguments, the program name and hostname.Implement the nine
System.IO.Unsafeprimitives, including configuration-sensitive variable observations, arbitrary term read/show, andspawnConstraintwith the suspension rule of&.Every module of the Curry library ships compiled. An external function without a primitive in the runtime raises
not implementedat its call; before, eight modules failed at import.The front end uses
C.UTF-8when the selected locale is not UTF-8, so non-ASCII Curry source also compiles under C and POSIX locales.Local CPM projects add their source directories and installed packages to
curry.pathafterCURRYPATHand before the installed library;SPRITE_CPM_PATH=0disables discovery.Windows: Sprite discovers Visual Studio with
vswhereand captures the developer environment ofvcvars64.batfor clang-cl. AOT builds, the C++ JIT and saved-program launchers no longer need a developer prompt.curry.solvereports every held variable used in the goal, including unnamed variables under display names such as_a.The JIT compiles interpreted functions through LLVM (
llvmlite, the new extra"curry[jit]") or the C++ compiler.jitselectsoff,eagerorhot(default);jit_backendselectsauto,llvmorcxx. Hot swaps run at a scheduler safepoint. Without a backend the process says so once in its log, at INFO. Every wheel carries the bitcode of the JIT helpers, which the distributions gate requires.interpret:tieredis retired;interpret:newis the default on every platform and current ahead-of-time objects still load. A background compile of the C++ backend whose thread cannot start (a limit on the tasks of the user) is reported as a failed compile; the module stays interpreted and the evaluation goes on.The cached code of a function links at its first call, from one native object per function in the envelope; a start reads the index alone. CI fills the library’s cache in one job (
SPRITE_STAGE_JIT_CACHE=0skips the fill of a stage).The LLVM cache uses smaller module-local symbols and per-function zlib payloads (
SPRTJIT5). Cached calls can resolve between hot optimizer batches; pinned cache files close after resolution or image detach.LLVM JIT batches persist as relocatable
.jitobjects beside module images, resolve on first use on a warm start and useSPRITE_JIT_CACHEfor read-only products. Local stages fill the library cache; wheels omit machine-specific objects.Windows: the LLVM JIT persists per-function native objects and links them on first use in later runs. Readers pin the old cache generation while another process publishes its replacement.
Module images replace module JSON products. Translation and C++ emission read ICurry text; read-only directories and text modules use private images.
sprite-make --imageis the default target; the JSON options are removed.Image preparation constructs imported optimizer declarations on demand. In a local three-run comparison, warm compile CPU medians fell from 0.302 to 0.282 s for Fib, 0.357 to 0.340 s for QueensSet, and 0.307 to 0.264 s for an expression (about 5 to 14 percent); image bodies and optimization remain enabled.
Windows: the runtime and the bindings build with clang-cl, and so do the generated modules, as DLLs, ahead of time and in the hot and eager C++ tiers;
interpretdefaults tonewon every platform. A load maps the canonical DLL, so a read-only installation imports compiled modules; a publication retires a mapped DLL under a generation name, and the stage and the wheel gates reject such files. A saved program (curry.save(main=...)) is a small native launcher that runs the program with Python. It uses the saving interpreter, falls back topythonon PATH if needed and has no runtime DLL dependency. Wheels support Windows x64 and CPython 3.11 to 3.15, including free-threaded 3.14t, and ship the compiled library and the C and C++ runtime libraries of Visual Studio. The front end’s Windows wheel,curry-frontend3.1.0.post2, is on PyPI since 2026-10-31.A user module named like any module of the installed library is refused at import with a message that names both files (#168). A lifted non-linear functional pattern no longer answers where PAKCS and KiCS2 give no value (#169).
Set functions keep the call-time sharing of a caller whose choice escapes a capsule: the shortcut that took the side of such a choice through a private copy of the spine is gone and the entry of a capsule no longer copies the state behind a set guard; the two-block search of the tutorial’s betterblocks solver finishes with its six solutions (#172).
Non-linear functional patterns: the non-strict unification linearizes the repeated variables of a pattern and checks them by strict equality after the match, as PAKCS does, so
isJust justZeroof the PAKCS test suite answers where it did not finish before (#165).A module is translated once into a binary image that the C++ runtime reads directly, with the optimizer passes run at translation time: the interpreted start of the Prelude falls from 0.73 s to 0.04 s. The images of the library are products of the stage and ship in the wheels; an installation whose directory is read-only uses a private image; compiled products carry receipts of the translation that made them (#175).
The second backend of the JIT is named for what it is: the value
cxxofjit_backend(gxxbefore) compiles the generated C++ of a module with the C++ compiler of the installation, g++ or clang++ and the docs say “the C++ compiler” where any compiler serves.Background compiles no longer fail in a process that interpreted the Prelude: library modules run from the installation’s objects.
sprite-exec --statswaits for background C++ compiles, so a compile warning precedes its line.A value binding of a big integer keeps its payload across a collection (#176); a compiled module reloaded after a reset runs its compiled steps (#177); a failed system-library check at import raises
ImportErrorwith the reason instead of exiting silently (#174).SPRITE_LOG_FILEandSPRITE_LOG_LEVELconfigure a handler on the loggercurry, which keeps itsNullHandlerwithout them; at INFO the package logs its own decisions: how each module runs and why, the background compiles, the caches, the front end’s runs.The README and the documentation state the ways Curry code runs: compiled ahead of time, embedded, interpreted or compiled just in time.
0.9.0a2 (2026-10-27)
The distribution is named
curryon PyPI:pip install --pre curry(the flag while Sprite is in alpha). The namecurrylangof the first alpha is retired; the import name wascurryfrom the start.Wheels for macOS 15 or newer on arm64 and x86-64, beside the Linux wheels; the Curry front end 3.1.0 ships for both as
curry-frontend3.1.0.post1.The current tools are the default: the Curry front end 3.1.0 (the package
curry-frontend3.1.0) with thebaselibrary 3.4.0 of PAKCS 3.10.0. The pair of front end 2.0.0 and PAKCS 3.4.1 remains accepted.The source distribution builds without a Curry front end: the pinned products of the library ship with it.
Unbounded integers: an
Intthat overflows the machine word promotes to a big integer.The Curry preprocessor
curryppis an optional tool found on PATH.The background compile of the C++ compiler backend writes its products beside a source only when the compile is done, so a removed directory never holds half-written files (#173). The runtime compiles without strict aliasing (#170).
Set functions: #133, #134, #139 and #171 fixed.
A benchmark harness with a community suite of Curry programs.
The logo: a burst of dust beside the name.
0.9.0a1 (2026-10-24)
The first public alpha, as currylang: Linux wheels for x86-64 and
aarch64 (glibc 2.28 or newer) and CPython 3.11 to 3.15, the free-threaded
3.14 included; the C++ runtime alone, the Python backend having been
removed; the Curry front end 2.0.0 as the separate package
curry-frontend.