Thicket thicket
ocaml
REPOS 27
W31.2026 · 27 Jul – 2 Aug

All repository summaries

13 active · 14 unchanged

Back to weekly digest

ocaml-multicore/eio

Permalink

Features

  • #916 (open): Implements Eio.Path.native as a Pi backend with Windows path parsing. Splits off from #908; incorporates approach from #738.
  • #911 (open, draft): Adds mknod support to eio_posix for creating device nodes beyond FIFOs. Introduces Eio.File.Dev.t; tested on macOS and Linux.
  • #912 (open): Eio.File.sync cannot target a directory. A path-based sync in Fs.Pi.DIR is proposed, with fdatasync also under consideration.

Compatibility

  • #909 / #917 (open): Eio 1.4 fails to build on 32-bit (i386) because MSG_CMSG_CLOEXEC exceeds OCaml's int range. PR #917 reads the constant from C instead.

Fixes

  • #907 (merged): Fixes Eio.Path.mkdirs failing on relative paths whose first component doesn't exist. fstatat rejected empty paths on eio_posix; closes #906.
  • #910 (merged): Increases the getdents stack buffer to 64 KB. Directory traversal on ~1M-file directories is ~30% faster due to fewer syscalls.
  • #915 (merged): Optimises POSIX path split to allocate less by scanning. Part of the path-backend refactoring from #908.
  • #914 (open): Eio.Private.Trace allocates 23 words per event when the runtime ring is active. A zero-allocation write path is being explored upstream in OCaml.

ocaml-multicore/ocaml-uring

Permalink

Fixes

  • #161 (open, glondu): tests/main.md pipe-read/write tests hang on Debian build machines. A proposed patch guards consume results so the test tolerates I/O failures instead of asserting a fixed return value.

ocaml/dune

Permalink

Features

  • dune shell TARGET opens an interactive shell at a prepared rule action boundary, exposing the expanded action, environment, and sandbox for debugging. Open PR by Alizter. #15597

  • (instrumentation (backend XXX) (libraries ...)) adds conditional library dependencies active only when the instrumentation backend is enabled. Gated on Dune language 3.25. Open PR by nojb. #15622

  • @pkg-source alias fetches all locked package sources without building them, enabling offline builds after a network-enabled fetch phase. Open PR by Alizter. #15629

  • dune describe external-lib-deps --include-empty now lists libraries with no dependencies, making the output self-contained for tooling consumers. Merged by NatKarmios. #15585

Fixes

  • RPC registry polling now rescans the directory when its mtime changes, fixing a race where clients (e.g. ocaml-lsp) never discovered a newly registered Dune instance. Merged by rgrinberg. #15634

  • Anonymous actions attached to multiple aliases no longer create inter-alias dependencies; each alias now triggers only its own actions. Merged by NatKarmios. #15581

  • dune build with a menhir stanza fails with Unbound module Stdlib when the relocatable compiler is selected by dune pkg lock. Open regression report against 3.24. #15642

Compatibility and Releases

  • dune pkg enabled now queries a running Dune RPC server, observing transient --pkg enabled/--pkg disabled settings without acquiring the build lock. Merged by Alizter. #15589

ocaml/merlin

Permalink

