Thicket thicket
ocaml
REPOS 27
W29.2026 · 13–19 Jul

All repository summaries

15 active · 12 unchanged

Back to weekly digest

ocaml-multicore/eio

Permalink

Features

  • io_uring for additional operations (Linux). ftruncate, fdatasync, fsync, shutdown, socket, bind, and listen now use io_uring when available, reducing syscalls on the hot path. Merged by @avsm. #850

  • Cross-platform socket options. TCP_KEEPIDLE maps to TCP_KEEPALIVE on macOS. Per-platform availability is now documented in the API. TCP_FASTOPEN is disabled on non-Linux systems due to inconsistent behaviour. Merged by @talex5. #890

  • Eio_unix.Err module. New public module providing Err.v to wrap Unix_error into Eio.Io exceptions, replacing ad-hoc wrap/wrap_fs helpers across backends. Merged by @talex5. #887

  • Pre-connect socket options (proposal). A GADT-based options list allows setting socket options (e.g. reuse_addr) before connect, building on earlier work by @art-w. Open, under review. #875

Fixes

  • Sockopt exception handling restored. Sockopt functions again raise Eio.Io exceptions in all failure cases; a regression introduced by the stub relocation in #889. Merged by @talex5. #891

  • macOS POLLNVAL fallback (open). eio_posix resumes waiters with an Unpollable exception when poll() returns POLLNVAL (e.g. /dev/tty, /dev/null), then polls those fds via select() in a systhread. Open, not yet merged. #893

Compatibility

  • Sockopt stubs moved to eio.unix. C stubs for extended socket options are now shared between eio_linux and eio_posix, and are structured to compile on Windows (untested). Merged by @talex5. #889

ocaml-multicore/ocaml-uring

Permalink

Fixes

  • Issue #160 (opened and closed 2026-07-19/20) reports a potential double-free in uring_stubs.c when io_uring_queue_init_params fails. A comment disputes the report, noting the custom-block finaliser is custom_finalize_default (NULL), so no dangling pointer is freed. Resolution is not stated in the supplied data.

ocaml-multicore/saturn

Permalink

Fixes

  • Merged: test suite build corrected to work against a recent qcheck release. Affects developers building the saturn test suite; no change to the public API. (#188, lyrm)

ocaml/dune

Permalink

Features

  • --sandbox-actions now supports sandbox-exec on macOS alongside bubblewrap on Linux. The sandbox-exec profile denies writes to the shared cache while preserving normal filesystem access. (#15500, merged)
  • dune completion fish is available in an open PR, adding subcommand, flag, and value completion for fish 3.x/4.x. Filename fallback applies when Dune has no semantic completions. (#15515, open)
  • dune cache trim --trimmed-size 0 now accepts a bare 0 without a unit suffix, since all units are equivalent at zero. (#15498, merged)

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 their dune-project language version. (#14574, merged)
  • dune deps no longer resolves package dependencies transitively. The previous transitive closure was an unintended side-effect of the install staging area. Projects relying on it (e.g. Frama-C) must list dependencies explicitly. (#15511, open)

Fixes

  • Shell completion scripts (bash, zsh, PowerShell) fall back to the shell's filename completion when Dune has no semantic completions. Restores behaviour lost when completion moved to cmdliner in #14779. (#15442, merged)
  • The persistent digest database now records ctime alongside mtime and size. Same-size edits that restore mtime no longer produce stale builds. (#15495, merged)
  • %{bin:...} PATH layouts on Windows omit the .exe extension for native executables, a regression from 3.24. Fix is in review. (#15512, #15518, open)

ocaml/merlin

Permalink

Features

  • Merged: An LRU cache limits indexing memory usage; small values are stored alongside their parent and filenames are made relative to the indexer's working directory. (#2079, by voodoos)
  • Open: Integrates LRgrep for declarative syntax-error message generation; adds a make lrgrep-coverage target that reports grammatical constructs lacking error messages. Additive; no existing parser behaviour changes. (#2072, by let-def)

Fixes

  • Open: The lexer now skips non-interpolated string-literal content when computing hover and documentation, so / in "/usr/bin/home" no longer returns division-operator docs. Interpolated %{name} segments are still processed. (#2098, by ikostia)
  • Open: Occurrences staleness detection is corrected when Merlin runs from a directory other than the project's source root. (#2097, by voodoos)

Compatibility and Releases

  • Open: Dune 3.24.0 changed %{bin:NAME} resolution to a per-rule .binaries/<hash>/ shim directory, breaking ocamlmerlin-server discovery on Windows. Server tests fail with stat(ocamlmerlin-server): No such file or directory. A fix adds a SearchPath() fallback and declares both binaries in the dune binaries stanza; CI currently pins Dune to 3.23.1. Reported upstream as #15512. (#2095, #2096)

ocaml/ocaml

Permalink

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)

  • PR adds {Option,Result}.try_value, a combinator that attempts a computation and falls back on failure. Stdlib team approved the design; PR is open. (#14941)

Compatibility and Releases

  • caml_atomic_exchange, _cas, and _fetch_add no longer emit redundant acquire/release fences around the seq_cst RMW on AArch64. The RMW is itself a full ordering point (RCsc); verified with herd7. (#14936)

  • A new GC-pacing algorithm replaces the current one, tracking off-heap and ephemeron allocations. The PR is open with remaining work on custom-block accounting and test failures. (#14796)

Fixes

  • ocamlopt now emits a store-release (stlr) for non-atomic assignment stores on all arm64 targets, replacing dmb ishld; str. On FEAT_LRCPC2 cores this is 4–50× faster; configure auto-detects and falls back for Cortex-A53/A72. (#14922, merged)

  • A functional record update that implicitly copies an atomic field now performs an atomic load instead of a plain field read. PR #14935 is open; the alternative (forbidding such updates, #14931) was closed. (#14918)

  • A size limit is added to the fiber cache to prevent unbounded growth when fibers migrate between domains. Configurable via OCAMLRUNPARAM; backport to 5.5 is in progress. (#14940)

  • The runtime now queries sysconf(_SC_MINSIGSTKSZ) at startup instead of using the compile-time SIGSTKSZ constant. Fixes a fatal error on Alpine 3.24 (musl 1.2.6) with Intel Xeon Platinum 8488C. (#14933)

ocaml/ocaml-lsp

Permalink

Fixes

  • Merged: workspace/symbol now resolves each outline item's source path independently, preferring existing workspace files over Dune build-directory paths. Symbols for generated code no longer point to nonexistent locations. #1742
  • Merged: The server accepts the first dynamic workspace/didChangeWorkspaceFolders update when workspaceFolders was null at initialization, instead of asserting. #1747
  • Merged: textDocument/formatting routes only Document.Dune.t values to the Dune S-expression formatter. OCamllex, Menhir, and Cram documents now return no edits instead of being misrouted through Dune RPC. #1621
  • Open: textDocument/documentSymbol falls back to range when Merlin's selectionRange violates the LSP containment invariant, preventing VS Code from discarding the entire symbol response. #1750

Features

  • Open: Updates the bundled LSP meta-model from 3.17 to 3.18.0, adding workspace text-document-content requests, snippet edits, code-action tags, and related protocol types. Downstream call sites are updated to the new API shapes. #1749

Compatibility and Releases

  • Merged: Development tooling updated to Dune 3.24 and OCamlFormat 0.29.0; make dev now creates an OCaml 5.5 switch matching package constraints. #1740
  • Merged: The legacy Jest/Node/Yarn end-to-test harness is removed; all e2e tests now run in the OCaml expect-test suite. Node and Yarn are no longer required to build or test. #1726
  • Open: A missing <workspace>/_build/default directory is treated as an empty symbol source instead of emitting a window/showMessage warning on every workspace/symbol request. #1666

ocaml/ocaml.org

Permalink

Features

  • Package version pages restructured (#3713, open, @smorimoto): Versions on /p/ocaml/latest/versions are now grouped into "Latest", "Previous", "Avoided by opam", and "Deprecated by opam". Date labels read "Added to opam-repository" instead of implying release dates.

  • Compiler package pages show a banner (#3713, open): A notice on ocaml, ocaml-compiler, ocaml-base-compiler, ocaml-system, and ocaml-variants version pages directs readers to ocaml.org/releases for official release information.

  • OCaml package doc links corrected (#3713, open): Documentation links for the ocaml package now point to /manual/<major>.<minor>/index.html (micro version dropped) rather than the empty /p/ocaml/<version>/ meta-package page.

  • New documentation build server (#3716, open, @jonludlam): Documentation links redirect to the rebuilt server at dill.caelum.ci.dev, which exposes per-package build status, logs, and distinguishes doc-build, build, and cascade failures.

  • Dune 3.24 release announcement (#3704, open, @shonfeder): Adds the dune 3.24 release to the site's release announcements.

Fixes

  • Broken success-stories link (#3714, open, @Geerayef): The "OCaml success stories" link in CONTRIBUTING.md returns 404; the correct target is the Industrial users page.

ocaml/ocamlfind

Permalink

Features

  • #122 (open, by dra27): Adds support for the relative paths in ld.conf introduced by OCaml 5.5.0 and makes the installed ocamlfind relocatable (byte-identical across prefixes for the same compiler).
  • #123 (open, by dra27): Proposes removal of the -with-relative-paths-at configure option, a breaking change for existing build scripts.

Compatibility and Releases

  • #122 (open): Required for correct operation with OCaml 5.5.0, whose installed ld.conf uses relative paths (../stublibs, ./stublibs, .). #119 (closed 2026-07-18) addressed the same issue and was closed in favour of #122.
  • #121 (open): Restores correct ocamlfind list and topfind behaviour on mingw-w64/MSVC with OCaml 5.0+; previously findlib.conf was silently misgenerated.

Fixes

  • #120 (merged 2026-07-18, by rlepigre-skylabs-ai): Installs .cmx files alongside .cmi files, eliminating compiler warning 58 (no-cmx-file) in client code such as Rocq. Closes issue #117.
  • #121 (open, by dra27): Fixes build failures on Cygwin and MSYS2 with OCaml 5.0+ caused by semicolons in paths during findlib.conf generation; also corrects a META.pkg check in ocamlfind install. Supersedes #112.

ocaml/odoc

Permalink

Features

  • odoc compile / odoc compile-impl (open, not merged): gain an option to override the output path, relaxing the strict path requirement for -L resolution. Output files can sit alongside .cmi files, inheriting compiler path resolution.

  • OxCaml mode annotations (open, ongoing): render in generated documentation, with heuristics omitting legacy or contextually implied modes for readability. Fixes #1417.

Fixes

  • Several driver fixes (open, not merged): a set of related corrections to the odoc driver plus one fix to odoc itself. Documentation was updated as part of the change.

ocaml/opam

Permalink

Features

  • opam install now accepts root and rootexec sections in .install files, enabling cross-compiled package layouts. Requires opam-version: "2.6" in the package file. #6938
  • New --ignore-available-on flag (and OPAMIGNOREAVAILABLE env var) forces installation of packages whose available constraint is unmet, for compatibility testing. #6836

Compatibility and Releases

  • opam 2.6.0~alpha1 released. #7046
  • .install files containing .. in target paths are accepted again (reverts a 2.5.1 restriction that broke dune cross-compilation). A warning is emitted; strict mode errors. #7008

Fixes

  • The .opam-switch/sources directory now stores only dev/pinned packages; regular packages extract directly into the build directory. Benchmarks show a 24% speedup on multi-package installs. #6440
  • The shell env hook now updates the existing opam switch path in PATH in place rather than prepending it, preserving user-defined directory precedence. #6859
  • opam init --bare no longer computes a default compiler, eliminating a several-second delay. #6957
  • Build directories are removed immediately after each package installs instead of at the end of the command, reducing peak RAM usage. #6906

ocaml/opam-repository

Permalink

Features

  • opam 2.6.0~alpha1 (8 packages: opam-client, opam-core, opam-devel, opam-format, opam-installer, opam-repository, opam-solver, opam-state) submitted as an alpha release. Open. (#30284)

  • New packages submitted: noise 0.1.0 (Noise Protocol Framework rev 34), termaid 1.0.0 (Mermaid-to-Unicode renderer), theo 0.1.0 (BDD with theory support), wax 0.1.0 (WebAssembly toolchain), ppx_deriving_melange 0.1.0 (merged).

  • lstar-rocq 3.0 (formally-verified automata learning in Rocq) introduces breaking changes: teacher modules restructured; TTT for DFAs and L* for Moore/Mealy machines added. Open. (#30291)

  • quickjs 0.5.0 (QuickJS bindings) contains extensive breaking changes: RegExp.exec return type, UTF-16 index semantics, parse_int radix auto-detection, and library module renames (Quickjs_c.*). Open. (#30212)

Fixes

  • ppx_regexp 0.5.2 adds compatibility with ppxlib ≥ 0.36. Merged. (#30261) melange 7.0.1 fixes relocation of relative mel.module externals during inlining. Merged. (#30253)

  • riot package marked non-maintained; five versions with invalid checksums (0.0.2–0.0.5, 0.0.7) marked unavailable and source URLs redirected to opam-source-archives. Merged. (#30252, #30242)

Compatibility and Releases

  • ocamlfind 1.9.9~preview added for OCaml 5.5, which cannot parse ld.conf with 1.9.8. Flagged avoid-version; selected only on macOS, Windows (Cygwin/MSYS2), and Linux for 5.5+. Open. (#30285)

  • gmp 6.3.0-1 adds DragonFly BSD support and restricts the GCC 15 patch to GCC 15+. Open. (#30290)

ocsigen/js_of_ocaml

Permalink

Features

  • Pointer Capture API bindings added to Dom_html.element (merged). setPointerCapture, releasePointerCapture, and hasPointerCapture are now typed methods; pointerEvent gains getPredictedEvents, altitudeAngle, and azimuthAngle. #2403

  • Lwt_js_events.load/error/abort accept any #Dom_html.element (merged). The .mli restriction to imageElement is removed; the implementation was already generic. Backward compatible. #2404

  • Experimental --esm flag for ES module output (open, RFC). js_of_ocaml compile --esm, build-runtime --esm, and link --esm emit .mjs files with named imports/exports instead of IIFE globals. link --esm --bundle produces a single tree-shaken module. Separate-compilation link step is faster than script concatenation when per-unit files are already on disk. #2402

  • Web Audio and Media Capture bindings (open). Adds AudioContext, the full node-graph hierarchy, AudioParam automation, MediaStream/MediaStreamTrack, and navigator.mediaDevices. Completes Dom_html.mediaElement with text tracks, srcObject, and missing event listeners. #2401

Compatibility and Releases

  • Single linear memory for Safari (open). The runtime previously declared four separate linear memories; Safari rejects multi-memory modules. All memories now share one. #2405

  • Wasm FFI "bad cast" root cause identified (closed, no fix in this repo). A Js.Unsafe.coerce read in ocsigen-toolkit inferred int for a fractional pageYOffset, trapping at the wasm FFI boundary. Fix lands in #271. Any Js.Unsafe.coerce read typed as int/bool/float is a latent wasm trap. #2406

oxcaml/opam-repository

Permalink

Features

  • PR #54 (merged 2026-07-13, by dra27-js) adds five compiler releases to the opam repository, including experimental 5.4.0-ox1 and 5.4.0-ox2 builds. The 5.4.0 compilers are installable but no packages build against them yet.

Compatibility and Releases

  • The merged PR introduces 5.2.0minus-38 (Jane 130.100+614), 5.2.0minus-39 (Jane 130.106+341), 5.2.0minus-40, 5.4.0-ox1, and 5.4.0-ox2. 5.2.0minus-39 is the recommended release.
  • Issue #46 (closed 2026-07-13) requested a bump to Jane 130.100+614 to resolve a build failure in ocaml_intrinsics_kernel; the PR above addresses this.

oxcaml/oxcaml

Permalink

Features

  • DWARF debugging for Flambda 2 (dwarf202607 series). Merged: stack-offset fix (#6510), -ddebug-avail-sets flag (#6511), Cmm.symbol for phantom expressions (#6512), entry-value operators (#6525), size_of_expression (#6527). Open stacked PRs add phantom-let translation, availability ranges, inlined-frame DIEs, and call-site info; the final PR (#6523) flips phantom_lets on by default. Debuggers will be able to print optimised-out variables and reconstruct callee parameters by virtual unwinding.

  • arm64: stlr/stlur replaces dmb ishld; str (#6538, open; supersedes closed #6443). Routes 64-bit non-value stores through a Sixtyfour memory chunk; -flrcpc2 emits stlur for imm9 offsets. Measured 80.8 s → 19.4 s (4.18×) on NVIDIA Vera fannkuchredux; removes ~73 % backend stall from per-store fences.

  • Adaptive recursive-module unroll depth (#6532, open). check_recmodule_inclusion tries depth 1, 2, then N; first success wins. A 1145-member generated group drops from 30.9 GiB peak / 8 m 38 s to 1.44 GiB / 13.8 s; .cmi/.cms are byte-identical at depth 1.

  • Functional mode polymorphism (#5483, #5478, #5480–#5482, all open). Adds levels, generalize/generalize_structure, copy, and update_level to the mode solver; gated behind -extension mode_polymorphism_alpha. Polymorphic mode variables print as [< 'm] / [> 'm] with constraint annotations.

  • Flambda 2 formalism (#6475, open). A PL-theory Markdown formalization of the Flambda 2 pipeline, produced by an LLM and reviewed by a human. Used to identify a float32 double-rounding bug in constant folding (fixed in #6474) and a comparison-to-zero signedness miscompile (fixed in #6497).

  • Compact frametables (#6399, open; measurement in #6487, emitter plumbing in #6488). Short descriptor format, ULEB128 deltas, linker de-duplication of debuginfo strings, and shared suffixes reduce rodata by 40 % and executable size by 8 % on a 3 GiB binary.

Fixes

  • GADT calling-convention soundness (#6533, #6356, open). Parameter value kinds were taken from the first GADT 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.

  • CFG CSE hoisting mutable loads over fences (#6433, #6476, merged). The CSE pass satisfied a mutable load from before an atomic load or lfence/mfence, effectively hoisting it above the barrier. A minimal fix classifies barrier operations as invalidating; a fuller redesign is in #6434.

12 repositories · no changes