Thicket thicket
ocaml
REPOS 5

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

W21.2026 · 18–24 MayOxCaml

Features

  • OxCaml preemptible fibers: Merged runtime support for fibers carrying a tickc callback invoked at each runtime tick, enabling cooperative preemption without interval timers. Replaces the former caml_domain_preempt_self test-only mechanism. #5913
  • OxCaml kind any fields: Merged support for record fields and constructor arguments declared with kind any, deferring representation resolution to use sites. Projecting such a field requires a more refined, representable kind. #5461
  • OxCaml idx_atomic: Opened PR adding a third block-index type for [@atomic] fields, emitting atomic loads/stores and supporting compare-and-swap. Currently limited to value-kind targets. #6130
  • OxCaml CFG jump threading: Opened PR adding a pre-register-allocation pass that folds comparisons into branch terminators and threads jumps through empty merge blocks. Eliminates intermediate boolean materialization for ||/&& patterns. #6104
  • OxCaml normal form morphisms: Opened PR restructuring mode morphisms into core, simple, and full layers to guarantee a finite set of allowed morphisms. Active review ongoing. #5453
  • OxCaml opam-repository: Merged PR adding a dependency on the unboxed package to the core_extended opam definition. #50
  • OxCaml opam-repository: Opened PR adding the remaining packages built from the Dune repository to the OxCaml opam-repository. #49

Fixes

  • OxCaml caml_darken: Merged fix making caml_darken use atomic compare-and-exchange on lazy/forcing header words, preventing a race with concurrent domain updates during GC marking. #6109
  • OxCaml unboxed C call kinds: Merged fix ensuring results of unboxed C calls receive correctly typed variables instead of reusing Variable.rename, which produced wrong kinds and caused miscompilation. #6099
  • OxCaml opam-repository: ocaml-variants fails to build inside a Dune project because Makefile.config is missing after commit 2f92731. Fix tracked in #14544, expected in Dune 3.24. #48

Compatibility and Releases

  • OxCaml 5.4 branch: Merged upgrade of the 5.4 maintenance branch to the 5.2.0minus-37 upstream tag, resolving runtime and otherlibs conflicts. #5973