Thicket thicket
ocaml
REPOS 27

W44.2026 · 26 Oct – 1 NovAll

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

  • ocamldep gains -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.run accepts ~config for 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: -Oclassic alias analysis produced garbage values; float-array lifting on a dead GADT branch triggered a fatal error. (#15208, #15213, merged)
  • Scanf.unescaped now 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)

Releases

  • odoc 3.2.2 adds OCaml 5.6 support and removes reliance on ocamllex raising Failure for unescaped braces. (Release)
  • windtrap 0.3.0: tests run in worker processes; a crash or hang fails one test, not the run. Shrinking operates on generator choices. (#31062, merged)