Thicket thicket
ocaml
REPOS 27
W43.2026 · 19–25 Oct

All repository summaries

11 active · 16 unchanged

Back to weekly digest

ocaml-multicore/saturn

Permalink

Fixes

  • Saturn.Htbl.length and Saturn.Skiplist.length can return an incorrect size due to a non-linearizability bug in the Size module. A fix for update_once was proposed and verified; a second related bug involving use_index remains open. #191 (open, updated 2026-10-23).

  • Saturn.Bounded_queue.is_full can return false on a full queue because it reads a tail pointer that may lag during a concurrent try_push. A fix using the head-to-next chain as source of truth was outlined. #190 (open, updated 2026-10-22).

  • Both interleavings were proven non-linearizable in Rocq using a research prototype, demonstrating a formal-verification workflow for detecting concurrency bugs in multicore OCaml data structures.

ocaml/dune

Permalink

Features

  • #16760 (open, Dune 3.26): RPC-backed rule plugins let a project define custom stanza-like forms via an OCaml program linked against dune-rules-plugin. Requires (lang dune 3.26) and (using plugin 0.1).
  • #16773 (open, Dune 3.26): Melange 1.0 is enabled by default in Dune language 3.26. Explicit declarations and older-language behavior are preserved.

Fixes

  • #16622 (merged) / #16647 (merged to 3.25-rc): Share Rocq plugin-layout dependency hashes across discovery, compilation, and extraction. Reduces 3.25.0-RC zero-build time from ~64 s to ~13 s and peak RSS from ~6.7 GiB to ~1.4 GiB on the Skylabs workspace.
  • #16617 (closed): 3.25.0~alpha0 no longer exports OCAMLPATH to actions, breaking opam install -t for packages that resolve libraries by name. Upstream fixes submitted to hxd, GT, and bogue; opam-repo upper bounds added.
  • #16675 (merged): Hardlink sandboxes now handle directory dependencies by applying the hardlink mode only to files, avoiding hardlinks to directories.
  • #16646 (merged): The _build/.db digest cache is unlinked when marked dirty, so a SIGKILL leaves no stale cache. Fixes #16559.
  • #16704 (merged): Generated aliases pass -intf-suffix .dummy-ignore-mli so an unrelated same-named .mli in the build directory no longer breaks compilation. Fixes #5267.
  • #16623 (merged): dune pkg lock reports "could not fetch revision" instead of "revision not found" when a git fetch fails due to network issues. Fixes #16466.

ocaml/merlin

Permalink

