Skip to content

Release v0.2.0 #1037

Backlog
Backlog

Description

@seabbs-bot

Draft release notes for v0.2.0, the first release since v0.1.0 (1 October).
Project.toml already says 0.2.0, so no version bump is needed.

Register after these are merged:

A registration for v0.2.0 is already open as JuliaRegistries/General#178901, at e1f15189, which predates the merges above.
It was triggered by mistake by an earlier version of this text.
AutoMerge holds it because it has no release notes.
When the list above is done, register again from a comment on this issue with the notes below, so that pull request moves to the right commit.

Do not merge #1051, the automatic bump to 0.2.1. v0.2.0 is not registered yet. Close it once v0.2.0 is registered.

Check that the DOCUMENTER_KEY secret is set first, or the tag publishes no versioned docs.
The wider release gates are in #921.

After registration, once the stable docs are published, merge EpiAware/epiaware.github.io#34, the updated composable recurrences page. Its links point at /stable/, which 404s until then.

Breaking changes

  • The minimum Julia version is now 1.12. Julia 1.13 is also supported.
  • Add and Clamp are removed. Use Transform(+, b) and Transform(clamp, lo, hi). Transform(*, γ) scales.
  • seeded is removed. Pass include_history = true to a call to get the history followed by the run.
  • with_state is removed. Pass record = Resume() to a call to get (; y, state).
  • record takes marker instances, Pressure(), Trace() and Resume(), alone or in a tuple. A call with record returns a flat named tuple of y and one field per marker.
  • The pure step (with init and an optional step_pullback) is now the one way to write a modifier. Modifier methods of forward on the Step and Init roles no longer apply.
  • forward is renamed forward!. Couplings and modifiers that act on the whole step still extend forward! and pullback!, now for the Step, Init, Pressure and Trace roles.
  • Run, ispointwise and param_eltype are no longer public.
  • Depletion takes its starting pools through pools =, for example pools = (S = 100.0,). This replaces pool0.
  • The heterogeneity exponent of a depletion is now the argument α of its form, for example Hazard(α). This replaces the heterogeneity keyword of Depletion.
  • A weight on lag 1 of a Convolution is now written with lags = 1:length(g). Prepending a zero is no longer needed.

New features

  • Operators now run under ForwardDiff, ReverseDiff (tape and compiled), Mooncake, Enzyme and Reactant. ReverseDiff is a supported backend.
  • Mooncake and Enzyme rules for the operators load with the Mooncake and Enzyme extensions. NoAdjoint turns the rule off for a call.
  • test_adjoint checks a rule against plain AD. It loads with ADTypes, Enzyme and EnzymeTestUtils.
  • gradient_routes times the gradient of a recurrence by route. It loads with ADTypes and DifferentiationInterface.
  • Executors set where the loops of a call run. Serial() is the default, Threaded() splits loops across threads and Parallel(backend) runs them as kernels. EXECUTOR sets one by scope.
  • Calls run on GPU arrays through the KernelAbstractions and GPUArrays extensions, forward and in reverse, for the built-in operators, couplings and modifiers.
  • Reactant compiles calls on traced arrays, including computed kernels and traces. The Reactant and KernelAbstractions extensions run traced loops over strata as one kernel.
  • convert_floats(T, x) converts every float of a model to T, such as Float32. It loads with Functors.
  • Convolution takes method = FFTMethod() to compute the lag sum by fast Fourier transform. The default is Direct(), so loading FFTW never changes results. The FFT method loads with FFTW.
  • Recurrence(; modifiers) builds a recurrence with no kernel, which carries the previous value forward. A Depletion with named pools needs no history.
  • Convolution takes a tuple of vectors, one input series per stratum.
  • c' is the transpose of a Convolution, a sum that reads the series forward from each time.
  • reverse(r) runs a recurrence backwards in time.
  • window_sums sums a series over consecutive windows given by their end times.
  • pressure(r, y) computes the pressure of each step from given outputs, with a rule for gradients.
  • growth(r) returns the growth rate and the profile of the exponential history that a recurrence continues. growth_gain(r, rate) returns the gain that gives a given rate.
  • Recurrence and Convolution take parameters as the gain and add, such as Derived, Recent or Gather.
  • Derived computes a parameter from others, Recent reads one from the recurrence's own recent outputs, Gather reads one at another row so strata can share values, and AbstractParameter is the supertype for your own.
  • A time-varying coefficient can be given as start => value change points.
  • Depletion takes several pools, flows between them (Flow, Share, Split) and Truncate, a form that fills a pool.
  • Allocate rescales groups of strata to totals given from outside. Transform applies a pointwise map and takes its closed-form derivative when given one.
  • A coupling or a whole-step modifier declared linear with islinear runs as its matrix.
  • Batched(K) applies one coupling within each batch of strata, for a history with a batch axis.
  • select(state, strata) reorders, repeats or drops the strata of a state or a parameter before the next call.
  • record = Trace() returns what each modifier recorded. A modifier can name its trace rows, and Allocate traces its imports on request.
  • Survival, Increments and Normalised build computed kernels from coefficients. kernel_weights returns the weights a call reads, and delay_masses the masses of a delay distribution on whole lags.
  • State, Secondary and Gather are public.
  • Modifiers can declare that their state never changes with isstateless, and a modifier written as a pure step runs on every backend and executor.

Fixes

  • A call with a bare matrix reads it as strata by time in Depletion, Flow and Allocate.
  • A NaN value passes the value checks of a parameter, so a sampler's proposal gives a NaN output and not an error.
  • A modifier given without a tuple is accepted by Recurrence.
  • Plain automatic differentiation is no longer used silently where the rule does not apply. The call names what it does not take, such as FFTMethod() on a device.

Documentation

  • The documentation is rewritten with an API overview that defines each concept once, an explanation section and a performance page.
  • Tutorials are grouped by theme under Getting started, including a nowcasting tutorial, a conjugate estimate of the reproduction number, vaccination, clinical outcomes and occupancy.

This was opened by a bot. Please ping @seabbs for any questions.

Activity

  1. JuliaRegistrator commented on Dec 3, 2026

    @JuliaRegistrator

    Registration pull request created: JuliaRegistries/General/178901

    Recommendation: add release notes

    Release notes help your users know what has changed in the new version. For breaking releases in particular, it's recommended to document what breaking changes were made (or point to where changes can be found, such as a changelog).

    To add release notes, just add markdown formatted text underneath the comment after the text "Release notes:" and it will be added to the registry PR, and if TagBot is installed it will also be added to the release that TagBot creates. i.e.

    @JuliaRegistrator register
    
    Release notes:
    
    ## Breaking changes
    
    - blah
    

    To add release notes to this registration, just re-invoke JuliaRegistrator and the PR will be updated.

    Tagging

    After the above pull request is merged, it is recommended that a tag is created on this repository for the registered package version.

    This will be done automatically if the Julia TagBot GitHub Action is installed, or can be done manually through the github interface, or via:

    git tag -a v0.2.0 -m "<description of version>" e1f15189d057fdb1521136e87ce0682589401f98
    git push origin v0.2.0
    
  2. added
    bot
    on Dec 5, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bot

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions