Thicket thicket
ocaml
REPOS 27
W22.2026 · 25–31 May

All repository summaries

14 active · 13 unchanged

Back to weekly digest

ocaml-multicore/eio

Permalink

Features

  • Eio eio_linux: merged PR #842 sets IORING_SETUP_DEFER_TASKRUN, deferring task completion to io_uring_enter calls. Reports ~30% HTTP throughput gain on the author's hardware.

  • Eio eio_linux: merged PR #841 sets IORING_SETUP_SINGLE_ISSUER, hinting the kernel that each ring has one writer. Required for the DEFER_TASKRUN flag.

  • Eio (proposal): PR #821 adds incremental directory reading via a with_dir_entries-style API. Benchmarks show ~13× speedup over recursive read_dir on eio_linux.

Fixes

  • Eio eio_posix: merged PR #843 passes MSG_CMSG_CLOEXEC when receiving file descriptors over sockets, preventing fd leaks. Conditional on platform support (absent on macOS).

Compatibility and Releases

  • Eio eio_linux: issue #845 opened to disable io_uring fixed buffers by default; old ZFS kernels trigger a crash requiring reboot.

  • Eio: issue #797 closed after the ZFS concern was split into #845; no further action on the broader io_uring security question.

ocaml-multicore/meio

Permalink

