Odoc 3.1.0 adds a Markdown backend for static-site generators and GitHub. The OCaml compiler fixes non-deterministic pattern-matching code generation caused by a global handler-id counter, cherry-picked to 5.4.
Features
- Odoc: adds a Markdown backend alongside HTML, enabling use with static-site generators and GitHub. Supersedes the long-open #791. (#1341)
- Odoc: new flag strips compiler paths from occurrence data, merging usage counts across builds against different compiler versions. (#1367)
- opam: proposes an 8× speedup for
opam updatewhen the repository is unchanged, reducing time from ~3.5 s to ~0.4 s. Still open, marked WIP. (#6283) - js_of_ocaml: merged loop-exiting edge elimination and early exit for leading loops, reducing unnecessary control-flow edges in generated code. (#2075, #2077)
Compatibility and Releases
Fixes
- OCaml compiler: fixes non-deterministic pattern-matching code generation caused by a global handler-id counter affecting hash-table iteration order. Cherry-picked to 5.4. (#14091)
- OCaml typechecker: fixes an internal error triggered by recursive modules with GADT constraints on zero-arity type constructors. Cherry-picked to 5.4. (#14135)
- Dune: allows
melange.runtime_depsto reference directory targets, resolving a self-dependency cycle during rule loading. Merged after the reporting interval. (#12006) - js_of_ocaml: updates the reserved-keyword list to match current ECMAScript, removing keywords no longer reserved and deduplicating
this. (#2071) - OxCaml simdgen: resolves a SEGV on CPUs lacking BMI instructions by detecting availability at configure time. (#4280)