Thicket thicket
ocaml
REPOS 27

W20.2025 · 12–18 MayAll

OCaml's minor GC now stops scanning when it reaches a stack frame unchanged since the previous collection, reducing collection cost on ARM64/Linux, POWER, and RISC-V. A breaking change reattaches extension points and attributes on let module, let exception, and let open to the structure item rather than the enclosing let expression.

Features

OCaml GC: Minor GC stops scanning when it reaches a stack frame unchanged since the previous collection. Supported on ARM64/Linux, POWER, and RISC-V; ARM64/macOS uses a software mask at ~0.5% overhead. #13594

OCaml Sys.runtime_executable: New function returns the path of the executing runtime binary (e.g. ocamlrun), distinct from Sys.executable_name which reports the bytecode image. #13728

OCaml parser (proposal): Extends the parser to accept arbitrary structure items (let type, let class, let module type, let external) inside let … in expressions, excluding let bindings and include. #14040

js_of_ocaml wasm_of_ocaml: Now emits a binary Wasm module by default, speeding up binaryen parsing. Source maps and --debug wat still require text output. #2000, #2003

Compatibility

opam-repository (open): Proposes removing the available: !(os = "macos" & arch = "arm64") constraint on OCaml 5.3.0+BER, based on a successful MetaOCaml install. A follow-up notes the same change could apply to 4.14.1+BER. #27887

Fixes

OCaml structure items (breaking): Extension points and attributes on let module, let exception, and let open now attach to the structure item rather than the enclosing let expression. To target the let itself, place them after the let keyword. #14009

OCaml Dynlink: Updates FlexDLL to 0.44, adding a global lock around the loaded-units list. Re-enables the lib-dynlink-domains test disabled since 5.2 due to segfaults under concurrent Dynlink.loadfile. #14032

OCaml ocamltest: Fixes a bug where set on a variable in one parallel test block leaked into sibling blocks, causing "Variable already in the environment" errors. #13961

OCaml Format: Corrects misattribution of horizontal content length to the preceding break hint, so b/hov boxes now fit content on the line as specified. #13853

OCaml short-paths (reported): ocamlopt -short-paths loops indefinitely on recursive modules with cyclic type abbreviations. A localized cycle-detection fix is proposed but not yet merged. #14036, #14037

js_of_ocaml: Fixes bigarray hashing in the Wasm runtime. #1977

opam (open): --depext-only now returns a non-zero exit code on dependency conflicts instead of 0. #6516