OxCaml covers the compiler extensions and their supporting tools and packages.
OxCaml repository summaries
2 active · 3 unchanged
oxcaml/opam-repository
PermalinkFixes
-
Merged: #62 (dra27-js) updates all
oxcaml-compilerpatches to apply without fuzz. Theignore-opam.patchline-number drift that broke Dune builds is resolved. -
Merged: #62 removes the faulty patch for
oxcaml-compiler.5.4.0-ox2, replacing it with the command pattern already used inoxcaml-compiler.5.4.0-ox7after upstream removedruntime4.
Compatibility and Releases
-
Closed (not merged): #51 and #60 addressed the same Dune patch-application failure; both superseded by #62. Dune's switch to a pure-OCaml patch implementation (ocaml/dune#14177) made line-number mismatches fatal.
-
Closed (not merged): #36 proposed adding 5.4.1 as a bootstrap compiler variant. The approach was superseded by a change in #42 that selects the closest OxCaml commit recipe.
oxcaml/oxcaml
PermalinkFeatures
-
A stacked PR series adds grammar, typing, and morphism translation for mode-polymorphic annotations such as
'a @ [< 'm] -> 'a @ [> 'm]. Currying constraints are generated implicitly; the typechecker rejects non-constant modes. (#7502, #7503, #7504, #7461) -
Merged tests for omnidirectional constructor disambiguation establish expected behaviour across three implementation stages. Open PRs add the Scheduler/Ivar/Tivar infrastructure and labeled tuple projections as the first expression-level client of omnidirectionality. (#7372, #7418, #7432)
-
The reaper is split into traverse, solve, and rebuild stages, with cross-unit calls deferred to rebuild time. Merged groundwork covers analysis-scope parameterisation and exportable fields; open PRs add
-support-lto,-reaper-solve, and-reaper-rebuild. (#7240, #7244, #7260, #7496, #7264, #7268) -
Four PRs open a new SSA-based backend: post-dominator computation, loop analysis, inter-block move support in the reducer, and a partial dead-code-elimination (operation sinking) pass. All are labelled experimental. (#7514, #7515, #7517, #7518)
-
A new
-bytecode-hintsflag stores Lambda-level information (block immutability, closure layouts, immediate-ness, physical comparisons) in a HINT section of .cmo files, enabling downstream compilers such as wasm_of_ocaml to generate better code. (#7509) -
Address pattern syntax
addr_andaddr_imm_is merged for parsing. Open PRs add type-checking (with mode interactions) and lambda translation via Pget_ptr. (#7410, #7456, #7458) -
A prototype FDO (feedback-directed optimization) implementation and its counter types are in open PRs, introducing pseudo-instrumentation data for branch and switch-case profiling. (#7395, #7462)