Thicket thicket
ocaml
REPOS 27
W45.2026 · 2–8 Nov

All repository summaries

15 active · 12 unchanged

Back to weekly digest

ocaml-multicore/eio

Permalink

Fixes

  • eio_linux: Eio.Net.send to a Unix-domain datagram address raised EINVAL; fixed by updating to the new uring API. Eio_linux.Low_level.recv_msg* now return Unix.sockaddr instead of Uring.Sockaddr.t. (#966, merged)

  • eio_posix: a trailing slash on the final path component allowed a symlink to escape the sandbox without O_RESOLVE_BENEATH. Operations on the target now treat "foo/" as "foo/."; operations on the entry drop the slash. (#967, opened)

  • Fiber.fork_daemon cancelled by a main-fiber exception received a hard-coded Exit instead of the actual exception, breaking Switch.get_error. Fix proposed. (#961, opened, not merged)

Features

  • Windows: support for symlinks, junctions, and reparse points added to the filesystem layer, enabling Forester to traverse symlinked directory trees. (#968, opened)

  • A scheduler hook to signal an empty run queue is requested, to support virtual-time testing under Eio_main (currently only Eio_mock.Backend provides this). (#965, open)

Compatibility and Releases

  • Eio.Net.Sockaddr.pp now quotes strings that are empty or contain unusual characters (e.g. Linux abstract addresses starting with \000). (#966, merged)

Research and Design

  • The capabilities design note's guarantee is clarified: resource tags prevent accidental misuse but do not enforce a security boundary; Eio.Resource.get_opt can query any interface. A documentation comment is proposed. (#964, opened)

ocaml-multicore/ocaml-uring

Permalink

Features

  • Uring.Msghdr.get_msg_name and Msghdr.create_recv added for correctly receiving Unix-domain socket addresses; the old Msghdr.create is deprecated. (#163, merged)

Compatibility and Releases

  • v2.15.1 released 2026-11-06, bundling the send_msg and Msghdr fixes above. (release)
  • An open PR proposes further hardening of the uring bindings and raises whether 32-bit support is still a target. (#167, open, @avsm)

Fixes

  • Uring.send_msg ~dst now passes the used buffer size rather than the total size, resolving EINVAL for Unix-domain addresses. (#165, merged; reported by @samoht)
  • Tests using fixed-buffer I/O now skip correctly on older Linux kernels via mdx_skip. (#164, merged)

ocaml/RFCs

Permalink

Features

  • RFC: Implicit source positions ([%call_loc]) — Open proposal (PR #52, updated 2026-11-06). Introduces a Textloc.t parameter type: a labelled function argument annotated [%call_loc] is auto-filled with the caller's source location. Affects monadic bind tracing, test-framework diagnostics, and embedded-language error reporting. Not merged; implementation exists at Jane Street.
  • Discussion in the RFC addresses API gaps: a line_range accessor for multi-line spans, and lossy conversion from Location.t when a span crosses #line directives into a different file. No cross-file span is representable in the proposed Textloc.t.

ocaml/dune

Permalink

Features

  • foreign_stubs and foreign_library accept (language asm), recognising .s/.S/.asm sources and passing them to the platform assembler. Closes #3342. (#16849, merged)

  • dune clean PATH now accepts source directories and the project root, removing the corresponding _build/<context>/<path> artifacts. Previously only build-directory paths were valid. Closes #2288. (#15305, merged)

  • New DUNE_CONFIG__ACTIONS_NICE setting (0–19, default none) controls niceness of spawned Unix build actions. A follow-up PR sets the default to +5, favouring Dune's coordinator over child processes for CPU. (#16957, #16963, merged)

Compatibility and Releases

  • 3.25.0~alpha1 released 2026-11-03. Notable breaking changes: actions no longer see _build/install/<context>/{bin,lib,lib/stublibs} on PATH/OCAMLPATH unless they declare (deps (package …)); generated files are read-only regardless of language version; : is rejected in context names. (release)

Fixes

  • Merlin configurations now include the hidden CMI directory (BH) for libraries with private_modules, restoring typing, completion, and navigation for public aliases of private modules. Closes #16531. (#16629, merged)

  • dune cache clear and dune cache trim now recognise and remove pre-3.22 legacy cache files under $DUNE_CACHE_ROOT. Closes #15060. (#16899, merged)

  • RPC build clients now receive the actual memo error message and stack trace instead of crashing with a generic exception. (#16878, #16879, merged)

  • Dune's own GC now sets small_heap_limit to 16 777 216 work units on OCaml 5.5+, delaying major marking. Measured ~9% reduction in no-op build wall time on AArch64. (#16913, merged)

ocaml/merlin

Permalink

Fixes

  • v5.9.1-505 resolves a caching issue that left inconsistent units stale. v5.9.1-505
  • v5.9.1-505 fixes a regression in the "pointing indexes" mechanism and an issue with absolute output paths for the indexer. v5.9.1-505

Compatibility and Releases

Ongoing

  • PR #2146 (open, updated 2026-11-09): collects UIDs of type extensions for occurrences, addressing issue #853.

ocaml/ocaml

Permalink

Features

  • Constructor unboxing / head shapes (open): PR #15227 extends [@unboxed] to multi-constructor variant types by tracking head shapes (tag + block size) in the type checker. Affects pattern-matching compilation and the separability analysis.

  • Warning 8 (partial-match) fatal by default (open, breaking): PR #15269 makes ocamlc/ocamlopt reject non-exhaustive matches by default. The toplevel retains the non-fatal behaviour.

  • Automatic heap compaction (open, RFC): Issue #15242 proposes porting OxCaml's auto-compaction to trunk, triggered at the end of major GC cycles when free-to-live ratio exceeds OCAMLRUNPARAM=O (default 500).

Compatibility and Releases

  • OCaml 4.14.5 (release, 2026-11-06): six security fixes (OSEC-2026-18/21/22/23/24/30) covering Marshal, Str, Unix.map_file, demarshaling, Windows command quoting, and ephemeron marking; plus a pattern-compilation fix and a macOS compatibility fix.

Fixes

  • Typechecker variance check: 99.5% speedup on constrained parameters (merged): PR #15219 adds a fast path using equal-subexpression matching before falling back to the expensive equivalence check. Reduces a 760 s case to 3.7 s.

  • Windows: Ctrl-Break no longer kills the process (merged): PR #15267 restores the console-control handler that maps Ctrl-Break to SIGINT. Cherry-picked to 5.6.

  • Unix.ADDR_INET rejects out-of-range ports (merged): PR #15261 raises Invalid_argument for ports outside 0–65535 instead of silently truncating modulo 65536. Fixes #15249.

  • Native array bounds check bypassed at index 2⁵⁴ (open): Issue #15244 reports that ocamlopt returns a.(0) instead of raising Invalid_argument for a.(18014398509481984). PR #15161 adds overflow checks to the shift rewrite.

ocaml/ocaml-lsp

Permalink

Features

  • Release 1.28.1 (2026-11-04): Adds ocamllsp/completePrefixAtPos, Topiary formatter, ocp-indent formatting, interactive completion snippets, and Dune RPC trace notifications.
  • Release 1.26.1 (2026-11-06): Backports ocamllsp/completePrefixAtPos for OCaml 5.4; consumed by Emacs via ocaml-eglot.
  • Release 1.28.1: Supports textDocument/onTypeFormatting via the persistent ocp-indent-rpc helper; reports Dune build progress through LSP trace notifications.
  • Release 1.28.1: Adds a code action to open the closest Dune file for the current document.

Fixes

  • PR #2232 (merged): Strips merlin.loc_stack attributes from printed expressions, preventing spurious annotations in inline edits.
  • PR #2235 (merged): Replaces Sys.command with spawn in expect tests, resolving hangs on macOS. Closes #2234.

ocaml/ocaml.org

Permalink

Features

  • Package pages show a build-status badge and per-compiler table from check.ci.ocaml.org, with log links and run provenance. A daily scrape keeps data current; MCP gains a cross-package query tool. (#3930, #3941)

  • The package overview page gains an Optional Dependencies section, listing depopts already stored in the state and returned by GraphQL and MCP. Reverse optional dependencies remain uncomputed. (#3957)

  • Package search matches module paths (Lwt_io → lwt, Yojson.Safe → yojson) via a memory-mapped index of documentation module trees covering 3,234 packages. CI publishing and server-side lookup are open. (#3986, #3981)

Compatibility and Releases

  • Platform release pages updated: OCaml 4.14.5, dune-release 2.3.0, ocaml-lsp 1.28.1 and 1.26.1, merlin v5.9.1-505. The opam-health scrape records 5,383 package-versions across five compilers. (#3988, #3973, #3979)

  • The production Dockerfile moves from Alpine 3.24 to Debian 13 (trixie) to align with the devcontainer and OCaml infrastructure. Image size grows ~150 MB; no latency regression measured. PR is open. (#3984)

Fixes

  • A path traversal in /conferences/ocaml/** allowed unauthenticated file reads (reported by @S33NU via the OCaml security team). The route now uses Dream.static with path validation, and the server runs as an unprivileged user. (#3942, #3945)

  • The package-state rebuild moves to a separate builder process; the server only reloads. Incremental date reads, yielding during dependency computation, and off-loop saves cut update time from ~33 s to ~5 s and peak RSS from 1.7 GB to 0.8 GB. (#3958–#3963, #3974–#3976, #3990)

  • Tutorials correct type-variable vs type-parameter usage, add a Hashtbl-vs-Maps comparison, and improve tour readability. Attribution records are now maintained by a post-merge bot PR rather than gating contributor PRs. (#3803, #3631, #3932)

ocaml/ocamlfind

Permalink

Compatibility and Releases

  • PR #122 (open, updated 2026-11-06, by dra27): proposes OCaml 5.5 support and relocatable builds for ocamlfind. Not yet merged.
  • The proposal extends findlib.conf to interpret relative paths (relative to the conf file or its containing directory), changing existing configuration semantics.
  • It adds configure support for relocatable installs via a relative -sitelib path, so two prefixes for the same compiler yield byte-identical trees.
  • Implements the fix for #115: reading the relative paths OCaml 5.5+ writes into ld.conf.
  • Uses Unix.realpath on resolved paths to prevent duplicate ld.conf entries on systems where ocamlfind rewrites that file.
  • CI changes target GNU make only (POSIX make unsupported) and verify byte-identical ocamlfind across two switches on Linux, macOS, and Windows.

ocaml/odoc

Permalink

Features

  • Strikethrough markup ({~ text}) added to the Odoc parser; backends render it as --text-- in man pages. PR opened by Leonidas-from-XIV. #1515

  • Tags such as @raise and @since now accept a {...} delimiter, allowing multi-paragraph content including code blocks within a single tag. PR opened by jonludlam. #1517

  • Code-block metadata tags (e.g. @ocaml server[...]) are emitted as CSS classes (tag-server) on the <pre> element in HTML output, enabling custom styling. PR opened by jonludlam. #1518

  • A new scoping model limits cross-library module resolution to the compilation dependency cone, preventing name clashes from unrelated libraries. Canonical paths gain a /library/Module prefix form. PR opened by jonludlam; includes #1511, #1503, #1502. #1516

Fixes

  • The internal Gpath type, which only ever wrapped a plain identifier, is removed. No observable output change. Merged by jonludlam. #1506

  • Cpath.is_hidden now agrees with Odoc_model.Paths.Path.is_hidden on all path shapes. No user-visible output change observed. Merged by jonludlam. #1514

Compatibility and Releases

  • Odoc is rebased against the newly released oxcaml.5.4.0+ox9 compiler, adding new functionality beyond the version bump. PR opened by avsm. #1520

ocaml/opam

Permalink

Features

  • cmdliner-based shell completion (bash, zsh, PowerShell) replaces the existing static scripts with dynamic completions generated from argument definitions. Adds a new PowerShell completion script. Open, updated 2026-11-03. #6869
  • The companion PR adding completion functions to opamClient argument definitions was closed without merge on 2026-11-03; its changes are folded into #6869. #6868
  • macOS 27 support in make cold by upgrading the bundled OCaml to 4.14.5. Open, created 2026-11-06. Backport to the 2.6 branch in #7233. #7232

Fixes

  • opam --cli=2.6 was rejected with "not supported" despite --help advertising 2.6 as default. The supported-versions list was not extended at release. Opened 2026-11-02; merged 2026-11-16 (outside this interval). Backported to 2.6 in #7242. #7229
  • opam upgrade printed a misleading "you may upgrade these packages" message when the switch was already up-to-date modulo invariants. Open, created 2026-11-06. #7230
  • opam unpin of a pin-depend and its reverse-dependency in one command raised a raw Not_found exception (exit 99). Open, updated 2026-11-02. #7223

Compatibility and Releases

  • opam upgrade (no arguments) did not update dev-pin sources, while opam upgrade <pkg> did. Open design discussion on whether opam upgrade should fetch from the network. Created 2026-11-06. #7231
  • opam list --depends-on=X --latests-only showed packages whose latest version no longer depends on X. Closed 2026-11-02 as a duplicate of the broader selector-ordering issue #6387. #7221

ocaml/opam-repository

Permalink

Features

  • Eliom 13.0.0 merged: module names are now wrapped (Eliom.Service, Eliom.Content, …); requires Ocsigen 8.0, TyXML 5.0, js_of_ocaml 6.4, OCaml 4.14. (#31073)
  • Mosaic 0.2.0 merged: most of the public API changed across all three packages; Matrix and Mosaic no longer run on Windows. (#31089)
  • Dune 3.25.0~alpha1 opened (not yet merged): pre-release with breaking changes including read-only generated files, restricted action environment, and : rejected in context names. (#31082)
  • New packages merged: hermetic 0.1.0, thumper 0.1.0, modelkit-xgboost, quint-connect 0.2.0, mcp-kit 0.2.0, miaou-serve, atdf 0.1, rocq-segmap, openapi-dsl 3.2.0, reanalyze 2.27.0. ocsigen-dune-rules 1.0.0 opened. (#31090, #31072, #31115, #31091, #31092, #31093, #31087)

Fixes

  • OCaml 4.14.5 merged: bug-fix release with six security fixes (OSEC-2026-18/21/22/23/24/30) covering Marshal, Str, Unix.map_file, demarshaling, Windows command quoting, and ephemeron. (#31117)
  • tls 2.1.5 merged: State.session changed from list to option, fixing a memory leak exploitable by a crafted attacker. (#31108)

Compatibility and Releases

  • Dune 3.25 test bounds added for geojsone, pretty_expressive, ppx_deriving_yaml, ppx_deriving_ezjsonm, soteria, satyrographos, ocaml-protoc-plugin; zanuda bounded on dune < 3.25; ppxlib upper bound added to ojs_base_ppx. (#31103, #31113, #31132)
  • opam-review workflow opened (not yet merged): new CI job that validates opam file syntax and policy compliance, posting results as a GitHub comment on each PR. (#31134)

ocsigen/js_of_ocaml

Permalink

Fixes

  • Fixed Wasm --opt 2 compilation of hinted ocamlc that consumed >8 GB due to unbounded functor-like inlining of open recursion through records. Merged. #2599

  • Fixed Wasm RuntimeError: illegal cast for programs using objects; array element types are now derived from the array type rather than global flow analysis, which missed constant blocks. Merged. #2596

  • Fixed separate compilation runtime failure (runtime.alias is not a function) when a unit calls a primitive defined in a non-builtin runtime file by its //Alias name. Merged. #2604

  • Fixed Int32.of_string/Nativeint.of_string error messages, %h formatting (precision 0, ties-to-even rounding, sign for infinities/NaNs), and Marshal header size to match the C runtime. Merged. #2602

Features

  • Performance page regenerated with Wasm_of_ocaml data; added compressed-size and compile-time charts. make doc now copies manual images next to odoc pages for direct viewing. Merged. #2565

  • Wasm compilation units now export their shapes (arity, purity) for separate compilation; shapes.sexp was previously always empty for Wasm. Merged. #2587

  • Proposal to signal exceptions via a sentinel return value in the JS backend instead of throw; ocamlc benchmark 16.5 s → 8.9 s, boyer 6.0 s → 0.61 s. Enabled by default with --effects=disabled; --disable exn-sentinel restores previous output. Open. #2582

  • Avoids holey arrays in V8 by using 0 for dead fields and packed allocation in the runtime; ocamlc 2–4 % faster, peak memory 4 % lower, fannkuch_redux −17 %. Opened. #2609

oxcaml/opam-repository

Permalink

Features

  • OxCaml 5.4.0-ox9 with Jane 133.03+642 merged into the opam-repository, providing a new experimental compiler release for macOS and Ubuntu. (#66, merged 2026-11-06)
  • odoc.3.2.2+ox proposed for OxCaml 5.4.0-ox9, adding documentation-generation tooling to the experimental toolchain. (#67, open)

Compatibility and Releases

  • A Dune package-management compatibility patch for ocamlbuild was closed without merge; the author may re-open it if still required for dune pkg workflows. (#21, closed 2026-11-05)

Fixes

  • posixat now compiles on macOS/arm64 with the 5.4.0-ox9 / Jane 133.03+642 release; the prior failure on linux/openat2.h and renameat2 is resolved. (#53, closed 2026-11-06)
  • zarith.1.14+ox can now install alongside OxCaml 5.2.0minus39; bignum.130.106+341 avoids the conflict. (#61, merged 2026-11-05)

oxcaml/oxcaml

Permalink

Features

  • as deref_ x pattern syntax (open PR, by bn-peters): Extends deref_ to P as deref_ x, allowing a pattern to both dereference a field and bind the address for further matching. Supported in all positions where deref_ x is valid. #7863

  • FDO annotations in fexpr output (open PR, by yusumez-js): Adds -fexpr-print-fdo-counters and -fexpr-print-branch-annotations flags to print call and branch FDO annotations in fexpr dumps. A new fdo_annotations test tool replaces fdo_entries for filtering counters by edge kind. #7844

  • -dprofile-level flag (open PR, WIP, by dra27-js): Introduces a profile-detail level to reduce -dprofile output in the CFG pass. Marked WIP; API not finalised. #7913

Fixes

  • flambda2 codegen abort on unboxed float constant in method (open, by echoumcp1): Passing #0. to an unboxed-float function inside a method triggers [flambda2] Invalid code and SIGABRT on arm64. -Oclassic compiles correctly; -g works around the frontend bug. #7921

  • Atomic.compare_and_set returns success after a failed CAS (open, by alpaylan): On amd64 with -O3, a second compare_and_set with the same expected value succeeds where it must fail. -Oclassic and bytecode produce correct results. #7889

  • caml_int128_add / caml_int128_sub wrong high word (reported, by alpaylan): On amd64 with -O3, the 128-bit add/sub builtins return an incorrect high word when the low half of x equals the high half of y. -Oclassic is correct. #7888

  • -fno-avx crashes on float32 Bigarray store (reported, by alpaylan): ocamlopt -fno-avx raises Not_found when storing to a float32 Bigarray element. -Oclassic -fno-avx and -fno-avx -regalloc ls compile correctly. #7919

  • Bytecode Effect.perform segfaults with memprof callback (open, by alpaylan): A Gc.Memprof alloc callback that grows the fiber stack causes ocamlrun to segfault during Effect.perform. Native compilation is unaffected. #7918

12 repositories · no changes