Thicket thicket
ocaml
REPOS 5

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

W46.2026 · 9–15 NovOxCaml

This period's most useful news for oxcaml users is a proposed whole-program JavaScript compilation target and a known crash that can abort correct programs when a specific optimisation flag is enabled. All items below are open pull requests or issues; none are in a released build.

Proposals

Whole-program JavaScript output (PR #7976, open). A new flag would let you compile an entire OCaml program to JavaScript in one pass through JSOO, the compiler's existing JavaScript backend. This removes the need to link separate module outputs by hand when targeting the browser.

Opt-in ARM64 instruction sets (PR #8033, open). New command-line and configure options would let you enable newer ARM64 instructions (LSE, LRCPC2, CSSC) so generated code can use them when your hardware supports them. Without the flag, the compiler continues to emit the baseline instruction set.

Include paths for internal dependencies (PR #7953, open). Two new flags would let you point the compiler at directories that hold compiled files for dependencies you do not want to expose in your public interface. This is useful when a package's internal modules are guaranteed to be present at build time but should not appear in the installed interface.

Known issues

Crash under the n-way join flag (Issue #7998, open). A correct program can abort when compiled with the n-way join algorithm option, because the compiler retains a stale reference that corrupts its internal bookkeeping. Until this is resolved, avoid that flag if you see an unexplained abort.

Compatibility

Arch Linux and opam upgrades (PR #68, open). On Arch Linux the system package manager and opam can conflict during an upgrade, leaving packages in a broken state. This open change would disable opam's partial-upgrade step on Arch so the two tools do not fight over the same files.