Skip to content

Update to OCaml 5.5.0 - #1631

Merged
WardBrian merged 3 commits into
masterfrom
update/ocaml-5.5.0
Jul 7, 2026
Merged

Update to OCaml 5.5.0#1631
WardBrian merged 3 commits into
masterfrom
update/ocaml-5.5.0

Conversation

@WardBrian

@WardBrian WardBrian commented Jun 24, 2026

Copy link
Copy Markdown
Member

OCaml 5.5.0 was recently released. At the same time, the plan is to sunset 4.14 at the end of the year, so this seemed like a good opportunity to upgrade.

Even though we're jumping a major version and 5 minor versions, there are actually no breaking changes that affect us directly; the only code changes in this PR are to help with a slowdown related to the Marshal functionality that we use for loading in the compiled list of function signatures.

There are a few places I think the compiler code could be improved by using OCaml 5's features, but those are all left for future work.

Draft until

Submission Checklist

  • Run unit tests
  • Documentation
    • If a user-facing facing change was made, the documentation PR is here:
    • OR, no user-facing changes were made

Release notes

The Stan compiler is now built with OCaml 5.5.0 by default

Copyright and Licensing

By submitting this pull request, the copyright holder is agreeing to
license the submitted work under the BSD 3-clause license (https://opensource.org/licenses/BSD-3-Clause)

@WardBrian WardBrian changed the title Update/ocaml 5.5.0 Update to OCaml 5.5.0 Jun 24, 2026
@codecov

codecov Bot commented Jun 25, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 90.42%. Comparing base (97ef880) to head (27bc284).
⚠️ Report is 3 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #1631      +/-   ##
==========================================
- Coverage   90.49%   90.42%   -0.08%     
==========================================
  Files          65       65              
  Lines       10105    10087      -18     
==========================================
- Hits         9145     9121      -24     
- Misses        960      966       +6     
Files with missing lines Coverage Δ
src/stan_math_signatures/Stan_math_signatures.ml 86.27% <ø> (ø)

... and 14 files with indirect coverage changes

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@WardBrian
WardBrian force-pushed the update/ocaml-5.5.0 branch from ae57c8d to c2b4c5b Compare June 29, 2026 13:39
@WardBrian
WardBrian marked this pull request as ready for review June 29, 2026 18:19
@WardBrian
WardBrian force-pushed the update/ocaml-5.5.0 branch 6 times, most recently from 2b47481 to 1759107 Compare July 2, 2026 15:39
@WardBrian
WardBrian force-pushed the update/ocaml-5.5.0 branch 2 times, most recently from a9646b3 to f2e340e Compare July 6, 2026 16:50
@WardBrian
WardBrian force-pushed the update/ocaml-5.5.0 branch from f2e340e to 27bc284 Compare July 6, 2026 20:53
@WardBrian

Copy link
Copy Markdown
Member Author

cc @nhuurre @SteveBronder: Next time you want to build the compiler, you will need a new opam switch: cd scripts && bash ./setup_dev_env.sh

@WardBrian
WardBrian merged commit 31e949b into master Jul 7, 2026
3 checks passed
@WardBrian
WardBrian deleted the update/ocaml-5.5.0 branch July 7, 2026 16:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant