Thicket thicket
ocaml
REPOS 5

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

W35.2026 · 24–30 AugOxCaml

Features

  • Mode solver levels (merged): Adds level tracking, generalize, copy, and alloc-mode-as-locality to the mode solver. Infrastructure for mode polymorphism. Stacked over #5478–#5482.

  • Box kinds (open): Introduces the k box kind constructor; k box < scannable always holds. Box kinds are not yet linked to types. #6956

  • Addressable kinds (merged): Adds an idempotent addressable operator to the kind system. Enables ptr_of on bits64 box; rejects bits8 box. #6712

  • LTO solution files (merged + open): -reaper-solve writes .ltosol files and unions dependency graphs from .cmr inputs; -reaper-rebuild reads them. Full serialisation and calling-convention threading are in progress. #6752, #6731, #6895, #6964

  • SSA empty-loop deletion (open): -ssa-delete-empty-loops pass proves loop termination and side-effect-freedom via Fourier-Motzkin entailment, then rewrites the header exit. Off by default. #6948

  • Experimental Eval.inject (open): Runtime value injection for metaprogramming quotes; %reify_approx marshals middle-end approximations for inlining. Polymorphic values require monomorphisation annotations. #6560

Fixes

  • DWARF size and correctness (merged): Reduces ocamlopt DWARF from 361 MiB to ~46 MiB on macOS via assembler-local temporaries, shared enum DIEs, compact forms, and correct inlined-frame paths. #6915, #6916, #6945, #6882, #6877, #6517

  • CFG block-layout pass (merged): -cfg-block-layout reorders blocks to maximise fallthrough and sink cold blocks. Removes ~15% of intra-function unconditional jumps at +0.3% text size. #6918