Features
-
SSA intermediate representation (open, updated 2026-06-14): New
-use-ssaflag introduces an SSA IR between Cmm and CFG, with aCfg_comparevalidator that checks register-equivalence against the legacy pipeline. Currently on by default; defaults will flip before merge. #5810 -
AVX-512 for the amd64 SIMD backend (open, proposed 2026-06-14): Proposal to add EVEX encoding, 512-bit ZMM register modelling, and an opmask (k0–k7) register class to the backend. Scopes incremental intrinsic-table batches followed by backend changes; width-parametric design targets AVX10 transition. #6257
-
Layout-polymorphic functions (open, updated 2026-06-13): Implements
let poly_ f x = …translation through typedtree, tlambda, and slambda, using kind templates and closure conversion. The simple static evaluator handles the generated slambda; deduplication deferred to later PRs. #5870 -
Heap extension runtime API (draft, created 2026-06-12): Adds
caml_add_extent(base, size, free_callback)to the internal runtime API, allowing external code to register pre-initialised blocks for GC management. Draft for design discussion on naming and callback semantics. #6248 -
Unloading of metaprogramming compilation units (open, updated 2026-06-10): Treats unloadable CUs as scannable heap regions with explicit dependency edges; the major GC unloads a unit when no Code_block or data block remains marked. Uses back-pointers in
.textand aCode_pointermachtype for safepoint liveness. #5960 -
Loop-elimination experiments (open, updated 2026-06-10): Three analyses (induction-variable finding, termination proof, dead-IV proof) enable complete elimination of empty
forloops under-cfg-merge-blocks. Based on the SSA IR work in #5810. #5840 -
ocamlfilt demangler (open, updated 2026-06-12): Pure-OCaml command-line tool that reverses OxCaml's flat0, flat1, and structured name-mangling schemes with automatic per-symbol detection. Reads symbols from stdin or arguments; unrecognised input passes through unchanged. #5100
Compatibility and Releases
- Upstream 5.4 merge (merged 2026-06-12): The
merge-upstream-5.4branch is now merged into main, bringing the OxCaml frontend in line with OCaml 5.4. A follow-up merge of main back into the 5.4 branch (#6179) also landed the same day. #5325