Dune 3.25 removes Melange extension version 0.1, requiring projects to update to (using melange 1.0). The OCaml compiler now emits stlr for non-atomic stores on arm64, yielding 4–50× speedups on FEAT_LRCPC2 cores, and Dune's digest database records ctime to prevent stale builds after same-size edits.
Features
-
Frame-pointer support is now available on RISC-V (s0/x8 as CFA). Tested on Spacemit X60; works with and without C frame pointers. (#14506, merged)
-
--sandbox-actionsnow supportssandbox-execon macOS alongside bubblewrap on Linux. The profile denies writes to the shared cache while preserving normal filesystem access. (#15500, merged) -
ftruncate,fdatasync,fsync,shutdown,socket,bind, andlistennow use io_uring when available, reducing syscalls on the hot path. (#850, merged) -
js_of_ocaml compile --esm,build-runtime --esm, andlink --esmemit.mjsfiles with named imports/exports instead of IIFE globals.link --esm --bundleproduces a single tree-shaken module. (#2402, open, RFC)
Compatibility and Releases
-
Breaking (Dune 3.25): Melange extension version 0.1 is removed. Only
(using melange 1.0)is accepted; projects using 0.1 must update theirdune-projectlanguage version. (#14574, merged) -
opam 2.6.0~alpha1 released. (#7046)
-
Five compiler releases added to the oxcaml opam repository, including experimental
5.4.0-ox1and5.4.0-ox2.5.2.0minus-39(Jane 130.106+341) is the recommended release. (#54, merged) -
New
--ignore-available-onflag (andOPAMIGNOREAVAILABLEenv var) forces installation of packages whoseavailableconstraint is unmet, for compatibility testing. (#6836, merged)
Fixes
-
ocamloptnow emitsstlrfor non-atomic assignment stores on all arm64 targets, replacingdmb ishld; str. On FEAT_LRCPC2 cores this is 4–50× faster; configure auto-detects and falls back for Cortex-A53/A72. (#14922, merged) -
The runtime now queries
sysconf(_SC_MINSIGSTKSZ)at startup instead of using the compile-timeSIGSTKSZconstant. Fixes a fatal error on Alpine 3.24 (musl 1.2.6) with Intel Xeon Platinum 8488C. (#14933, merged) -
The persistent digest database now records
ctimealongsidemtimeand size. Same-size edits that restoremtimeno longer produce stale builds. (#15495, merged) -
GADT parameter value kinds were taken from the first case only; a caller selecting a different case passed an immediate where a tuple was expected, segfaulting at
-O3. The fix joins layouts across all cases. (#6533, open)