Thicket thicket
ocaml
REPOS 5

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

W27.2026 · 29 Jun – 5 JulOxCaml

Features

  • SSA IR (experimental, -use-ssa): New SSA intermediate representation between Cmm and CFG with automatic dead-code elimination. On by default for coverage; forced off under -llvm-backend. #5810

  • Functional mode polymorphism (experimental, -extension mode_polymorphism_alpha): Integrates level-relation operations into type inference. Polymorphic mode variables print as [< 'm] / [> 'm] bounds. Printing gated behind -extension mode_polymorphism_printing. #5483

  • Heap extension runtime API (draft): caml_add_extent(base, size, free_callback) registers externally-allocated memory as GC-managed OCaml blocks. The callback fires when all blocks in the extent become free. #6248

  • Compact frametable encoding (draft): Reworks native-code frame tables via alignment removal and a short descriptor format. Reduces rodata by ~28% and total executable size by ~5.5% on measured binaries. ARM64 support pending. #6399

Fixes

  • Heap-to-stack pointer invalidation in Flambda2 (draft): Detects when simplify_make_block would construct a heap-to-stack pointer and emits an Invalid node. Addresses a class of memory-corruption bugs previously undetected. #6400

  • GADT equation scope escape through functors (open): Corrects constructor scopes after functor application so types refined by local equations cannot leak into the resulting signature. Prevents spurious typechecking of M.t foo outside a match on the witness. #6406

Compatibility

  • posixat on macOS arm64: Fails to compile because it references Linux-only symbols (linux/openat2.h, renameat2). Issue remains open. #53