Thicket thicket
ocaml
REPOS 27
W37.2026 · 7–13 Sep

All repository summaries

11 active · 16 unchanged

Back to weekly digest

ocaml-multicore/eio

Permalink

Features

  • Eio.Process.environment and Eio.Process.getenv_opt now expose the process environment as a snapshot (Env.t) and single-variable lookup, respectively. Merged in #923 by @patricoferris.

  • New Eio_unix.File module creates Eio.File and flow values from raw file descriptors, enabling pread/pseek on imported FDs. Merged in #937.

  • Eio.Path.rename is now implemented on the Windows backend using Win32 move APIs; FAT32 volumes reject rename-onto-directory. Merged in #934.

  • Windows process spawning (Eio.Process.run / spawn) is under active development in #936, layered over the pipe fix in #929. Restricts FD inheritance to the three standard handles plus an explicit list.

Fixes

  • eio_windows NT path handling, symlink resolution, and stat are corrected: paths are now passed qualified to NtCreateFile, ~follow:false no longer follows links, and stat on directories no longer fails. Merged in #932; closes #931.

  • Intermittent ETXTBSY (errno 26) from execve after io_uring writes was traced to a Linux kernel bug on ZFS, confirmed by Jens Axboe and targeted for a 7.4 kernel fix. No Eio-side workaround exists. Closed in #935.

Compatibility and Releases

  • Eio.Path.link (hard link) is requested for capability-safe OCI image extraction; the current Unix.link fallback is check-then-use and unsafe under the sandbox. Tracked in #925; queued behind Windows symlink work.

  • Anonymous pipe I/O on Windows is being reworked to run in a systhread rather than relying on non-blocking pipe semantics; cancellation support is pending an IOCP migration. Open in #929.

ocaml/dune

Permalink

Features

  • Breaking: Generated files are now always made read-only, removing the pre-2.4 language-version opt-out. Executable bits are preserved; builds behave identically with or without the shared cache. #16388

  • Breaking API: Dune_rpc_lwt.V1.Action_plugin.run now returns unit Lwt.t instead of driving the event loop or exiting the process. Callers must use Lwt_main.run and manage process lifetime. #16404

  • Action plugins now support multiple dynamic-run invocations per rule (via progn or concurrent) and honor with-accepted-exit-codes. Each invocation retains its working directory; discovered inputs invalidate the enclosing rule. #16403, #16402

  • New Action_plugin.build_deps API exposes batches of file, directory, and glob dependencies. Plugins can wait for these and use ordinary I/O without reading contents through the plugin API. #16394

Fixes

  • Action-plugin dynamic-run now forwards with-stdout-to to the subprocess, writing output to the requested target instead of Dune's terminal. #16376

  • Action-plugin dependency paths are resolved from the client's current directory rather than its launch directory, fixing reads after a chdir. #16384

  • Menhir type inference with package management and the relocatable compiler fails with Unbound module Stdlib on macOS. A fix adding an explicit stdlib dependency and path reclassification is in review. #16374

  • Melange mode now resolves .cmi, .cmt, and .cmti against the OCaml module set first, falling back to Melange artifacts, fixing regressions in mixed builds. #16339

ocaml/merlin

Permalink

Features

  • #2121 (open, panglesd & PizieDust): Reworks the enclosing/Selection Range request to select sub-expressions incrementally instead of jumping to the full parent node. Adds merlin_loc to sequence expressions and handles nested type-constraint layers.

Compatibility and Releases

  • #2124 (closed): Merlin 5.8.1 fails to build on Haiku because ocamlmerlin.c links without -lnetwork. Closed 2026-09-14; the record does not state the resolution.
  • #2050 (closed): Proposes replacing the indexer's unbounded hashtable with an LRU cache to bound memory. Closed in favour of PR #2079.

Fixes

  • #2120 (merged): Corrects merlin_loc for constrained expressions so let _ = 1 in (x : int) extends the location over both the in gap and the constraint parentheses.
  • #2123 (open): ocamlmerlin single complete-prefix reports "deprecated": false for record fields carrying [@deprecated]. Affects downstream OCaml-LSP deprecation markers.
  • #2122 (open): Go-to-definition and occurrences fail on self#method calls, returning "Locate: not in environment".
  • #1917 (open, updated): Proposes go-to-definition fixes for := and custom indexing operators, including a heuristic for single-indexing forms.

ocaml/ocaml

Permalink