Compatibility and Releases

  • Meio (PR #67): Closed without merge. Targeted OCaml 5.1.0 compatibility and generalization beyond Eio, introducing a meio-runtime-events library.
  • Meio (PR #71): Closed without merge. Ported tracing to Eio ≥ 0.14 runtime event types.

Features

  • Meio (PR #75): Open proposal by patricoferris to use cmdliner for argument parsing in the meio executable. Also bumps ocamlformat.
  • Meio (PR #74): Closed without merge. Alternative Stdlib.Arg approach for usage errors, superseded by PR #75.

ocaml-multicore/ocaml-uring

Permalink

Features

  • ocaml-uring PR #147: Opened by avsm. Proposes shutdown, socket, renameat, and symlinkat io_uring operations, each with tests. (link)
  • ocaml-uring PR #142: Opened by avsm. Fixes an inverted statx attribute-supported check; discussion proposes revising the Attr API to use abstract types rather than int64. (link)
  • ocaml-uring PR #128: Merged 2026-05-30. Moves AT_FDCWD handling into C stubs, eliminating the last Obj.magic in the library. (link)

Fixes

  • ocaml-uring PR #141: Merged 2026-05-29. Corrects dio_offset_align statx getter that returned the wrong field. (link)
  • ocaml-uring PR #144: Opened by talex5. Changes io_uring_submit to raise an OCaml exception on error instead of returning a negative integer. (link)

Compatibility and Releases

  • ocaml-uring v2.14.0: Released 2026-05-26. Adds Uring.Res module (breaking) for file-descriptor results, send_zc/sendmsg_zc zero-copy ops, and updates to liburing 2.14. (link)

ocaml/dune

Permalink

Features

Dune 3.24.0~alpha0: Released 2026-05-28. Adds the %{pkg:<package>:<section>:<path>} pform, enables the relocatable compiler by default for package management, and promotes directory targets from experimental to GA. Release notes

Dune shell completion: Open PR adds bash, zsh, and PowerShell subcommand and flag completion via the updated cmdliner 2.1.1. Target completion is not yet included. #14779

Dune single-context Melange: Merged PRs add melange.ppx_runtime_libraries for ppx rewriters needing different native and Melange runtime libraries, and implement installation for single-context universal libraries. #14796, #14800

Dune anonymous actions: Merged PRs replace file-based intermediates for pkg-config queries, mdx dependency queries, and inline-test partition listing with anonymous stdout actions, reducing build artifacts. #14782, #14787, #14788

Fixes

Dune module artifact targets: Fixes a crash when building %{cmi:...}, %{cmo:...}, or similar pform targets under (include_subdirs qualified) with duplicate leaf module names. #14498, fixes #14496

Dune cross-compilation: Fixes a regression where the target context inherited the host environment instead of the target environment, causing dune-configurator to select the wrong C compiler. #14817

Compatibility and Releases

Dune 3.24.0 %{bin:NAME}: Now resolves to the build artifact path rather than the install staging path. Rules with %{bin:NAME} deps get a per-rule .binaries directory prepended to PATH. Release notes

Dune 3.24.0 (lang coq) removal: The deprecated Coq Build Language is removed; projects must use (using rocq <version>). Profile names are now validated (non-empty, letters, digits, _, - only). Release notes

ocaml/merlin

Permalink

Features

Merlin (polymorphic variant completion): PR #2075 merged, adding a test that confirms polymorphic variant name completion already works. Closes long-standing issue #298.

Compatibility and Releases

Merlin (Dune module open order): Issue #1900 closed. Merlin reported errors on files that Dune compiled cleanly when two libraries contained same-named modules and -open flags were applied in a different order. Evidence does not specify the resolution.

Merlin (build on Ubuntu 25.04): Issue #1993 closed. opam install merlin failed on Ubuntu 25.04 / OCaml 4.13.1 due to a -Wformat-truncation warning promoted to an error in ocamlmerlin.c. Evidence does not specify the resolution.

Merlin (warning descriptions): PR #2074 closed without merging. The proposed feature to surface compiler warning descriptions was deemed unnecessary because ocamllsp already provides that information.

Fixes

Merlin (signature-help): PR #2067 merged. Signature help now expands type aliases once to reveal the underlying function type, so f : t where type t = int -> unit displays f : int -> unit at the call site. Non-function aliases are left unexpanded.

Merlin (locate in let punnings): PR #2066 is open. In a punned let binding the pattern and expression share a location, causing locate to report "Already at definition point." The proposed fix adds a tie-breaking mechanism to prefer the expression node for locate queries while preserving pattern selection for type-enclosing.

Merlin (refactor-open): Issue #1311 closed. refactor-open previously rewrote an entire record literal instead of a single field label (e.g. { M.i = 1 } became i).

Merlin (locate/occurrences): Issue #1404 closed, confirmed fixed by PR #1757. locate and occurrences previously disagreed on which identifier to target when the cursor sat at a boundary (e.g. on + in x+y).

ocaml/ocaml

Permalink

Fixes

OCaml compiler (merged): eliminates per-function Profile.record_call overhead when -dprofile, -dcounters, or -dtimings are not active. A microbenchmark of 1000 tiny functions shows a 30% compile-time reduction. #14832

OCaml runtime, major GC (merged): fixes ephemeron orphaning during Phase_sweep_ephe and clarifies num_domains_{todo,done} counter semantics. The orphaning fix prevents dangling pointers when a domain terminates mid-cycle; the counter change removes a pessimistic ephe_next_round call. #14734, #14733

OCaml Unix library, Win32 (merged): fixes socket_poll_add in select_win32.c so that Unix.select no longer raises "original file handle not found" or returns wrong descriptors when a socket appears in multiple fd lists. #14764, issue #14758

OCaml compiler, warning 60 (open): corrects the source location reported for unused-module warnings on non-aliasable module Bar := X.Foo substitutions, which previously pointed at the original declaration in a different .mli. #14831, issue #12745

OCaml flambda (open): prevents an infinite inlining loop when a stub function is recursive (e.g. let rec f ?(x = f ()) () = x + 1). The inline-stub stack is cleaned at each non-stub inlining to avoid false positives. #14839, issue #14828

Features

OCaml language (proposal, open): eta-expands argument-less constructor expressions in function-type contexts, enabling List.map Some [1;2;3] without new syntax. Restricted to unary constructors in the current draft. #14803

OCaml runtime, GC pacing (open): replaces the existing pacing logic with a new algorithm; macro-benchmark sweeps show wall-time improvements across all tested s/o parameter combinations at a small RSS cost. Still requires rebasing and counter updates. #14796

OCaml runtime, minor GC (open): inlines the fast path of oldify_one and exposes major-heap free lists for inline allocation, targeting a 2–3% total runtime gain on promotion-heavy workloads. Upstreamed from OxCaml. #14571

ocaml/ocaml-lsp

Permalink

Features

  • ocaml-lsp: PR #1606 proposes hover information on compiler warnings, addressing issue #717. The PR is open and under review; a reviewer requests unit tests for the hover function.

ocaml/ocaml.org

Permalink

Features

ocaml.org platform releases: Merged PR adds release changelog pages for dune-release 2.2.1, mdx 2.5.2, ocamlformat 0.29.0, merlin v5.7.1-504, ocaml-lsp 1.26.0-5.5~preview, OCaml 5.5.0~beta1, utop 2.17.0, odoc 3.2.0, and opam-publish 3.0.0. #3641

ocaml.org Backstage: Open PR adds a "Backstage OCaml" page describing a WASI prototype for OCaml. #3667

Fixes

ocaml.org GC docs: Open issue proposes replacing Core-based examples in the garbage-collector documentation with stdlib-only equivalents, citing Gc.tune as unavailable outside Core. #3664

Compatibility and Releases

opam-publish 3.0.0: Major version release now documented on ocaml.org. #3641

OCaml 5.5.0~beta1: Beta compiler release page added, copied from the discuss.ocaml.org announcement. #3641

odoc 3.2.0: Release notes document that odoc markdown generation now accepts multiple .odocl files (ocaml/odoc#1388). #3641

ocaml/odoc

Permalink

Features

  • Odoc OxCaml layouts: Issue #1415 closed 2026-05-27, completing rendering of : layout type annotations and modal bounds in documentation output.
  • Odoc OxCaml modalities: PR #1420 (open) adds rendering of OxCaml modality annotations on types and values. In active review.
  • Odoc zero-alloc annotation: PR #1422 (open) retains [@@zero_alloc] signature annotations in parsed documentation output.

Fixes

  • Odoc multi-line links: PR #1439 (open) reformats multi-line link syntax in comments into single-line links. In review with feedback on newline-escaping edge cases.
  • Odoc raise tag rendering: PR #1440 (open) inlines @raise tag content within the surrounding paragraph in HTML output. Reviewer proposes a broader document-model fix covering all backends.

Compatibility and Releases

  • Odoc sherlodoc serve: Issue #1441 reports sherlodoc serve fails because the www/ directory was not migrated from the original repository. A fix branch is available.

ocaml/opam

Permalink

Features

  • opam PR #6945: Adds an OpamTar module to create and manipulate tar.gz archives in-process, replacing external tar calls. Open, not yet merged; part of the #6625 repository rework.
  • opam PR #6938: Proposes prefix and prefixexec sections in .install files to simplify path handling in package install scripts. Open, not yet merged.
  • opam PR #6625: Ongoing WIP to read HTTP repositories directly from tar.gz without extracting, targeting opam update and opam init performance. Fixes multiple long-standing issues.

Fixes

  • opam PR #6947: Fixes an undefined variable error when a lock-file filter references an undefined variable; strict mode now fails gracefully. Open, not yet merged.
  • opam issue #6948: Reports that OpamFilename.starts_with performs a substring check rather than a path-component check, returning true for non-prefix paths. Open bug.

Compatibility and Releases

  • opam PR #6949: Adds a conditional hard-upgrade mechanism for the opam root, limiting the upgrade to specific version transitions. Open, labelled ready to merge.
  • opam PR #6939: Merged a reftest covering the HTTP repository fetch and update code paths. Part of the #6625 repository-handling rework.
  • opam issue #6950: Opens a performance investigation for OpamTar.Inplace.write, filed from a review of PR #6945. Open.

ocaml/opam-repository

Permalink

Features

  • awso 0.9.0: New 6-package AWS API library covering 400+ services with async, lwt, and sync backends. Merged 2026-05-26. (#29921)
  • dune 3.24.0~alpha0: Pre-release removes (lang coq) in favour of Rocq, changes %{bin:NAME} to resolve to build artifact paths, and validates profile names. Open PR. (#29969)
  • uring 2.14.0: Adds Uring.Res module replacing Obj.magic casts for file-descriptor results; existing code can cast back with (res :> int). Merged 2026-05-26. (#29954)
  • transom 0.1.0: New package providing OCaml sidecar glue for Tauri-style desktop apps over newline-delimited JSON. Merged 2026-05-31. (#29963)
  • Solo5 0.11.0: Linux TAP network throughput improved ~3× via eventfd(2); solo5-hvt now applies seccomp filters. Merged 2026-05-28. (#29965)

Fixes

  • albatross 2.7.2: Security fix for unbounded resource usage in albatross-console when querying with extreme count or date values. Merged 2026-05-31. (#29971)
  • opam-repository CI: Windows GHA workflows now run opam lint on each changed package and fail red on syntax errors, preventing invalid opam files from merging. Merged 2026-05-28. (#29964)

Compatibility and Releases

  • ez_api 3.0.0: Major version update for the Easy API library. Merged 2026-05-30. (#29893)

ocsigen/js_of_ocaml

Permalink

Features

  • js_of_ocaml 6.4: Merged Promise and Fetch API bindings, including AbortController, Lwt interop, and Promise-typed mediaElement.play. Closes #596 and #2031. (#2239)
  • js_of_ocaml 6.4: Merged Popover API bindings: showPopover/hidePopover/togglePopover methods, beforetoggle/toggle events, and popoverTargetElement on inputs and buttons. (#2252)

Fixes

  • js_of_ocaml compiler: Merged a flat dispatch loop for match expressions exceeding 10 shared continuations, eliminating stack overflows in Firefox/SpiderMonkey. Tunable via --set merge_node_max=N. (#2254)
  • js_of_ocaml 6.4: Merged fix for onbeforeunload: Dom.event_listener now returns bool t optdef, so returning Js._true no longer triggers a spurious browser dialog. (#2251)
  • js_of_ocaml 6.4: Merged fix for deep mutual recursion under --effects=double-translation; direct-style calls now trampoline to avoid JS stack overflow. (#2243)

Compatibility and Releases

  • js_of_ocaml 6.4: Merged breaking retyping of nullable DOM properties (dataTransfer, files, anchorNode, contentWindow, labels) to opt; callers must unwrap with Js.Opt. (#2248)
  • js_of_ocaml wasm: Open PR removes the wasm-opt --opt 1 pass, cutting wasm_of_ocaml compilation time by ~60% and preserving variable names for debugging. (#2238)
  • js_of_ocaml 6.4: Open PR aligns Dom_svg with SVG 2, adding graphicsElement/geometryElement and filter primitives; several properties become opt and getTransformToElement is removed. (#2256)
  • js_of_ocaml 6.4: Release tracking issue lists the merged PRs above plus open items targeting the next release ahead of OCaml 5.5. (#2241)

oxcaml/opam-repository

Permalink

Fixes

  • OxCaml opam-repository #48: ocaml-variants build failure in Dune projects (missing Makefile.config) resolved; issue closed 2026-05-28. Fix attributed to @Alizter. Issue

Compatibility and Releases

  • OxCaml opam-repository #51 (open): proposes updating ignore-opam.patch to match current Makefile.common-ox line numbers, required because Dune's internal patcher (ocaml/dune#14177) rejects stale hunks that GNU patch would fuzz past. PR

  • OxCaml opam-repository #51 discussion: @Alizter notes Dune does not enable fuzzing for opam-repository patches and offers to add it if maintainers prefer not to track line numbers. PR

  • OxCaml opam-repository #46 (open, updated 2026-05-28): v0.18~preview.130.100+614 is present on the dev branch; release to main is pending. Approximately 30 packages lack a release commit for that version. Issue

oxcaml/oxcaml

Permalink

Features

  • OxCaml variable tracing: adds -dvariable-availability to track which variables survive from typing to emitted debug info, classifying each loss as acceptable or a gap. #6158

  • OxCaml CU unloading: proposes runtime unloading of metaprogramming compilation units via mark/sweep over heap-shaped code blocks with back-pointers in .text and explicit code-pointer liveness at safepoints. #5960

  • OxCaml CFG merge functions: adds Cfg_merge_functions, an identical-code-folding pass behind -cfg-merge-functions that collapses equivalent function CFGs into tail-call thunks within a compilation unit. #6148

  • OxCaml idx_atomic: introduces ('a, 'b) idx_atomic, a block index for [@atomic] fields that emits atomic loads/stores and supports compare-and-swap. #6130

  • OxCaml any-kind record inference: creates sort variables for record fields of kind any in pattern matching, record creation, and functional update, accepting previously rejected programs. #6145

  • OxCaml CFG jump threading: adds a pre-register-allocation pass that folds comparisons into branch terminators and threads jumps through empty merge blocks. Reduces spills 0.26% and reloads 0.63% on the compiler. #6104

Fixes

  • OxCaml profile overhead: merged. Skips Profile.record_call when no profiling flag is active, making compilation 30–35% faster on workloads with many small functions. #6141

Compatibility and Releases

  • OxCaml C API regions: merged. Adds caml_region_begin/caml_region_end so C callbacks can establish stack-allocation regions for @ local arguments. #6142
13 repositories · no changes