Thicket thicket
ocaml
REPOS 5

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

W35.2026 · 24–30 Augoxcaml/oxcaml

Features

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

  • Box kinds (open): Introduces the k box kind constructor, where k box < scannable always holds and specific subkinds (e.g. bits64 box < value non_float) are enumerated. Box kinds are not yet linked to types. #6956

  • Addressable kinds (merged): Adds an idempotent addressable operator to the kind system, distinguishing kinds whose boxed form is a block (pointer-takeable) from those that are immediates. Enables ptr_of on bits64 box but rejects bits8 box. #6712

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

  • SSA empty-loop deletion (open): A -ssa-delete-empty-loops pass uses Fourier-Motzkin entailment over affine facts to prove loop termination and side-effect-freedom, then rewrites the header exit to an unconditional jump. Off by default. #6948

  • Experimental Eval.inject (open): Runtime value injection for metaprogramming quotes, with a %reify_approx primitive that marshals middle-end approximations so the second compilation can drive inlining. Polymorphic values require monomorphisation annotations. #6560

Fixes

  • DWARF size and correctness (merged): A series of changes reduces ocamlopt's DWARF from 361 MiB to ~46 MiB on macOS: assembler-local temporaries, free-depth cache keys, shared enum DIEs, compact forms, and correct file paths for inlined frames. #6915, #6916, #6945, #6882, #6877, #6517

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