Fixes

  • Inconsistent .cmi cache invalidation (#2141, merged 2026-10-21, by voodoos): Inconsistent .cmi files were not recorded in the cache, so subsequent changes to those files did not trigger recompilation. The fix ensures correct invalidation when inconsistent .cmi files change.

  • merl-an crash on empty Longident (#2142, opened 2026-10-20, by PizieDust): ocamlmerlin single expand-prefix raises Invalid_argument("Ppxlib.Longident.parse(empty string)") when the completion pipeline synthesises a nameless Longident. Reproducible via vscode-ocaml-platform. Still open.

  • Index regression test and fix (#2144, opened 2026-10-21, by voodoos): Adds a regression test and fix for an index-related issue. Merged 2026-10-27, outside this reporting interval.

ocaml/ocaml

Permalink

Compatibility and Releases

  • OCaml 5.5.2 released 2026-10-23. Contains six security fixes (OSEC-2026-21 through OSEC-2026-26) and four bugfixes including two miscompilations and a runtime-events infinite loop. Release notes

Features

  • Variance-check performance (open): Consolidating the variance check for constrained parameters reduces compile time from 731 s to 83 s (≈8.75×) on a large object-type file that previously stalled trunk/5.6. Proposed in #15188; targeted for 5.6.
  • amd64 comparison codegen (open): Replaces cmp; setCC; movzx with xor; cmp; setCC to avoid partial-register stalls. Benchmarks show ≈10 % runtime reduction on integer-comparison loops. Proposed in #15178.
  • Warning 10 message extended (open): non-unit-statement now reports the actual type of the offending expression (e.g. "but has type string"), aiding diagnosis. Proposed in #15194.

Fixes

  • Pattern-matching miscompilation (merged): ocamlopt and ocamlc crashed or produced wrong results on certain combinations of integer-range patterns with redundant cases, instead of raising Match_failure. Fixed in #15187; affects 5.4.1, 4.14.4, and trunk.
  • Windows Unix.LargeFile.lseek (merged): The function interpreted its int64 argument as a tagged integer, seeking to a heap-address-derived offset. Regression since 5.1.0. Fixed in #15186; cherry-picked to 5.6.
  • Runtime-events ring buffer hang (merged): Runtime_events.User.write with an event larger than half the ring spun forever. The guard now rejects such events and suggests a correct OCAMLRUNPARAM=e size. Fixed in #15076.
  • ocamlopt -linscan miscompiles Atomic.compare_and_set (open): The linear-scan register allocator allows result and argument registers to overlap for atomic ops, producing wrong values or segfaults on amd64. Introduced by the native CAS in #14980. Reported in #15189; fix proposed in #15192.

ocaml/ocaml-lsp

Permalink

Features

  • New ocamllsp/completePrefixAtPos LSP request (opened, not yet merged in this interval). An Emacs client can request completions for a specific prefix at a specific position from the server, replacing the need to spawn a separate merlin complete-prefix process per request. The response omits snippet items, deprecation tags, and lazy completionItem/resolve data. No in keyword completion; _ is not treated as a typed hole. #2230 by spwhitton.

ocaml/ocaml.org

Permalink

Features

  • Doc sidebar is now served as a separate htmx fragment at /p/<name>/<version>/doc-sidebar with Cache-Control: public, max-age=600. Average page size drops from ~1.2 MB to ~130 KB; backend CPU per page from 54 ms to 16 ms. (#3858, merged)
  • OCaml 5.5.2 release page added to the site. The opam release was still in progress at merge time. (#3873, merged)

Compatibility and Releases

  • Runtime data layer decoupled from the build-time data-packer; redundant ppx_stable and ppx_deriving_yaml preprocesses removed. Server binary shrinks by ~16.5 MB (−19 %). (#3866, #3867, #3871, merged)
  • Upgrade to OCaml 5.4.1 and Dream 1.0.0~alpha8 is open but blocked: ppx_import caps at < 5.5, and a 5.5-compatible release is not yet published. (#3822, open)

Fixes

  • Doc-backend fetches are capped at OCAMLORG_MAX_DOC_FETCH_BYTES (default 50 MB); the search-index digest now uses a headers-only HEAD ETag instead of downloading the full index.js. Closes the OOM vector from the awso 371 MB index. (#3767, merged)
  • Per-version status and search-index caches now use Bounded_cache with FIFO eviction. Backend memory levels off below 600 MB across 23 472 distinct package versions instead of growing to 2.8 GB. (#3861, merged)
  • The ocaml_package_documentation MCP tool caps the library/module list at 2000 nodes and returns a libraries_truncated boolean. (#3872, merged)

Content

  • Fixed swapped titles/publications on /academic-users, linked a Wayback Machine copy of the CUFP 2008 "Xen and the Art of OCaml" slides, and corrected the Ahrefs success-story slug in CONTRIBUTING. (#3868, #3869, #3870, merged)

ocaml/odoc

Permalink

Features

  • OxCaml parameterized libraries (#1464, merged 2026-10-21, by art-w): odoc now renders parameterized libraries, parameter descriptions, and instantiated references (Lib[Param:Impl]) with individual links. Closes #1390.

  • Original formatter re-enabled (#1508, opened 2026-10-21, by Leonidas-from-XIV): Re-enables the formatter implementation disabled in 2020 for OCaml < 4.08 compatibility. Affects documentation output formatting.

Compatibility and Releases

  • Build rules simplified for OCaml ≥ 4.08 (#1512, merged 2026-10-24, by Leonidas-from-XIV): Removes enabled_if guards that were always true given the 4.08 minimum. No change to which tests run.

  • Gpath abstraction removed (#1506, opened 2026-10-19, by jonludlam): Eliminates the Gpath wrapper (never more than a plain identifier) and fixes several path-type inconsistencies found during removal.

Fixes

  • Ambiguity warning now shows unit paths (#1507, opened 2026-10-20, by jonludlam): Replaces uninformative duplicate module names with distinct unit paths (e.g. b/Foo, a/Foo).

  • Lexer warning position for unescaped { (#1510, opened 2026-10-22, by jonludlam): Corrects the reported offset to point at the brace character rather than an adjacent position.

  • Unit lookup by identifier (#1511, opened 2026-10-22, by jonludlam): First step toward resolving #1450 (sibling libraries with identical module names). Adds targeted fix and regression tests.

ocaml/opam

Permalink

Features

  • cmdliner-based shell completions (bash, zsh, PowerShell) replace the existing scripts and add PowerShell support. PRs #6868 and #6869 are open and queued.

  • Default solver switch to builtin-0install for performance and reduced C++ dependency. PR #6586 is open (WIP); no release target stated.

  • opam-audit integration proposal: security-advisory pin updated during opam update, warnings on opam install. Issue #7113 is open; no implementation merged.

Compatibility and Releases

  • Removal of opam list --columns=depexts(tag) (unmaintained since the 2.0 depext rework) and addition of extra-sources as a queryable column. PR #7209 is open; scripts using the old column syntax will break.

  • opam list --depends-on=X --latests-only still lists packages whose latest version no longer depends on X (e.g. yojson 3.0.0 vs biniou). Issue #7221 is open; labelled as possible duplicate of #6387.

Fixes

  • Vendored cmdliner updated to 2.1.1, closing the gap with upstream fixes (e.g. dbuenzli/cmdliner#191). PR #6867 merged 2026-10-19; closes #6849.

  • opam source ignores x-subpath, causing patches to fail on subpath packages (e.g. merlin.5.6.1-504+ox). Issue #7220 is open; confirmed on 2.6.1.

  • opam pin installs pin-depends unconditionally, even when the package is not a dependency. Issue #7218 is open; fix PR #7219 is open.

ocaml/opam-repository

Permalink

Features

  • js_of_ocaml 6.5.0 adds OCaml 5.6 support, WebGL2/Crypto/Service Worker bindings, and a ~25% faster compiler. Breaking: Typed_array.fromArray now takes number_t; js_of_ocaml-lwt.logger is removed.

  • ppx_platform 0.3.0 renames browser_only to melange_only and removes the old names (each now a compile error naming its replacement). The runtime module is renamed from Ppx_platform_runtime to Ppx_platform.

  • parseff 0.4.0 introduces bounded streaming via a sliding buffer; parse_source accepts ~backtrack_window and raises Backtrack_window_exceeded. Breaking: exhaustive error matches must handle the new case.

  • New packages merged: stele (Menhir error messages), smt-string (SMT-LIB strings/regexes), workerd (Cloudflare runtime), a2a-client (Agent2Agent protocol), ppx_module, trexio (quantum-chemistry I/O).

Fixes

  • OCaml 5.5.2 ships six security fixes (OSEC-2026-21 through 26) covering Str.string_partial_match, Unix.map_file overflow, demarshaling, Windows command quoting, and runtime events. Two miscompilation bugs are also fixed.

  • tls 2.1.4 fixes hostname validation, TLS 1.3 ALPN acceptance, and a server crash on duplicate SupportedVersion extensions. ca-certs-nss 3.131.1 updates to NSS 3.131.1, fixing CVE-2026-111943 (eMudhra key compromise).

Compatibility and Releases

  • virtfs 2.0.0 adds Path.common_prefix, Tree.merge, Tree.insert_items with conflict policies, and Tree.unfold for flat iteration over filesystem trees.

  • Why3 1.9.0 updates three packages; dependency bounds were added for why3find and caisar, which are incompatible with the new version.

ocsigen/js_of_ocaml

Permalink

Features

  • js_of_ocaml / wasm_of_ocaml 6.5.0 released 2026-10-22. Adds OCaml 5.6 support, ~25% faster compilation on large programs, and smaller output (base64 binary constants, tighter generated JS). Release

  • Introcaml introspection in JavaScript (#2433, merged 2026-10-22). Introspect.Print works under node and in the browser; the new js_of_ocaml.devtools library installs a Chrome DevTools formatter that displays OCaml values in OCaml syntax. Gated by --enable/--disable introspection.

  • New web API bindings: WebGL2, Web Crypto, Service Workers, Clipboard, Notification, FontFace, and Pointer Capture. The toplevel can now run in a Web Worker via protocol, worker, and worker_lwt_client sublibraries.

  • Faster debug-event parsing (#2548, merged 2026-10-19). Reduces --pretty / --debug-info parsing time by 15–25% on multi-unit programs.

Fixes

  • messageEvent class-type regression (#2555, merged 2026-10-20). EventSource.messageEvent and Worker.messageEvent are restored as class type aliases of Dom_html.messageEvent, fixing a 6.5.0~beta1 breakage in jsoo_broadcastchannel.

  • Security fix: Str.string_partial_match corrected (OSEC-2026-21, #2492).

Compatibility and Releases

  • Breaking: Typed_array.float32Array_fromArray / float64Array_fromArray now take number_t js_array t; js_of_ocaml-lwt.logger is removed (lwt_log is deprecated).

  • Breaking: identical literals in a bytecode program are bound to a single variable and may now be physically equal (==), matching ocamlopt. Programs relying on != for distinct literal identity will change behaviour.

oxcaml/oxcaml

Permalink

Features

  • -extension omnidirectionality (eager or delayed scheduler) is now available; it converts Tvars to Tivars during unification and defers constraint resolution to a scheduler. Merged by @johnyob. #7540

  • break_ statements are proposed for for and while loops; break_ is typed as 'a and is restricted to loop bodies (not closures). while true with break_ is typed as unit. Opened by @jwshii. #7666

  • deref_ patterns allow taking the address of a record field or tuple element inside a pattern match; uniqueness analysis is refined to per-field tracking so an address can own part of a block. Lambda translation raises for now. Opened by @bn-peters. #7707

  • An experiment restricts let rec value recursion to five forms (function, mutable-field record, ref, lazy, or non-recursive), eliminating cyclic non-mutable values like let rec ones = 1 :: ones. Opened by @spiessimon. #7617

  • The vec512 layout and types are promoted to stable; AVX512 backend flags enable by default when configure detects support. A witness is required to obtain a vec512 value or call an intrinsic. Opened by @TheNumbat. #7685

  • [@zero_alloc conditional] marks functions whose only allocations come from calling a function argument (e.g. List.iter); the backend checker can then prove List.iter ~f:ignore non-allocating. Ongoing by @wrsturgeon. #7550

  • -frametable-sections and -jump-table-sections (both require -function-sections) split per-unit tables into per-function sections so --gc-sections can drop them with the function. Opened by @lukemaurer. #7698 #7703

  • A standalone C implementation of structured symbol demangling is proposed for embedding in perf, llvm-symbolizer, etc.; a companion PR names compiler-generated closures (functor bodies, method closures, partial applications) so profiles aggregate across revisions. Opened by @Svetlitski. #7641 #7659

16 repositories · no changes