Thicket thicket
ocaml
REPOS 27

October 2026

October's compiler update addressed problems that could make programs return incorrect results or stop responding. OCaml 5.5.2 combines those corrections with six security fixes, making correctness and security a substantial part of the month's released work. Release notes

For browser applications, the new release of OCaml's JavaScript and WebAssembly compiler adds support for the next OCaml version and access to more browser graphics and cryptography features. Compilation is faster and generated files are smaller in the reported benchmarks. There is a compatibility change to watch: identical values can now share storage, so programs that depend on them having distinct identities may need adjustment. Release

Development work also targeted costs that become noticeable in larger programs. Changes to atomic operations reduce the cost of certain shared-state updates, while a separate compiler fix avoids repeated work when compiling deeply nested functions. Both were merged into the development branch, rather than included in the October maintenance release. Atomic operations · Compilation fix

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)