Update to OCaml 5.5.0 - #1631
Merged
Merged
Conversation
Codecov Report✅ All modified and coverable lines are covered by tests. 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
🚀 New features to boost your workflow:
|
WardBrian
force-pushed
the
update/ocaml-5.5.0
branch
from
June 29, 2026 13:39
ae57c8d to
c2b4c5b
Compare
WardBrian
marked this pull request as ready for review
June 29, 2026 18:19
WardBrian
force-pushed
the
update/ocaml-5.5.0
branch
6 times, most recently
from
July 2, 2026 15:39
2b47481 to
1759107
Compare
3 tasks
WardBrian
force-pushed
the
update/ocaml-5.5.0
branch
2 times, most recently
from
July 6, 2026 16:50
a9646b3 to
f2e340e
Compare
WardBrian
force-pushed
the
update/ocaml-5.5.0
branch
from
July 6, 2026 20:53
f2e340e to
27bc284
Compare
Member
Author
|
cc @nhuurre @SteveBronder: Next time you want to build the compiler, you will need a new opam switch: |
3 tasks
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.
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
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)