Features

  • Parsetree: Pexp_hole and Pmod_hole nodes (merged). The parser now emits Pexp_hole / Pmod_hole for _ in simple-expression and module-expression positions instead of a parse error; the type checker reports the diagnostic. PPX rewriters and Merlin can now transform or inspect these positions. #15051

  • [@@deprecated_unlabelled] attribute (open proposal). Annotating a labelled argument with this attribute permits unlabelled calls while emitting a deprecation alert, enabling gradual labelling of existing stdlib functions (e.g. Atomic.compare_and_set). #15054

  • Atomic.compare_and_exchange (open, under consideration). Adds val Atomic.compare_and_exchange : 'a t -> expected:'a -> set:'a -> 'a to the standard library, returning the value found in the atomic. Label naming is still under discussion. #14912

Compatibility and Releases

  • with module type precedence change (merged, breaking). T with module type S = X -> X now parses as T with module type S = (X -> X) rather than (T with module type S = X) -> X, matching the := form. Code relying on the old grouping will fail to compile. #14978

Fixes

  • ocamlopt segfault on partial GADT match (merged). Translcore no longer uses local GADT equations introduced by a refutable pattern to infer parameter value kinds, eliminating a miscompilation that produced invalid lambda and a segfault. #15035

  • Weak.get_copy no longer copies continuations (merged). Shallow-duplicating a continuation produced two handles to the same fiber, causing a segfault on double-resume. Weak.get_copy now treats continuations like custom values and does not duplicate them. #14988

  • Runtime events: consumer no longer reports "corrupt stream" on overwrite (merged). A consumer that falls behind a fast producer of user events now reports lost events instead of a fatal Failure("Runtime_events: corrupt stream"). A producer-side fence ensures the head advance is visible before slot overwrites. Affects all 5.x releases. #15016

  • Set.{union, inter, diff}: fast path for shared structure (merged). Physical-equality shortcuts reduce complexity when sets share subsets and increase sharing in results. #15009

ocaml/ocaml-lsp

Permalink

Features

  • Whole-call completions (merged): Functions with ≥2 labelled or optional arguments now offer a secondary (call) completion that inserts a snippet with independent _ placeholders per argument. Snippet-capable clients receive one edit; others get plain text. #2199

  • Constructor application completions (merged): Constructors with payloads offer parenthesized application variants with _ slots (e.g. Pair _ _ for int * bool). Name-only entries remain and sort first. Available in expression and pattern positions. #2212

  • Go to Implementation for interface types (merged): textDocument/implementation resolves type-declaration names in .mli files to their .ml counterparts, including nested modules, functor results, includes, and aliases. Fixes #1163. #2074

  • Interactive destruct bodies (merged): destruct and destruct-line generate branch bodies as snippet placeholders, allowing tab-navigation between them. Requires workspace.workspaceEdit.snippetEditSupport; plain edits are the fallback. #2204

  • Semantic highlighting: parameters and built-in types (merged): Function parameters now emit the standard parameter token type with custom labeled/optional modifiers. Predeclared types (int, string, etc.) receive the defaultLibrary modifier; shadowed names are not marked. #1857, #1858

  • Odoc document links (open): Implements textDocument/documentLink and documentLink/resolve so {!ref} and {{:url} text} in doc comments become clickable links in editors. Cross-module and stdlib references resolve once the project is built. #2139

Fixes

  • Overlapping with type tokens (merged): Constrained names in with type equations and destructive substitutions were emitted twice (long identifier + type-declaration name). The duplicate token is no longer produced. #2206

  • Inline edit crash avoidance (merged): The Inline code action now checks applicability before constructing replacement edits, preventing a crash on deeply recovered expressions with no recognized uses. #2041

ocaml/ocaml.org

Permalink

