Thicket thicket
ocaml
REPOS 5

OxCaml covers the compiler extensions and their supporting tools and packages.

W48.2025 · 24–30 NovOxCaml

Features

  • Merlin (PR #200, open): Adds type hover for jkind abbreviations, displaying the expanded form. Link
  • OxCaml x86 backend: Merged peephole rules eliminate MOV chains, dead-register moves, rewrite MOV+ADD to LEA, and remove redundant CMPs. Umbrella PR for further rules remains open. Link
  • OxCaml register allocation (PR #5059, open): Adds an affinity mechanism to all three allocators, guided by CFG move-frequency counts. Enabled via -regalloc-param AFFINITY:on; benchmarks show up to −12% move instructions. Link
  • OxCaml Sys.signal_behavior (PR #5044, open): Adds a Signal_external constructor so handlers installed by foreign runtimes are preserved and re-installable. Also fixes a space leak and a race in the handler table. Link
  • OxCaml GADT with-bounds (PR #5046, open): Re-enables with-bounds normalization for GADTs, previously disabled. Merged PR #5047 reduces repeated fuel exhaustion on large jkinds. Link
  • oxcaml/opam-repository (PRs #21, #22, open): Adds Dune package management compatibility patches for ocamlbuild and odoc-parser, working around the absence of symlink support. Link, Link

Fixes

  • Merlin (PR #201, merged): Adjusts documentation file lookup priority so .cmti docs are not shadowed by newly generated .cms files in stdlib. Link
  • OxCaml staticity checking (PR #5054, merged): Forces common expressions (if, try/with, pattern-match branches) to dynamic in the mode system, preventing miscompilation in slambda v1. Link
  • OxCaml Env.fold_modules (PR #5066, merged): Changes Env.fold_modules and Env.fold_modtypes to pass a Subst.Lazy instead of forcing substitutions, reducing unnecessary work for Merlin. Link
  • oxcaml/opam-repository (PR #24, merged): Fixes eio.1.3+ox on latest oxcaml; explicit currying in eio_mock resolves a surplus-argument error. Link

Compatibility and Releases

  • OxCaml manifest files (PR #4986, merged): Adds -I-manifest and -H-manifest flags, resolving source files from a build-system manifest rather than directory search paths. Paths are relative to $DUNE_MANIFEST_LOAD_PATH_ROOT. Link
  • Merlin (PR #201, merged): Merges oxcaml 5.2.0minus-24. The new -I-manifest and -H-manifest parameters are not yet handled. Link