Features

  • OCaml 5.6+trunk support merged into the 506 branch (#2087, by @xvw). Preview release v5.8.1-506~preview published 2026-07-31.

Compatibility and Releases

  • v5.8.1-505 released 2026-07-31 (release).
  • v5.8.1-506~preview released 2026-07-31 with experimental OCaml 5.6 support (release).

Fixes

  • document no longer returns neighboring entries' doc comments for variant constructors and record fields (#2092, by @liam923, merged).
  • ocaml-index now uses the original source file digest for staleness checks when ppx preprocessing is active (#2110, by @liam923, merged).
  • Load-path staleness across multiple typer states (visible with dune watch mode) reproduced and fixed (#2109, by @rgrinberg, merged).
  • outline selection range can fall outside the item range for compiler-generated eta-expansion bindings; PR proposes a containment fallback (#2111, by @MavenRain, open).
  • destruct raises an unhandled Assert_failure on object method syntax x with|0 (#2112, open).

ocaml/ocaml

Permalink

Features

  • Sys.filepath_exists (PR #14974, open) returns true iff stat(2) succeeds, false on ENOENT/ENOTDIR, raises Sys_error otherwise. Addresses #12393.
  • Dynarray.append_iarray and Pqueue.of_iarray added (PR #14909, merged). Avoids copying iarrays through regular arrays.
  • Native Atomic.exchange and Atomic.compare_and_set emitted as inline assembly on amd64, arm64, riscv, power, s390x (PR #14980, open). Single-domain exchange ~2.6× faster than the C-call path.

Compatibility and Releases

  • module type T = T with module type T = T -> T will parse as T with module type T = (T -> T) (PR #14978, open). Breaking for code relying on the previous grouping.
  • RFC #14967 proposes deterministic Hashtbl iteration via insertion-order tracking, enabling random-seeded tables by default. Implementation in PR #14956 (open) adds ~42% memory per binding.

Fixes

  • Type-checking performance regression from #11648 resolved. Merged PRs #14913, #14947, #14950, #14952 reduce compilation of affected files from ~10 min to ~170 ms.
  • Pattern-matching compiler overflow guard failed on abs min_int = min_int. Fixed in PR #14890 (merged).
  • ocamlc -c crashes with Fatal error: exception Ctype.Unify(_) on certain locally-abstract module patterns (issue #14842, open). Regression since 5.5.0-beta1; no fix merged yet.

ocaml/ocaml-lsp

Permalink

Features

  • LSP 3.18 codeAction/resolve for inline edits (merged). Clients advertising resolveSupport now receive inline code-action edits lazily via codeAction/resolve instead of eagerly in the initial response. Reduces round-trip payload for unused-binding and other inline actions. #1808

  • Destruct-line on inline and whole-match expressions (merged). The destruct-line code action now recognises match expressions embedded in larger lines and accepts ranges covering the entire match, so the action is available at the match token where the diagnostic is reported. Fixes #1595. #1829

Compatibility and Releases

  • 1.28.0-506~preview released 2026-07-31. Bundles the LSP 3.18 metamodel update, operator semantic highlighting, Dune trace notifications, the open-dune code action, and the fixes listed above. #release

  • Dune RPC polling kept responsive (merged). Connected Dune instance runners are now scheduled in the active fiber pool so the registry poll loop continues observing workspace changes after the first connection. Previously the poll loop stopped after the first Dune connection, leaving stale diagnostics. #1919

Fixes

  • Function-parameter inlay hints enabled without client configuration (merged). Config_data.default now sets hint_function_params = true, matching the [@default true] used when an inlayHints object is deserialized. Clients that never send workspace/didChangeConfiguration now see parameter hints. Fixes #1371. #2097

  • Missing dune binary reported as a diagnostic (merged). A missing project build-system executable no longer aborts didOpen and discards the document. The server reports the failure as a diagnostic and keeps the document open with fallback configuration, so hover and other features remain available. Fixes #1417. #1814

  • Completion replaces the full identifier suffix (merged). Selecting is_prefix from String.is_pr|word now replaces the entire is_prword token instead of leaving the trailing word behind. Fixes #838. #1964

  • Infix operator rename excludes surrounding parentheses (merged). prepareRename and rename edits for symbolic operators such as (^*$) now target only the operator token, so clients prefill the bare name and edits preserve the surrounding syntax. Fixes #1190. #1966

  • FreeBSD build: include <sys/mount.h> for statfs (merged). The vendored libev now uses the correct header on FreeBSD, resolving the sys/statfs.h: No such file or directory compilation failure. Fixes #1069. #2070

ocaml/ocaml.org

Permalink

Features

  • Merged: ocaml.org now uses the new dill docs server, replacing the previous sage server. Documentation status page links are added per package; old reporting links are removed. (#3716, by jonludlam)

Fixes

  • A revert of the dill switch (#3731, by cuihtlauac) was opened 2026-07-31 after dill omitted README, CHANGES, and LICENSE from package Overview pages. It was closed unmerged 2026-08-01 once dill restored those pages.

Compatibility and Releases

  • Merged: Library team governance documentation updated. (#3725, by nojb)
  • Merged: Reynir added to the security team; affiliation text on the security page clarified. (#3728, #3729, by hannesm)

ocaml/odoc

Permalink

Fixes

  • #1468 (open, by MavenRain): Constructor and record-field references no longer splice the type name into rendered text; {!Bla.Alpha} displays as Bla.Alpha instead of Bla.ha.Alpha. Link anchors are unchanged.

  • #1465 (open, by klakplok): Source-occurrence collection now skips subtrees marked [@merlin.hide], eliminating spurious cross-reference links on ppx-generated code in rendered source pages.

Compatibility and Releases

  • #1470 (open, by kit-ty-kate): odoc is not compatible with OCaml 5.6 (trunk). All required dependencies are available via opam-alpha-repository.

  • #1469 (open, by jonludlam): OxCaml minus39 compatibility fixes; module types with with kind expressions now return an option and are filtered out.

ocaml/opam

Permalink

Features

Compatibility and Releases

Fixes

ocaml/opam-repository

Permalink

Features

  • Introcaml 5.5.0 (merged): Alpha preview adding Introspect.Print to the standard library for polymorphic value printing in user programs. Works in bytecode and native; does not work on 32-bit or with Flambda. #30379

  • jsonkit 1.0.0 (merged, new): Compositional JSON encode/decode PPX for OCaml and Melange. #30377

  • hedgehog 0.1 (merged, new): Property-based testing library with integrated shrinking. #30369

Fixes

  • mirage-crypto 2.2.0 (merged): Addresses OSEC-2026-12 (AEAD decrypt-before-tag-validation) and OSEC-2026-13 (point-at-infinity as ECDSA key). Adds ECDSA signing blinding and moves entropy test to startup. #30344

  • merlin 5.8.1-505 (merged): Fixes occurrences staleness, locate/document on open paths in .mli files, and load_path staleness in watch mode. #30380

Compatibility and Releases

  • opam 2.6.0~alpha1 (merged): Eight packages (client, core, solver, state, format, repository, installer, devel) published as alpha. #30284

  • codept 0.13.0 (merged, breaking): Adds OCaml 5.5 support; renames two library modules to avoid stdlib collisions. An upper bound was added to mlfront to prevent revdep breakage. #30347

  • AI-generated responses policy (open): Proposes that all post-submission discussion on new-package PRs be conducted by a human, and that bot-submitted PRs tag a human contact. #30367

ocsigen/js_of_ocaml

Permalink

Compatibility

  • #2405 (open, updated 2026-07-29): Consolidates the four separate linear memories (caml_buffer scratch, zstd-impl.wasm, blake2-impl.wasm, WASI libc) into a single shared memory. Safari rejects WASM modules declaring multiple memories; this change makes such output loadable in Safari. Author: vouillon.

oxcaml/opam-repository

Permalink

Fixes

  • utop 2.16.0+ox1 failed to compile against OxCaml 5.2.0+ox due to a type mismatch (string list vs Clflags.visible_include list) in uTop_compat.ml. Fixed by #58 (dra27-js), merged 2026-07-31; closes issue #56.

Compatibility and Releases

  • The OxCaml 5.2.0+ox opam switch now installs utop successfully after the above fix. No new OxCaml release or experimental compiler feature was introduced in this interval.

oxcaml/oxcaml

Permalink

Features

  • First-class modalities: t @@ m as a writable type with automatic introduction and elimination rules. Reduces Stdlib.Modes wrapper boilerplate. #6678 (open, draft)
  • AVX-512 EVEX encoding merged; ZMM/mask register backend and 512-bit array support in progress. #6294 (merged), #6339, #6340 (open)
  • Variant subtype declarations (type t :> u) behind -extension subtypes: zero-cost coercion via inherited runtime tags. #6655 (open)
  • Atomic block indices (idx_atomic): read and write [@atomic] record fields via Idx_atomic.get/set. #6667 (open)
  • BFS meet strategy for flambda2 type unification, selectable via -X flambda2-meet-strategy=bfs. #6191 (merged)

Fixes

  • Mode variable subsumption: subject-mode variables become rigid during moregen, preventing acceptance of less polymorphic implementations. #6279 (open)
  • Forbid [%atomic.loc] and mutable indices to polymorphic record fields, which previously permitted Obj.magic-equivalent unsoundness. #6688 (open)

Compatibility and Releases

  • LTO/Reaper: new -reaper-rebuild and -reaper-solve entry points; CMR file format for serialising reaper data. #6632, #6638 (merged)
14 repositories · no changes