Thicket thicket
ocaml
REPOS 27
W47.2026 · 16–22 Nov

All repository summaries

11 active · 11 unchanged

Back to weekly digest

ocaml-multicore/eio

Permalink

Features

  • Eio Windows IOCP (draft): PR #996 rewrites the Windows backend on IO completion ports, with benchmarks showing 30–82% throughput gains. It is a draft pending the IOCP bindings release.

Compatibility

  • Eio Windows sockets: open issues #993, #994 and #988 report hangs and wrong errors on connect, shutdown and UDP. Maintainers say the IOCP rewrite addresses most.
  • Eio macOS sync: open issue #985 notes File.sync uses fsync, which hands data to the drive but does not flush its cache on macOS.

Fixes

  • Eio eio_posix connect: merged fix #981 stops treating EAGAIN as a connection in progress, so a full Unix-domain backlog now fails instead of returning an unconnected socket.
  • Eio Windows device paths: merged fix #995 resolves DOS device names such as NUL in unrestricted paths, restoring Filename.null and Forester 6.0.
  • Eio Windows command lines: merged fix #983 reports an oversized command line as "argument list too long" instead of letting Windows silently truncate it.
  • Eio getnameinfo: merged fix #980 wraps the Not_found raised by Unix.getnameinfo in an Eio.Io exception, so handlers for Eio.Io catch it.

Releases

  • Eio v1.7: released 2026-11-16. Adds Eio.Fiber.List.partition_map, Eio.Switch.remove_hook, Eio_unix.System_info, Eio_unix.set_signal, and Path.sync_dir.

ocaml-multicore/ocaml-uring

Permalink

Features

  • ocaml-uring Msghdr.t reuse: a message header created with Msghdr.create_recv can now be passed to recv_msg repeatedly, with each receive overwriting the prior data, file descriptors and address. See ocaml-uring #175.

  • API cleanup: the deprecated Uring.peek and Msghdr.create functions are removed, and the sender address is now stored inside the message header rather than a separate allocation. See #168.

Compatibility

  • Build flags: the bundled liburing is now compiled with the compiler's standard flags (adding -fPIC and -Wall), resolving a shared-object relocation error. See #178 and #177.

Proposals

  • I/O length clamping: an open change would clamp I/O lengths to the 32-bit field the submission queue entry can hold, and reject negative lengths. See #171.

Fixes

  • Uring.wait signal handling: a signal arriving after a submission now interrupts wait and returns None, instead of being swallowed and then triggering an assertion. See #179.

  • statx buffer: the statx result buffer is now zero-initialised, so Uring.Statx.size reports 0 before a query rather than stale stack data. See #180.

  • Path handling: paths containing NUL bytes are rejected instead of silently truncated, and the path length is treated as an unsigned size to avoid misbehaviour with very long paths. See #172 and #176.

  • Buffer count limit: submitting more than iov_max buffers now raises Invalid_argument before anything is queued. See #173.

ocaml-multicore/saturn

Permalink

Saturn queue correctness: Issue #190 reports that is_full can return false on a full queue. A maintainer confirmed the diagnosis on 17 Nov and suggested a fix via the already-linearizable length function; the issue remains open.

ocaml/RFCs

Permalink

Features

  • OCaml RFCs: the structured diagnostics RFC was merged on 19 Nov, formalising a versioning and backward-compatibility policy for machine-readable compiler output (errors, warnings, debug dumps, -config, toplevel) in S-expression or JSON. The compiler-side implementation was already merged separately; this RFC pins the update rules tools can rely on.

  • Versioning policy: minor diagnostic versions may only refine schemas into subtypes (add record fields, expand constructor arguments); major versions may delete deprecated fields or add new variant constructors. At most one diagnostic version change per compiler minor release, with a metadata field carrying the version and a valid flag so consumers can detect schema drift at runtime.

  • Tool integration: the RFC lists five requirements drawn from dune and Merlin developers: output must be redirectable to separate files, parsable without ad-hoc lexers, version-pinnable, format-agnostic, and derivable from compiler-libs so external tools can generate their own schemas.

ocaml/merlin

Permalink

Fixes

Merlin locate fix (proposed): A pull request corrects go-to-definition for punned record fields such as { M.x }, resolving the bare field name instead of the module path. #2163

Ongoing

Merlin Vim GrowInside bugs: A maintainer responded to a report of four selection bugs in the Vim plugin's GrowInside command, suggesting the reporter test with Merlin 5.9. #2159

ocaml/ocaml-lsp

Permalink

Fixes

Open pull requests in OCaml LSP target code-action correctness and server lifecycle:

  • Extract local in conditionals: #2241 keeps the new binding inside the nearest if/else branch rather than hoisting it before the conditional.
  • Extract function: #2242 wraps the extracted call in parentheses so the result compiles as a single expression.
  • Combine cases: #2240 preserves literal | in right-hand sides and splits only at the case arrow, avoiding corruption of strings and function bodies.
  • Mark as unused: #2248 rewrites ~x to ~x:_x for labelled parameters so call sites like f ~x:1 still compile.
  • Document edits with U+FEFF: #2244 treats a mid-document zero-width no-break space as a regular character, keeping the server's text in sync with the editor.
  • Server early exit: #2252 allows the server to shut down cleanly when ocamlformat-rpc is absent and the editor exits before initialisation.
  • Let-syntax highlighting: #2238 reports that custom let-syntax loses semantic highlighting after upgrading to 1.28.1; disabling semantic highlighting in VS Code works around it.

Compatibility

  • 1.26.x with Dune 3.25: #2237 backports fixes so the 1.26 line (OCaml 5.4) builds with stdune 3.25.

