Thicket thicket
ocaml
REPOS 5

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

W21.2026 · 18–24 Mayoxcaml/oxcaml

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, eliminating 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

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

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