Features

  • Package pages do not display optional dependencies (e.g. bytesrw lists several on opam but ocaml.org shows only normal, dev, reverse, and conflict deps). Opened as a proposal by @sim642. (#3768)
  • OCaml Planet scrape merged, adding the TyXML 5.0.0 release post (HTML living standard / SVG 2) among other entries. (#3766)

Compatibility and Releases

  • On 2026-09-08, rendering any doc page downloaded the package's full odoc index.js to compute a cache-busting MD5. The newly published awso package (371 MB index) caused repeated OOM kills of both server replicas, producing site-wide Varnish 503s. Interim mitigation: /p/awso/* blocked at Varnish with Retry-After: 3600. Durable fix tracked in #3767 and upstream in #193. (#3765)

Fixes

  • Open PR adds a 50 MB size ceiling on doc-backend HTTP fetches, prefers a search_index_digest field in status.json over downloading the full odoc index, and switches Sidebar_cache to Hashtbl.replace. Closes the OOM vector from #3765; not yet merged. (#3767)
  • Metaprogramming page PPX documentation link updated from a pinned 4-year-old version to the latest tag so it tracks current releases. Opened in interval; merge landed 2026-09-14 (outside interval). (#3769)
  • Dead Planet feed lthms (soap.coffee, no DNS record) disabled in planet-sources.yml; 21 archived posts continue to render. Merged 2026-09-08. (#3763)

ocaml/odoc

Permalink

Features

  • odoc/odocl file compression (#1486): When the compiler supports it, odoc and odocl files are now compressed, reducing file sizes by roughly 4–5×. Merged 2026-09-11 by @jonludlam.

  • include functor display for OxCaml (#1452): Generated docs now show that items were included via a functor. Merged 2026-09-11 by @Leonidas-from-XIV.

  • Canonical chain search fix (#1483): Resolves broken cross-references when a wrapper module omits some library modules, enabling @canonical tags in those cases. Merged 2026-09-11 by @jonludlam.

Compatibility and Releases

  • Removed id wrapper (#1479): Eliminates an unnecessary identifier indirection, reducing overall disk usage by ~30% with no measurable speed change. Merged 2026-09-07 by @jonludlam.

  • Merged word runs in internal AST (#1488): Consecutive Word/Space comment tokens are stored as a single Word string. The odoc-parser AST is unchanged; ocamlformat is unaffected. Merged 2026-09-11 by @jonludlam.

Fixes

  • OCaml 5.5 optional-argument rendering (#1489): OCaml 5.5 wraps optional arguments in a TPoly constructor that odoc previously rendered as ???. The fix unwraps them. Merged 2026-09-07 by @jonludlam.

  • Extended open support (#1482): Two related fixes for extended-open handling in generated documentation. Merged 2026-09-08 by @jonludlam.

  • Memoized docstring parsing (#1480): Repeated doc-comment texts (common with ppx_template) are parsed once and shared. On OxCaml code: −13% user CPU, −18% .odoc / −23% .odocl file size. Merged 2026-09-11 by @jonludlam.

ocaml/opam

Permalink

Features

  • #7138 (open): Adds explicit Haiku platform support to the build system.
  • #7136 (open): Upgrades the release lockfile to build opam with OCaml 5 by default on 64-bit platforms; both 4.14 and 5.x binaries ship in the archive.
  • #7140 (open): Proposes investigating landlock(7) as a sandboxing replacement for bubblewrap, potentially removing a dependency.

Fixes

  • #7131 (merged, in 2.6.0~rc1): Skips opening tar.gz repositories during install when extra-files is empty, saving ≥500 ms per package. Fixes a 2.6 performance regression.
  • #7139 (open): Makes opam switch --switch <name> show exit with an error when the named switch is not installed, instead of printing the name and exiting 0.

Compatibility and Releases

  • 2.6.0~rc1 released 2026-09-08. Binaries signed by the opam dev team; see the blog post for upgrade instructions.
  • #7130 (merged): OpamStd.Map.update now delegates to the stdlib Map.update, changing the signature and adding binding-deletion capability. Breaking for existing callers of the old three-argument form.

ocaml/opam-repository

Permalink

Features

  • x509 1.2.0 (merged): Breaking changes to Distinguished_name — equal now compares tags, new matches compares data; Certificate.hostnames restricted to SubjectAlternativeName per RFC 9525. Downstream bounds added for albatross, dns-certify, letsencrypt, tls-miou-unix. (#30712, #30714)

  • tyxml 5.0.0 (merged): Major release aligning HTML/SVG output with WHATWG and SVG 2. Breaking: hidden and contenteditable take enumerated args; URL attributes use Xml.uri; SVG doctype removed; Wrapped_functions gains four required methods. Requires OCaml ≥ 4.08, dune ≥ 3.18, ppxlib ≥ 0.36. (#30641)

  • atproto.1.0.2 (merged): New AT Protocol client library. Supports OCaml ≥ 4.14.1 < 5.4; opam install -t is offline-safe by default (live tests opt in via ATP_PUBLIC=1). Requires system libzstd. (#30707)

  • opam 2.6.0~rc1 (merged): Eight packages (opam-client, opam-core, opam-devel, opam-format, opam-installer, opam-repository, opam-solver, opam-state) for the opam 2.6 release candidate. (#30686)

  • New packages (merged): dead_code_analyzer.1.3.0, rpmfile.1.1.0, kube.0.1.3 (Kubernetes client), secret.0.1.3 (zeroized off-heap memory), cryptoverif.2.13, utcp.0.0.8 (TCP for MirageOS), binaryen.0.40.0 + libbinaryen.132.0.0, gendarme.0.6.0 (9 packages, data marshalling). (#30720, #30709, #30662, #30672, #30682, #30675, #30710)

Fixes

  • metapp.0.4.3 / 0.4.4: Download URLs returned 404; replaced with opam-source-archives links. (#30704, #30669)

Compatibility and Releases

  • Compiler support timeline (opened, ongoing): Proposal to raise the opam-repository lower bound to 4.13 after CentOS 9 EOL (~2027), then 4.14 after Debian 12 EOL (2028), holding 4.14 for several years before considering 5.x. Labeled "policy discussion." (#30671)

  • Package archival (opened, ongoing): Proposal to archive opam packages whose upstream GitHub repositories are marked archived; ~13 candidates identified. A related PR to archive lwt alpha/beta packages is pending the archive-repo counterpart. (#30550, #30711)

ocsigen/js_of_ocaml

Permalink

Features

  • Introcaml runtime introspection in JS (open, by hhugo): Block allocations and tuple constants carry descriptor indices; Introspect.Print on options, lists, records, variants, and closures produces output matching the native binary. Gated behind --enable/--disable introspection, enabled by default only on Introcaml-built compilers. #2430

  • Base64 encoding for large binary string constants (open, by hhugo): Constants above a size threshold are emitted as base64 literals decoded once at init, reducing a 3 MB binary payload from 8.3 MB to ~7 MB of generated JS. Short strings remain escaped. #2432

  • Wasm toplevel function splitting (open, by vouillon): A new Split_toplevel pass outlines runs of instructions at liveness boundaries into separate functions, controlled by split-toplevel and toplevel_split_size. Addresses Binaryen/TurboFan failures on large programs. #2423

Fixes

  • Safari 17 static class-field misparse (merged, by habakan): The printer now uses a non-breaking space after static in all four class-element cases, preventing JavaScriptCore 17 from reading a line break as a field separator. Fixes Int64.of_string crashes on Safari 17.x. #2421

  • ASI over-insertion after async/using identifiers (open, by hhugo): The parser previously inserted a semicolon after any line break following these words, breaking x = async\n+ 1 and var async\n= 1. Semicolons are now inserted only before the restricted continuations the spec requires. #2422

  • Single linear memory for Wasm (merged, by vouillon): The four previously separate linear memories (scratch buffer, zstd, blake2, wasi libc) now share one, resolving Safari's lack of multi-memory module support. #2405

Compatibility and Releases

  • Introcaml build support (merged, by let-def, hhugo): js_of_ocaml now builds on the 5.5.0+introcaml opam switch; new Config.oxcaml/Config.introspect flags gate stubs, and unmarshalers skip Introcaml's reserved-bits prefix. Plain 5.5.0 output is unchanged. #2409

  • Toplevel build with tyxml 5 (merged, by hhugo): tyxml 5.0.0's new s element shadowed a string argument in the colorize helpers, breaking type-checking. Arguments renamed to avoid the capture. #2425

oxcaml/oxcaml

Permalink

Features

  • LTO prototype opened by @mirivella. The Reaper solver assumes a closed world; calling-convention and slot-offset decisions move to solve time; solutions serialise to .ltosol files. Draft, not ready for review. #7156

  • Static functor transl, fracture and eval merged. Adds Ltemplate for functors whose arguments exist at both compile-time and runtime; single-argument functors only. Partial application and overapplication deferred. #6846

  • Layout-polymorphic records and variants opened by @joe-kerrigan. finalize_instantiated_shape translates generalised sort variables to splice variables evaluated in Slambda; mixed-block checks deferred past Slambda. Recursive definitions still unsupported. #7152

  • Box kinds opened by @rtjoa. Adds the k box kind constructor: k box < scannable always, with layout-specific implied axes (e.g. float64 box < value). Not yet linked to types; no existing types carry this kind. #6956

  • Mode polymorphism parsing opened by @ainageorges. Argument/result annotations accept mode variables ('m) and bounds ([< 'm], [> 'm]); curry-mode constraints generated implicitly. Grammar enforces upper-then-lower bound order and meet/join separators. #6829

  • Keep functions specialisable after lambda lifting opened by @mshinwell. The reaper emits a "specialisation site" (synthetic value slots, no runtime allocation) at the original binding; the simplifier re-specialises lifted code when the enclosing function is inlined, restoring [@zero_alloc] guarantees lost by lifting. #7109

Fixes

  • n-way join performance merged by @bclement-ocp, closing #6586. Projects linearly-occurring existential variables and imports physically-equal types without canonicalisation; join time halved on the compiler build (~1% total compile-time reduction). #6681

  • -Oclassic Cmm crash on Int64 operations fixed. The peephole engine's add_const rule produced or where + was expected for Int64.sub of a shifted value. All optimisations now use the preferred input form consistently. Merged; found via oxfuzzer. #7111 / #7102

16 repositories · no changes