ocaml/odoc

Permalink

Features

  • Odoc strikethrough markup: Documentation comments now accept {~text} to render struck-through text. Merged in #1515, closing issue #1498.

  • Strikethrough rendering: HTML emits <s>, Markdown emits ~~text~~, and LaTeX emits \sout (requires the ulem package). Man pages render the text plainly, as groff has no strikethrough macro.

  • Block quotes: A draft adds syntax for block quotes in documentation comments. Open in #1525.

  • Kind abbreviations: A proposal adds rendering and links for OxCaml kind abbreviations, including a {!kind:xyz} reference form. Open in #1467.

Fixes

  • Odoc import resolution: odoc compile now resolves an import only to a unit whose digest matches the recorded one, avoiding links to a same-named unit from a different library. Merged in #1502.

  • OxCaml unboxed records: Dropped the always-false mutable_ flag from unboxed record fields, since the compiler rejects mutable unboxed labels. Merged in #1522.

Compatibility

  • OxCaml 5.4.0-ox9: A draft update targets the newly released OxCaml 5.4.0+ox9 and removes the 5.2.0 compatibility check. Open in #1526 and #1520.

ocaml/opam

Permalink

Features

  • opam repository-scoped install: a proposal to allow opam install foo@repo so a package can be pulled from a named repository without raising its priority or pinning dependencies (#7246).

Compatibility

  • opam 2.6 backport: the --cli=2.6 fix is being backported to the 2.6 branch for the upcoming 2.6.2 release (#7242).

Fixes

  • opam --cli=2.6: opam 2.6.0 and 2.6.1 rejected --cli=2.6 even though --help listed it as the default; the supported-versions list now includes 2.6 (#7229).
  • opam documentation links: dead links in the manual, FAQ, and solver pages are updated to working URLs (#7236).
  • opam builtin-0install reinstall: a fix is proposed to add -changed to the fixup criteria so repeated opam reinstall runs produce the same solution (#7241, #7240).
  • opam reinstall from empty directory: a bug is reported where reinstalling a non-pinned package with a remove: field can build from an empty directory, causing the install to fail (#7250).

ocaml/opam-repository

Permalink

Features

  • Eio 1.7: adds Windows process spawning, symlink support, and Eio_unix.System_info. Breaking: import_socket_stream no longer works on files or pipes. (Eio)
  • Eio test helpers: new packages eio-chaos, eio-fs, and eio-net (0.1.0) provide in-memory filesystems, networks, and fault injection for testing Eio programs. (eio-chaos)
  • New packages: brr 0.1.0 (browser toolkit), obook 1.0.0 (order book), querty 0.1.0 (query build system), owl-rllib 0.1 (reinforcement learning), and ppx_devtools 0.1 (expect tests) were added. (brr, obook, querty, owl-rllib, ppx_devtools)

Compatibility

  • Index 1.7.0: requires OCaml 5.0 or later. Statistics are now recorded per domain, and Platform.S requires new Progress and Fmt_tty modules. (Index)
  • Lwt 6.1.3 and 5.10.2: fix a crash in Lwt.cancel and a signal-handler errno overwrite. 5.10.2 backports these fixes to the 5.10 line. (Lwt)
  • Frama-C 34.0~beta: now requires OCaml 5.2.0 or later. Adds partial GCC mode attribute support and preliminary Windows support. (opam-repository)

Fixes

  • Build fixes: conf-bison and conf-flex now match the correct os-family values, and jst-config 0.14.1-1/0.15.1-1 fix a GCC 14 gettid link error. (opam-repository)
  • opam-review: a new CI workflow posts lint and policy results as a comment on each pull request, giving submitters faster feedback. (opam-repository)

ocsigen/js_of_ocaml

Permalink

Features

Js_of_ocaml: Binaryen's wasm-opt is now optional for wasm_of_ocaml. Without it, the compiler emits a missing-wasm-opt warning and uses its own optimization passes instead. (#2571)

Js_of_ocaml: float formatting is up to 16× faster for integers and 5× faster for random values; the Wasm runtime parses short decimal floats without calling JavaScript. (#2631)

Js_of_ocaml: Int64.to_string of a 19-digit value drops from about 22 µs to 435 ns; Int64.div and Int64.of_string are also much faster. (#2640)

Js_of_ocaml: Random.float and Random.int are about 5× faster in the JS runtime, with output identical to native. (#2630)

Js_of_ocaml: the JS compiler now uses OCaml 5.6 bytecode hints to access bigarrays of known kind directly and compare int64 values with dedicated primitives. (#2628)

Fixes

Js_of_ocaml: Float.erf and Float.erfc now use a port of fdlibm's implementation, reducing error from up to 1e-7 to under 3 ulps. (#2635)

Js_of_ocaml: fixes double rounding in Float.fma, float32 operations, and Float32.of_string, which could produce a wrong last bit. (#2632)

Js_of_ocaml: js_of_ocaml-toplevel now declares a dependency on js_of_ocaml-ppx, so worker_lwt_client is no longer silently skipped when the ppx is not installed first. (#2627)

oxcaml/opam-repository

Permalink

Compatibility

OxCaml installation: an open issue reports that opam install oxcaml-compiler fails on systems without rsync installed. The reporter suggests documenting this dependency in the README; the issue remains open with no resolution yet.

Fixes

OxCaml CI on Arch Linux: a merged pull request switches the test runner from pacman -Sy to pacman -Syu, preventing partial package upgrades that could break the build environment. This affects only the project's automated tests, not end-user installations.

11 repositories · no changes