Thicket thicket
ocaml
REPOS 1

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

W32.2026 · 3–9 Augoxcaml/oxcaml

Features

  • Addressable kinds (opened): New addressable kind operator distinguishes kinds whose boxed form is a block (pointer-takeable) from tagged immediates. Enables future pointer-to-box language features. #6712

  • Dox (opened): Live literate programming environment where a Markdown page is also an OxCaml module; code evaluates in-browser with diagnostics and execution data attached to source. #6697

  • Layout polymorphism over any-field records/variants (opened, stacked on #6496): Compiles poly_ bindings over any-field shapes via a transient Splice case in mixed_block_element, instantiated at translation. #6687

  • First-class modalities (draft): Gives t @@ m surface syntax as a writable type with automatic introduction/elimination rules; eliminates hand-rolled Stdlib.Modes wrappers. #6678

  • Atomic block indices (opened): Introduces idx_atomic, a predef type for indices to [@atomic] record fields, with Idx_atomic.get/set in Stdlib_stable. #6667

Fixes

  • Partial GADT match calling-convention soundness (merged): Parameters that partially match a GADT constructor no longer narrow the sorts of later parameters or the return, preventing segfaults from mismatched calling conventions. #6689

  • Polymorphic record field atomics (merged): [%atomic.loc] and mutable block indices to polymorphic record fields are now rejected, closing a soundness hole that permitted Obj.magic-equivalent type confusion. #6688

Compatibility and Releases

  • AVX-512 promoted to simd_beta (merged): 512-bit vector and mask types move from simd_alpha to simd_beta; backend support, array operations, and mask load/store primitives are available under the beta flag. #6676, #6339, #6340, #6708