Repository navigation
Make the BDF cache-union aliases const - #4646
Merged
ChrisRackauckas merged 1 commit intoSep 28, 2026
Merged
Conversation
QNDF_CACHES, FBDF_CACHES, and BDF_CACHES_WITH_INTERPOLATIONS are used only in method signatures and are never reassigned; NORDSIECK_CACHES later in the same file is already declared const. Declaring them const lets the compiler treat the unions as constant bindings and silences the only non-const globals in OrdinaryDiffEqBDF. Same pattern as SciML#4608. Verified: isconst(OrdinaryDiffEqBDF, name) reports true for all three (false before); FBDF solve and dense interpolation are unaffected. Co-Authored-By: Chris Rackauckas <[email protected]> Co-Authored-By: Devin <[email protected]> Agent-Harness: devin 3000.11.1 Agent-Model: swe-2-high Agent-Session: local Devin session in /home/crackauc/sandbox/goals/performance/jobs/pr-bdf/repo (log /home/crackauc/sandbox/goals/performance/jobs/pr-bdf/log.txt)
ChrisRackauckas
marked this pull request as ready for review
September 28, 2026 11:57
ChrisRackauckas
referenced
this pull request
Sep 29, 2026
* Bump DiffEqBase to 7.21.3 Co-Authored-By: Chris Rackauckas <[email protected]> Co-Authored-By: Devin <158243242+devin-ai-integration[bot]@users.noreply.github.com> Agent-Harness: Devin CLI 3000.11.3 (Mac) Agent-Model: Fusion (claude-opus-5-5 medium + swe-2 medium) Agent-Session: local transcript ~/.local/share/devin/cli/transcripts/helpful-exception.json * Bump OrdinaryDiffEqBDF to 2.4.12 Co-Authored-By: Chris Rackauckas <[email protected]> Co-Authored-By: Devin <158243242+devin-ai-integration[bot]@users.noreply.github.com> Agent-Harness: Devin CLI 3000.11.3 (Mac) Agent-Model: Fusion (claude-opus-5-5 medium + swe-2 medium) Agent-Session: local transcript ~/.local/share/devin/cli/transcripts/helpful-exception.json * Bump OrdinaryDiffEqSDIRK to 2.9.7 Co-Authored-By: Chris Rackauckas <[email protected]> Co-Authored-By: Devin <158243242+devin-ai-integration[bot]@users.noreply.github.com> Agent-Harness: Devin CLI 3000.11.3 (Mac) Agent-Model: Fusion (claude-opus-5-5 medium + swe-2 medium) Agent-Session: local transcript ~/.local/share/devin/cli/transcripts/helpful-exception.json * Bump OrdinaryDiffEqRosenbrock to 2.7.5 Co-Authored-By: Chris Rackauckas <[email protected]> Co-Authored-By: Devin <158243242+devin-ai-integration[bot]@users.noreply.github.com> Agent-Harness: Devin CLI 3000.11.3 (Mac) Agent-Model: Fusion (claude-opus-5-5 medium + swe-2 medium) Agent-Session: local transcript ~/.local/share/devin/cli/transcripts/helpful-exception.json * Bump OrdinaryDiffEqLowOrderRK to 2.2.6 Co-Authored-By: Chris Rackauckas <[email protected]> Co-Authored-By: Devin <158243242+devin-ai-integration[bot]@users.noreply.github.com> Agent-Harness: Devin CLI 3000.11.3 (Mac) Agent-Model: Fusion (claude-opus-5-5 medium + swe-2 medium) Agent-Session: local transcript ~/.local/share/devin/cli/transcripts/helpful-exception.json * Bump OrdinaryDiffEqTsit5 to 2.1.5 Co-Authored-By: Chris Rackauckas <[email protected]> Co-Authored-By: Devin <158243242+devin-ai-integration[bot]@users.noreply.github.com> Agent-Harness: Devin CLI 3000.11.3 (Mac) Agent-Model: Fusion (claude-opus-5-5 medium + swe-2 medium) Agent-Session: local transcript ~/.local/share/devin/cli/transcripts/helpful-exception.json * Bump OrdinaryDiffEqVerner to 2.4.2 Co-Authored-By: Chris Rackauckas <[email protected]> Co-Authored-By: Devin <158243242+devin-ai-integration[bot]@users.noreply.github.com> Agent-Harness: Devin CLI 3000.11.3 (Mac) Agent-Model: Fusion (claude-opus-5-5 medium + swe-2 medium) Agent-Session: local transcript ~/.local/share/devin/cli/transcripts/helpful-exception.json * Bump OrdinaryDiffEqSymplecticRK to 2.2.3 Co-Authored-By: Chris Rackauckas <[email protected]> Co-Authored-By: Devin <158243242+devin-ai-integration[bot]@users.noreply.github.com> Agent-Harness: Devin CLI 3000.11.3 (Mac) Agent-Model: Fusion (claude-opus-5-5 medium + swe-2 medium) Agent-Session: local transcript ~/.local/share/devin/cli/transcripts/helpful-exception.json --------- Co-authored-by: Devin <158243242+devin-ai-integration[bot]@users.noreply.github.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
QNDF_CACHES,FBDF_CACHES, andBDF_CACHES_WITH_INTERPOLATIONSinlib/OrdinaryDiffEqBDF/src/bdf_interpolants.jlare nowconst. They are used only in method signatures and are never reassigned — the same pattern as #4608.NORDSIECK_CACHESlater in the same file was alreadyconst; these three were the only non-const top-level globals in OrdinaryDiffEqBDF.Verification
grepoverlib/OrdinaryDiffEqBDF: all uses are inbdf_interpolants.jl, all incache::/cachesignature positions or the union definitions; no reassignment anywhere.isconst(OrdinaryDiffEqBDF, name)reportsfalsefor all three on master andtrueon this branch. Actual output (Julia 1.12.4,OrdinaryDiffEqBDFdev'd at each revision):On
master(f9ce35d):On this branch (86c054e):
FBDF solve + dense
sol(out, t)still work.Runic
--checkandtyposclean on the changed file.GROUP=CoreandGROUP=QAfor OrdinaryDiffEqBDF both pass locally (Pkg.test, Julia 1.12.4).What was not verified
No runtime behavior change is expected — the bindings only appear in method signatures.
constmakes the binding itself constant, which is what lets the compiler fold the union type into dispatch tables.Please ignore until reviewed by @ChrisRackauckas.
Risk assessment
🤖 Generated with Devin (model: swe-2-high), orchestrated by Claude Code (claude-opus-5-5[1m]) session https://claude.ai/code/session_01LPHREnnonfLg1VcE1EJovv
Risk assessment
const; no new dependency-internal usage, public API/SemVer change, or weakened tests.86c054e0: 134 successful, five failed, three skipped checks.SciMLSensitivity.jl/Core1/1 / Downstream Tests - Core1anddowngrade-sublibraries / test (lib/DiffEqBase)/(lib/OrdinaryDiffEqDifferentiation)also fail onmaster85110ac2: pre-existing (downstream, downgrades).tests / GPU (julia 1, self-hosted Linux X64 gpu) / Tests - GPU (Julia 1)has the same QNDFgpu_mismatchfailure onmaster1cbe52c1: pre-existing (comparison).sublibrary-ci / lib/DelayDiffEq [Regression] / Julia 1 / Tests - Regression (Julia 1)fails on head with “Waltman Problem Tests: matrix contains Infs or NaNs,” but passes on master4e8d61f4and418f7834: regression under the stated bar, causality unproven. The description omits these CI failures; no review comments exist.🤖 Risk assessment posted by an AI agent (fleet master) — harness: Codex CLI 0.156.1 (Mac) / gpt-6-astra; dispatched by Claude Code head, model claude-opus-5-5[1m]
Conversation: local Claude Code session 3cd6500a-1f81-46b5-ac0b-c466e15b6a53 on Chris's Mac (session ID, no URL)