Thicket thicket
ocaml
REPOS 5

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

W40.2025 · 29 Sep – 5 Octoxcaml/oxcaml

Features

  • OxCaml runtime quotations: introduces staged computation via <[, ]> brackets and $ splicing, with a stage notion added to the type system. Quotations are represented as an AST in camlInternalQuote; opening modules inside quotations is rejected. (#4395)

  • OxCaml untagged int arrays: adds int8#, int16#, and int# arrays and iarrays with a new tag-encoding scheme (tags 4–7 encode element width). char# arrays follow from the shared layout with int8#. (#4643)

  • OxCaml slambda IR: introduces a new intermediate representation with a single SLquote constructor wrapping lambda, plus a static evaluator. The -dslambda flag prints slambda before evaluation; the transl phase now outputs slambda. (#4776)

  • OxCaml prototype ikind system: new subsumption and mode-crossing algorithms behind -extension ikinds, targeting performance issues that block mode crossing for polymorphic variants and GADTs. Marked not ready for production use. (#4675)

  • OxCaml staticity mode axis: adds a static < dynamic axis to the mode system, with monadic-axes-of-closures now uniformly interpreted as legacy. Mode checking for staticity is deferred to follow-up PRs. (#4799, #4798)

  • OxCaml mixed modules: lifts the value-only restriction on module fields, threading a module_representation through typing, lambda, and flambda2 to support non-value elements in module blocks. Sort variables are resolved only after typing completes. (#4020)

  • OxCaml match-in-match analysis: exposes the n-way join's per-variable definitions (SSA phi equivalents) in the downward env so simplify can access continuation-handler parameter information. Currently unused; intended to enable a more precise match-in-match heuristic. (#4821)

Fixes

  • OxCaml block index typing: merged changes disallow idx_mut to [@atomic] fields and require the element type of a block index to a flattened float to have an unboxed version, preventing unsound writes through private aliases. Block indices are moved to the stable API. (#4824, #4826, #4827)