Thicket thicket
ocaml
REPOS 27
W42.2026 · 12–18 Oct

All repository summaries

13 active · 14 unchanged

Back to weekly digest

ocaml-multicore/eio

Permalink

Features

  • Eio_unix.set_signal (merged, #956): Installs signal handlers that wake the scheduler via a pipe, fixing a race where signals arriving just before poll(2) were delayed until the next timer. Closes #732 and #946; supersedes #948.

  • Flow.Pi.simple_copy (merged, #954): Uses Read_source_buffer when the source supports it, avoiding an intermediate buffer allocation. New Eio_mock.Flow.limit_reads and Eio_mock.Flow.trace_reads replace the removed set_copy_method.

Fixes

  • eio_posix wake-up pipe (merged, #957): Sched.clear_event_fd, Sched.wakeup, and Signal_fd.ack now retry on EINTR. Prevents crashes in long-running macOS servers where a concurrent pipe writer and a signal interrupt a read.

  • opam install -t eio_main (merged, #955): Chown tests are skipped when the opam sandbox blocks ownership changes, fixing a build failure.

Compatibility

  • Socket I/O (merged, #951): eio_posix now always uses recvmsg/sendmsg with MSG_DONTWAIT. Eio_unix.Net.import_socket_stream on files or pipes now raises Socket operation on non-socket rather than silently working.

Proposals

  • Executor_pool resilience (open, #959): The pool continues when some worker domains fail to start (e.g. ENOMEM from RLIMIT_MEMLOCK in containers) instead of killing the whole program. A second optional commit drops the per-domain io_uring fixed buffer, cutting memlock cost ~30×.

  • io_uring in containers (open, #958): Documents that Eio.Domain_manager domains have no io_uring fallback; ENOMEM under Docker's 8 MiB RLIMIT_MEMLOCK kills the process. Affects Semgrep CI and similar multi-process workloads.

ocaml-multicore/saturn

Permalink

Fixes

  • Htbl.length / Skiplist.length non-linearizability (open, by nobrakal): the Size snapshot can miss a pending forward, yielding sizes outside the valid range (e.g. 4611686018427387903). No fix merged.

  • Bounded_queue.is_full non-linearizability (open, by nobrakal): a two-step push leaves the tail pointer stale, so is_full reads a cached capacity and returns false on a full queue. No fix merged.

  • Both interleavings were proven non-linearizable in Rocq via a research prototype; the bugs were identified with Claude Opus 5.5. This links formal verification tooling to concrete defects in Saturn's concurrent data structures.

ocaml/dune

Permalink

Features

  • New (job_slots ...) rule lets a build declare how many scheduler slots it consumes, optionally computed by a program. The value is exposed via an environment variable for use by polyglot sub-builds (e.g. Cargo). Merged in #16475.

  • Dune 3.26 adds melange.flags for library and env stanzas, deprecating melange.compile_flags. melange.emit retains compile_flags. Requires (lang dune 3.26). Merged in #16573.

Fixes

  • A (select) in one stanza no longer causes "excluded module doesn't exist" errors in a sibling stanza's (modules :standard \ ...). Fixes a 3.22 regression. Merged in #16639, closing #14085.

  • Rocq plugin-layout dependency sharing eliminates a 3.25.0-RC build-time regression (median 33.8 s → 11.5 s on the Skylabs workspace). Merged in #16622.

  • dune build proceeds without an RPC server when socket creation fails (e.g. under sandbox restrictions). --passive-watch-mode still requires RPC. Merged in #16597.

  • Merlin configuration loading now persists compact per-module records and builds filename indexes at load time, reducing repeated lookups. Merged in #16641 and #16642.

  • dune pkg lock reports "could not fetch revision … from …" instead of "revision not found" when a git fetch fails due to network issues. Merged in #16623, closing #16466.

  • dune runtest now prints the signal (e.g. SEGV) alongside captured test output in normal and quiet display modes. Merged in #16578, closing #16575.

ocaml/merlin

Permalink

Features

  • v5.9: destruct command now handles let-binding patterns. v5.9
  • v5.9: enclosing command returns substantially improved ranges. v5.9
  • v5.9: New PPX_DEPS field in Merlin configuration advertises PPX dependencies. v5.9
  • v5.9: Outline output no longer includes ghost bindings. v5.9

Compatibility and Releases

  • v5.9 released 2026-10-12. The binary now reads C library flags from ocamlc -config, fixing the Haiku build. v5.9

Fixes

  • v5.9: Cursor position detection corrected for type-constrained expressions. v5.9
  • v5.9: Parsetree cache no longer overshares entries across sessions. v5.9
  • PR #2138 (open, not merged): Diagnostics sharing the same source range are sorted by severity before deduplication, preventing distinct errors from being silently dropped.

ocaml/ocaml

Permalink

Features

  • A proposed -strict flag for ocamldep makes it exit non-zero on errors (missing file, parse error) and suppress output. Fixes #15132. (#15167, open)

Compatibility and Releases

  • OCaml 5.6 trunk exhibits a severe compilation slowdown (30+ min) on large classes with heavy ppxlib use, traced to variance checking. PR #15172 reduces the case from ~12 min to ~55 s. (#15163, open)

Fixes

  • Merged: Atomic.exchange and Atomic.compare_and_set now emit native instructions (xchg, cmpxchg, amoswap, etc.) for immediate values on all five backends. Single-domain exchange drops from 1.36 s to 0.51 s on amd64. (#14980)
  • Merged: the bytecode compiler caches getcwd once per source file instead of per debug event. On macOS this cuts system time by roughly 80 % for large bytecode builds. (#15140)
  • ocamlopt miscompiles asr 63 and lsr 63 when the result is immediately untagged (e.g. via Int64.of_int), producing wrong values. The bug dates to 1999; no fix PR is open yet. (#15157, open)
  • A soundness bug in variance composition lets a bivariant parameter inside an invariant GADT parameter escape invariance, enabling Obj.magic-equivalent unsoundness. PR #15165 proposes a stricter check. (#15142, open)
  • A race between Gc.finalise_last and the minor GC can cause segfaults or heap corruption when a domain finalises a young value from another domain. PR #15153 promotes cross-domain values before the barrier. (#15152, open)
  • Merged: Seq.ints_in_range no longer overflows for ranges ending at max_int. Cherry-picked to 5.6. (#15173)

ocaml/ocaml-lsp

Permalink

Features

  • Interactive completions with snippet edit slots for construct, destruct, and whole-call (multi-argument) items. Requires client snippet support. (#2212, #2204, #2199, #2198)
  • ocp-indent supported as an alternative formatter for document and range formatting; textDocument/onTypeFormatting available via the ocp-indent-rpc helper. (#2148, #1986)
  • textDocument/implementation now resolves type declarations in interface files, including nested modules, functor results, includes, and aliases. (#2074)
  • Semantic highlighting distinguishes operators from functions, classifies parameters and labels, and separates built-in from user-defined types. (#1831, #1857, #1858)
  • Dune RPC, build progress, and Merlin configuration activity are reported through LSP trace notifications. A code action opens the closest Dune file. (#1899, #1817)
  • Topiary formatter integration is under review; range formatting is not yet supported by Topiary, so the whole document is reformatted. (#2226, @toastal)

Fixes

  • Documentation corrected: the getDocumentation capability is handleGetDocumentation, not handleDocumentation; several typos in custom-request specs also fixed. Merged 2026-10-12. (#2229, @toyeshhm)

Compatibility and Releases

  • 1.28.0 released 2026-10-12. Includes all features and fixes above; FreeBSD build fixed (statfs header path). (Release)

ocaml/ocaml.org

Permalink

Features

  • [Proposed] Display per-package build status from check.ci.ocaml.org on /p/<package>, the GraphQL API, and the MCP server via a live cached query (~10 KB, ~0.1 s) rather than a batch scrape. Revives #42 with a lighter design. (#3847)

  • [Proposed] Render opt-in tutorial OCaml code blocks as editable, re-evaluatable in-browser cells using the art-w/x-ocaml WebComponent, with state chaining across cells. Suggested path: ship an "Open in Playground" link first, then upgrade to inline cells. (#3849)

  • [Proposed] Audit and unskip $MDX skip markers in already-allow-listed tutorial files so dune runtest actually verifies the code; add a tripwire flagging files whose unskipped block count drops to zero. (#3848)

Fixes

  • [Merged] Corrected six broken or mis-anchored internal links across tutorial pages and the install page (e.g. /docs/up-and-ready → /docs/installing-ocaml, relative → absolute module links). By @SatvikMishra08. (#3842)

  • [Open] Revert the mistaken "type variable" → "type parameter" substitution from #3793 in three tutorials and correct DOCUMENTATION_WRITING.md to distinguish the two terms. By @cuihtlauac, with review from @Octachron. (#3803)

  • [Opened] Document the package metadata model in HACKING.md: the server parses a local opam-repository clone (no switch, no compilation) and caches computed state to package.state. Merged 2026-10-20, after this interval. (#3846)

ocaml/odoc

Permalink

Features

  • [@atomic] annotations on mutable record fields are now parsed from .cmi/.cmti and displayed in generated documentation. Requires OCaml ≥ 5.4. Merged by @ElectreAAS in #1496.

  • {!modules: ...} references now accept full paths of the form /library/ModuleName, not just bare module names. Open in #1503.

  • OxCaml kind abbreviations gain a dedicated namespace with rendering and cross-linking support. Open in #1467 by @art-w.

  • OxCaml parameterized libraries are integrated: odoc records whether a library is a parameter, is parameterized, or implements a parameter, and renders Lib[Param:Impl] instance paths with individual links. Open in #1464 by @art-w.

  • A tracking issue for extended markup (quotes, strikethrough, definition lists, <details>, footnotes) is open in #1497. Each extension is intended to ship independently.

Fixes

  • Multi-line {!link ...} markup is reformatted to a single line in output, resolving #865. Merged in #1439.

  • Internal substitution names no longer leak into generated HTML when a signature contains type substitutions. Substitutions now use a separate namespace and are scoped to the enclosing signature. Open in #1504.

  • Sibling libraries exposing same-named modules (e.g. eliom.client / eliom.server) still resolve cross-references to the wrong library. A partial fix is in #1495; a full fix is in preparation. Issue #1450 remains open.

ocaml/opam

Permalink

Features

  • opam install --fail-fast (PoC, open): stops the install sequence on the first build failure rather than continuing with remaining packages. Targets CI and container workflows where a partial install is useless. #7204
  • Confirmation will be requested before every action by default, not only when a package was not explicitly named. Scripts that omit -y / OPAMYES=1 will now prompt. #7215 (open)
  • opam list --columns=depexts(tag) syntax is removed; the freed column name allows querying the extra-sources: field. #7209 (open, queued)

Compatibility and Releases

  • Vendored cmdliner updated to 2.1.1 (merged 2026-10-19). Includes a fix for shell-completion generation and unconditionally enables legacy prefix behaviour. #6867
  • opam 2.6.1 Windows binary is flagged by Windows Defender as containing a virus (false positive). A follow-up issue explores code-signing via SignPath, Azure Artifact Signing, or an OV certificate to build SmartScreen reputation. #7197, #7217 (both open)

Fixes

  • A missing depext on a pinned package version was silently swallowed; the check now runs against the pinned version instead of the highest matching version, so the user sees a "Missing depexts" explanation. #7213 (open)
  • opam pin <pkg> <dir> --with-version=N errors with "No valid package definition" when the source tree lacks an opam file; it should fall back to the repository opam file as it does without --with-version. #7203 (open)
  • opam pin ./archive.tgz -n assigns a random temp-directory name as the package name when no name is inferable from the opam file or archive filename. #7202 (open)
  • https://opam.ocaml.org/install.sh still prompts for the install path when piped, despite the --tty flag being intended for the opposite. A fully unattended invocation (e.g. --unsupervised --target /usr/local/bin) is not yet supported. #7201 (open)

ocaml/opam-repository

Permalink

Features

  • opentelemetry 0.92 (merged): Adds head sampling via Trace_flags and Trace_sampler; raises minimum OCaml to 4.14. #30916
  • merlin 5.9 (merged): Supports destructing let-binding patterns, advertises PPX dependencies via PPX_DEPS, and fixes the Haiku build. #30910
  • lsp 1.28.0 (open): Adds ocp-indent formatting, interactive snippet completions, and textDocument/implementation for interface types. #30913

Compatibility and Releases

  • ppx_platform 0.3.0 (opened): Breaking renames—browser_only → melange_only, platform native → native_only; old names removed. #30945
  • New packages (open): a2a-client.0.2.1 (A2A protocol over Eio), corvus-json-schema.0.1.1 (dependency-free JSON Schema evaluator), trexio.2.6.101 (quantum-chemistry I/O binding). #30947 #30952 #30919
  • conf-python-3.14 (open): Replaces the deprecated conf-python-3.9 record; drops CentOS < 9, uses python3 --version probe. #30930

Fixes

  • OCaml 5.6 compatibility (merged): Upper bounds added to dune.3.22.*, ocaml_intrinsics_kernel, and utop to exclude the 5.6 trunk compiler. #30926 #30928 #30929
  • ortools 9.15.0-3 (merged): macOS now builds abseil/re2/protobuf internally; ortools_solvers marked unavailable on Windows. #30908

ocsigen/js_of_ocaml

Permalink

Features

  • Share identical literals at bytecode parse time, reducing JS size by 51% and Wasm by 68% on Fiat-Crypto. Breaking: identical literals may now be physically equal. (#2547, merged)
  • Three fixes to debug-event parsing (CRC table, array naming, memoized sanitization) cut parsing from 1.24 s to 1.04 s on a small Core/Async program. (#2548, merged)
  • Integer comparisons with 0 used as conditions compile to !x/x instead of 0 === x/0 !== x. Minified size −2398 B on js_of_ocaml.bc. (#2538, merged)
  • Redundant break l at the end of an if-then inside a labelled block is removed; following statements sink into the else-branch. 144 of 522 labelled blocks removed on js_of_ocaml.bc. (#2513, merged)

Fixes

  • caml_wrap_exception is no longer imported under WASI, where it is never called. Fixes a linking failure that appeared once wasm-opt was skipped at --opt 1. (#2543, merged)
  • The JS and Wasm runtimes rewrite CONIN$/CONOUT$/CON to \\.\NAME before passing to fs.openSync on Windows. Fixes ENOENT when opening the console from compiled programs. (#2525, merged)

Compatibility and Releases

  • 6.5.0 release preparation merged: changelog cleaned up, VERSION bumped, improvement numbers referenced from #2468. (#2518, merged)
  • Replaces wasm-merge and wasm-metadce with an in-tree linker. Compile time −10% (--opt 1) to −50% (small programs) on Wasm output. (#2506, open)

oxcaml/opam-repository

Permalink

Fixes

  • dune.3.22.2+ox failed to bootstrap after #5462 changed the Option parameter type. The patch in #63 was closed unmerged (2026-10-14); the fix landed upstream as #16589. Dune CI gained an OxCaml-main bootstrap job via #16582.

  • oxcaml-compiler.5.2.0minus39 hit an assertion in utils/warnings.ml during a make -j17 build on macOS 27.0.1/arm64 (#64, opened 2026-10-15, closed 2026-10-16). The failure was not reproducible with -v or in a 10-build loop; 5.4.0-ox7 built cleanly. No fix was identified.

Compatibility and Releases

  • Dune's OxCaml CI previously checked only that Dune builds with a fixed OxCaml release and that OxCaml main builds with the latest Dune. The gap—whether OxCaml main can build Dune—was acknowledged and a dedicated job added (#16582).

  • #65 (opened 2026-10-16, still open) adds the missing license: "LGPL-2.0-only WITH OCaml-LGPL-linking-exception" field to four zarith.1.12+ox* packages, aligning them with zarith.1.14+ox.

oxcaml/oxcaml

Permalink

Features

  • Omnidirectional type inference: -extension omnidirectionality (eager/delayed) defers Tvar defaulting and mode crossing to a scheduler. #7540, #7544 opened; #7418 (Tivar/Ivar/Scheduler) ongoing.

  • Never-returning functions carry Unknown arity in Flambda, enabling layout-polymorphic returns such as assert false typed ('a : any). #7541, #7545, #7546 opened.

  • FDO: new -fdo-counters flag, counter propagation through Flambda, and function identity via scope path plus body hash. #7530, #7531, #7551, #7553 opened.

  • JSIR backend: Smallint, block-index, and stdlib-build support added; ocamltest integration for JSIR tests. #7534, #7581, #7586, #7607 opened.

  • Address patterns (addr_, addr_imm_) now type-check and translate to lambda. Merged #7456, #7458. Mode crossing for addresses in #7605 (opened).

Fixes

  • TLS state is now per-preemptible-fiber; Obj_slot.access replaces get/set, eliminating crossing requirements. Merged #7399, #7539, #7398.

  • Datalog engine: union opcodes, binding-position tracking, parameter-stage folding, and Patricia-tree prefetching. Merged #7596–#7604, #7321.

  • Unboxed products in external calls: complex return arities preserved end-to-end in Flambda2; C struct ABI on x86-64/arm64. Merged #6861; #6862 ongoing.

14 repositories · no changes