Features
-
OxCaml small integers: Merged literals for
int8,int16,int8#,int16#,int#, untagged chars (#'a'), and small array indices (.S(i),.s(i)). Includes C runtime support and DWARF debugging. (#4635, #4658, #4691, #4677, #4672, #4478) -
OxCaml JSIR backend: JavaScript intermediate representation branch merged to
main, adding dynamic integer-width dispatch, effects translation, multi-arity returns, and unboxed tuple handling for extern calls. (#4638, #4681, #4656, #4663) -
OxCaml Flambda 2 n-way join: Rewritten to follow the Datalog seminaive algorithm more closely, using leapfrog join for sub-linear performance when joined levels share few variables. Merged 2025-09-11. (#4369)
-
OxCaml shrink-wrapping: Merged basic prologue duplication to clear hot paths of prologue/epilogue overhead. A dataflow-based alternative (#4710) benchmarks ~2× slower and is unlikely to merge. (#4579)
-
OxCaml runtime quotations: The
#syntax metaprogramming ondirective and-metaprogrammingflag enable<[ ]>and$splice tokens in the lexer. Full typing and stdlib implementation is in review. (#4608, #4395) -
OxCaml TLS: Thread-local storage merged with the same interface as DLS, using per-thread storage via
caml_thread_{get,set}_state. Permits safe mutable state without mode crossing. (#4671) -
OxCaml ikind prototype: Open PR behind
-extension ikindsintroducing new subsumption and mode-crossing algorithms for polymorphic variants and GADTs. Not production-ready; under active review. (#4675) -
OxCaml Flambda 2 research plan: Issues opened 2025-09-11 outline next-phase work: reaper value-slot analysis, phantom lets through DWARF, match-in-match heuristics, function specialisation, and a potential Cmm replacement. (#4697, #4698, #4701, #4700)
-
Merlin LSP syntax hovers: Open PR adding LSP hovers documenting oxcaml-specific constructs: modes, modalities, linearity, inlining attributes, and regions. Full mode/modality hover awaits typedtree location data. (#168)
Fixes
-
OxCaml Flambda 2 compilation speed:
free_names_transitiveno longer recomputes free names for already-processed variables, reducing CFML parser compilation from >10 min to ~74 s. Merged 2025-09-10. (#4684, #4674) -
OxCaml register allocator: Workaround inserts a block on back edges to prevent reload-before-spill ordering in the split subpass. Merged 2025-09-10. (#4685)
-
oxcaml opam-repository: Updated patch allows
js_of_ocaml-compiler.6.0.1+oxto build successfully, fixing a prior installation failure. (#11, matthewelse)