Thicket thicket
ocaml
REPOS 1

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

W49.2025 · 1–7 Decoxcaml/oxcaml

Features

  • OxCaml abstract kinds: PRs #5070 and #5071 (open) introduce abstract kind declarations and kind aliases as a three-part series. Module-level with kind_ = ... constraints follow in a third PR.

  • OxCaml scannable axes: #5031 (merged) ports separability to a scannable axis, renaming the base sort to Scannable. #5086 (open) extends the same treatment to nullability; #5095 (open) adds non_pointer64 to correct an immediate64 oversight.

  • OxCaml name mangling: #5099 (open) adds a reversible mangling scheme reconstructing full module paths from mangled names. Companion PRs #5097, #5098, #5096, and #5100 cover configuration, debug tracking, and a pure-OCaml demangler.

  • OxCaml AVX2 gather: #5040 (merged) adds AVX2 gather intrinsics using a reg + vec[..] * scale + displ addressing mode. The backend handles Regfs indices; gathers are not address-sanitized.

  • OxCaml reaper: #5081 (merged) adds an "auto" mode for direct call preservation. #5043 (merged) introduces type rewriting for local value slots, disabled by default pending internal testing.

  • OxCaml quotations: #5094 (open) inserts type annotations on records and variants under quotes where disambiguation occurred. #5090 (open) restructures Translquote.quote_expression_desc to support annotations inside compound terms.

Fixes

  • OxCaml flambda2 inliner: #5093 (open) corrects the speculative-inlining heuristic so value-kind arguments are treated as non-useful. This restores the intended behaviour after value_not_null became a super-kind of value, preventing spurious inlining.

  • OxCaml flambda2 documentation: #5082 (open) introduces an "Encyclopædia of Optimizations" documenting flambda2 middle-end passes with copy-pasteable examples. Coverage is partial; match-in-match documentation awaits its enabling PR.