The OCaml compiler fixes a pattern-matching segfault on mutated variant fields and two flambda miscompilations that produced garbage values. Dune 3.26 passes a compilation-mode cookie to PPX rewriters identifying the OCaml or Melange target.
Features
ocamldepgains-strict: exits non-zero on missing files or parse errors, produces no output on failure. (#15167, merged)- Dune 3.26: PPX rewriters receive a compilation-mode cookie identifying the OCaml or Melange target. (#16699, merged)
- js_of_ocaml Wasm backend: functions under a handler signal via
caml_exception+br_on_null; run time drops 24% at--opt 2. (#2098, merged) - js_of_ocaml Wasm-JS boundary: JavaScript values use externref; floats as f64, integers as i32. Method-call overhead drops ~16 ns to ~5 ns on V8. (#2563, merged)
Compatibility
- Eio fixed buffers are off by default; a 256 KiB buffer per domain triggered a ZFS kernel bug requiring reboot.
Eio_main.runaccepts~configfor io_uring parameters. (#845, #960) - Dune 3.25 sandboxes ctypes stub generation; upper bounds on dune 3.25 added to 17 packages with undeclared C headers. (#31065, #31051, merged)
Fixes
- Pattern matching on a mutated variant field was treated as exhaustive when it was not, causing segfaults. The partiality record now propagates the downgrade. (#15204, merged)
- Two flambda miscompilations fixed:
-Oclassicalias analysis produced garbage values; float-array lifting on a dead GADT branch triggered a fatal error. (#15208, #15213, merged) Scanf.unescapednow handles octal (\oNNN), uchar (\u{…}), and backslash-space escapes, matching the lexer. (#15168, merged)- Dune watch-mode builds no longer hang when the file watcher loses a sync-file notification; pending syncs are retried with a five-second timeout. (#16756, #16850, merged)