Features
-
OxCaml mode system (PR #5608): Adds
writeandobservablemodes, making visibility and statefulness axes into diamond lattices with partial ordering. Open; implementation uses bit-vector encoding for meet/join. Link -
OxCaml
[@unpacked]attribute (PR #5610): Merged. Flattens unboxed product arguments into separate C parameters on native; bytecode stubs receive the product as a single boxed value. Nested products are recursively flattened. Link -
OxCaml
-O4flag (PR #5574): Merged. Enables-O3plus-flambda2-reaper; also adds the[@@ocaml.flambda_o4]attribute for per-module use. Link -
OxCaml
-cfg-merge-blockspass (PR #5597): Merged. New backend pass that merges equivalent CFG blocks after register allocation, reducing instruction count by ~3% in benchmarks. Disabled by default. Link -
OxCaml abstract kinds (PR #5629): Adds
with kind_constraints, completing the planned feature set before announcing abstract kinds. Open; parser enforces that the RHS is anlr-kindto avoid keyword conflicts. Link -
OxCaml slambda fracturing (PR #5544): Open. Splits lambda constructors into slambda (compile-time/runtime halves) as the first pass in the layout-polymorphism pipeline. All primitives are treated as dynamic. Link
-
OxCaml
[@zero_alloc]on function arguments (PR #5493): Open. Extends the[@zero_alloc]attribute to higher-order function parameters, requiring explicit arity. Front-end checks that the argument is an identifier or function abstraction. Link -
OxCaml GADT stage tracking (PR #5607): Open. Stores local constraints keyed by inference stage to prevent leaking type equalities across quote/splice boundaries. Fixes a soundness hole in GADT pattern matching under metaprogramming. Link