Thicket thicket
ocaml
REPOS 27
W26.2026 · 22–28 Jun

All repository summaries

13 active · 14 unchanged

Back to weekly digest

ocaml-multicore/eio

Permalink

Features

  • Eio.Net.Sockopt module added with an extensible variant type and getsockopt/setsockopt functions for setting and retrieving socket options on Eio.Net handles. Unsupported options raise Io Net Invalid_option. (#858, merged 2026-06-24)

  • Portable option names (Eio.Net.Sockopt.TCP_NODELAY, etc.) are now available independent of the Unix backend, usable in unikernels and mocks. Closes long-standing requests for setsockopt/getsockopt support. (#859, merged 2026-06-24; closes #322, #376)

  • Linux-specific socket options (e.g. TCP congestion-control name) merged as a follow-on to the portable Sockopt work, completing the original design by avsm. (#575, merged 2026-06-25)

  • Eio.Process.pipe return types relaxed from [Flow.source_ty | Resource.close_ty] to [< Flow.source_ty | Resource.close_ty], allowing the returned source/sink to unify with monomorphic Flow.source_ty or Flow.sink_ty consumers (e.g. Cohttp_eio.Body.t). (#775, merged 2026-06-25; closes #750)

  • Proposal to add an SO_TYPE query to the portable Eio.Net socket interface; discussion notes the integer return is of limited cross-platform value and a typed variant would require a larger API change. (#860, opened 2026-06-25)

Compatibility and Releases

  • The eio_linux Async-integration PR was closed as stale with no merge; no user-facing change results. (#221, closed 2026-06-25)

ocaml-multicore/ocaml-uring

Permalink

Fixes

  • Corrected vectored read/writev fixed-buffer bindings in the C stubs. Previous stubs were misnamed and did not perform actual vectored calls. (#155, merged 2026-06-28, by avsm)

Compatibility

  • Open request to build ocaml-uring against a system liburing rather than the vendored copy. Discussion notes that opam-installed uring often requires a newer liburing than distro packages provide. (#156, open)

Features

  • Adds per-operation RWF flags (e.g. RWF_DSYNC, RWF_NOWAIT) to read/write io_uring submissions. Enables skipping a post-write fsync and avoiding buffer-cache pollution during large copies in Eio. (#154, in progress during interval; merged after interval, by avsm)

ocaml/dune

Permalink

Features

  • dune completion bash|zsh|powershell now generates shell completion scripts for subcommands and flags. Merged in #14779. Follow-up issues track target, promote, runtest, exec, and fish completions (#126, #15335, #15336, #15334).

  • Timed-out cram tests now display partial output up to the point of failure instead of only an error message. Merged in #15269, closing #12343.

  • Per-module library dependency filtering is under review in #14492. A consumer module's compile rule will see only the artefacts of libraries it references, reducing unnecessary recompilation on incremental builds.

Compatibility and Releases

  • Melange upgraded to v7-54 in the test suite; the earlier cap at < 7.0 (#15322) was lifted once cram expectations were updated. Merged in #15367.

  • dune install --prefix directory-layout behaviour (opam-style man → <prefix>/man, --prefix overriding ./configure) is now documented with an FHS recipe using explicit --mandir/--docdir flags. Merged in #15306, closing #5733.

Fixes

  • dune build --auto-promote (and dune fmt) now exits 0 when all diffs are successfully promoted, removing the need for || true wrappers. Merged in #15284, fixing #785. Non-promotable diffs still exit non-zero.

  • Watch mode now debounces file-watcher events with a short quiet period before starting a rebuild, preventing editor save sequences (delete/create) from triggering spurious "Source files changed" restarts. Merged in #15344, closing #11134.

  • and and or in enabled_if boolean expressions now short-circuit instead of eagerly evaluating both sides. Merged in #15291.

  • Odoc and sherlodoc actions now run under sandboxing with declared hidden dependencies for include directories. Merged in #15190. HTML and JSON doc rules now always run together as a side effect.

  • dune clean will accept source directories (e.g. dune clean foo) in addition to build-directory paths. Open in #15305, fixing #2288.

ocaml/merlin

Permalink

Compatibility and Releases

  • Release 5.8-505 (2026-06-23) adds OCaml 5.5 support, fixes signature-help with type aliases, and fixes locate on punned let bindings. (release, #2083, #2077)

Fixes

  • Renaming a type in a signature does not propagate to the implementation in the same file; the occurrences command omits the implementation side. Open bug. (#2084)
  • Error messages are truncated in Emacs + Merlin on OCaml 5.04; discussion identifies merlin.el as the truncation point and notes the same issue in ocaml-eglot. Open. (#2080)
  • ppx expressions (e.g. ppx_blob) report file-not-found errors in the LSP that dune build does not; root cause identified as Merlin starting ppxes from the source root rather than _build/default. Open. (#2082)
  • Issue #1965 (error discrepancy between dune and ocaml-lsp) closed 2026-06-22 as a duplicate of #2082.

ocaml/ocaml

Permalink

Fixes

  • ctype scope error in modular explicits (merged): A scoping mistake in occur_univar_or_unscoped caused non-dependent applications to erase the result type with the first package type encountered, producing unsound type assignments. Fixed in #14892; the author notes a 5.5.1 release is warranted.

  • Recursive function compilation regression (5.2) (merged): Since #12596, let rec f = let __0 = f in function … generated an extra closure allocation, breaking inlining for ppx_deriving-generated code. Two PRs restore the optimisation: #14885 inlines variable-to-variable renamings; #14894 extends it to module-identifier redefinitions.

  • Assertion failure with external types under module constraints (merged): module Q(P : P) : P with type t = P.t triggered an assertion in out_type when the constrained type was external "int". External types are now treated as always abstract in this path. #14882

  • Pattern-matching switch overflow (open): The integer-overflow guard in the pattern-matching compiler failed to handle abs min_int = min_int. A fix is proposed in #14890.

Features

  • Static linking and link-time linking (open): New compiler options -cclib-static, -static, -cclib-variant, and -linking-variant allow recording per-variant C library lists in .cma files and resolving them at link time via an external command (e.g. pkg-config). Proposed in #14895.

  • RISC-V compressed instructions (merged): The RISC-V backend now emits C-extension instructions when the host supports them, reducing ocamlopt.opt code size by 11%. Register allocation is adjusted to favour x8–x15. #14873

  • Native Iatomic_fetch_add on all backends (merged): Atomic.fetch_add now compiles to a single atomic instruction (lock xadd, ldaddal, amoadd.d.aqrl, or ldarx/stdcx loop) instead of a C call, on amd64, arm64, riscv, and power. #14575

  • Pattern counter-example printing (merged): Constructor patterns with all-underscore fields now print as A _ instead of A (_,_). Nested records collapse similarly. #14887

ocaml/ocaml-lsp

Permalink

Features

  • OCaml LSP 1.27.0 upgrades the underlying compiler to OCaml 5.5. (#1609, release)

Compatibility and Releases

  • 1.27.0 released 2026-06-23. Requires OCaml 5.5. (release)
  • The short-paths fix is labelled consider-for-LTS and was tested against the 414-LTS branch. (#1579)

Fixes

  • Type-signature display now defaults to real_paths = true, matching the compiler's output when -short-paths is absent. Previously the LSP always applied short paths, making aliased types unreadable. (#1579, by SkySkimmer; closes #1395)
  • Compatibility with upcoming Dune versions is restored by removing a dependency on the Stdune.Pid module. (release notes)

ocaml/ocaml.org

Permalink

Features

  • New cookbook example for SQLite FTS5 full-text search using the sqlite3-ocaml binding, with external-content virtual table and sync triggers. Opened by @jonesmelton. #3698
  • OCaml Planet scrape merged with posts covering the OCaml 5.5 release summary, Ocsipersist 2.1.0 (type-safe persistence via Deriving), and Neocaml 0.9 (REPL and Dune/Opam completion improvements). #3697

Compatibility and Releases

  • CI dependency actions/checkout bumped from v6 to v7; v7 blocks fork-PR checkout in pull_request_target and workflow_run contexts. Merged. #3691
  • Platform newsletter covering February–May 2026 added to site data. Merged by @sabine. #3680
  • LexiFi job listing updated for a new recruitment campaign. Merged by @nojb. #3701

Fixes

  • The watch.ocaml.org video scraper now isolates per-source failures (expired TLS cert, network outage) as non-fatal Scrape_report.Error entries instead of aborting the entire Planet scrape job. Merged by @cuihtlauac. #3695
  • The Emacs LSP setup guide still references the obsolete ocaml-eglot-hook; the fix is to bind eglot-ensure to ocaml-eglot-mode-hook. Opened by @Lemonsity. #3700
  • GC tutorial PR adds a preamble note that Gc.tune examples depend on Jane Street's Core, with a planned appendix providing Stdlib equivalents via Gc.get/Gc.set. Ongoing. #3682

ocaml/ocamlfind

Permalink

Compatibility and Releases

  • #115 (open, updated 2026-06-23): ocamlfind ocamlc/ocamlopt emits a duplicate "Cannot read directory …/stublibs" warning under OCaml 5.5. No fix merged; comments in the thread are undated, so the specific in-interval activity cannot be established from the supplied data.

ocaml/odoc

Permalink

Fixes

  • #1450 (opened, ongoing): odoc_driver resolves cross-library references to the wrong sibling when two libraries expose same-named modules (e.g. eliom.client / eliom.server). Automatic API links in client docs point to server definitions. No fix merged; discussion in progress.

ocaml/opam

Permalink

Features

  • Merged: opam update/opam init now read HTTP repository archives via the ocaml-tar library instead of invoking the external tar tool, eliminating a full untar step. Part of the #6625 performance rework. (#6945)
  • Merged: A conditional hard-upgrade mechanism for the opam root is added, so the 2.6 repository-format migration triggers a full reinit only for affected users. (#6949)
  • Opened: opam source --dev and opam source should skip opam-specific git configuration (e.g. --depth=1); a full_fetch parameter is introduced to VCS.init. (#6955)

Compatibility and Releases

  • Opened: After upgrading opam (e.g. 2.5.0 → 2.5.1), stale ~/.opam/repo/state*.cache files cause opam list --safe to exceed 2 s, slowing Emacs/IDE startup. A warning and shell-hook auto-refresh are proposed. (#6975)
  • Opened: opam switch import does not restore the switch invariant (e.g. ocaml-base-compiler pin), which is a critical part of switch state. (#6982)

Fixes

  • Merged: opam config subst now handles absolute paths correctly; previously it misinterpreted the path as a basename. (#6936)
  • Merged: A lock-file filter referencing an undefined variable no longer crashes; the error is reported gracefully in strict mode and ignored in normal mode. (#6947)
  • Opened: On Windows, opam install dir/*.opam rejects / as a directory separator. A fix to the filename validation is proposed. (#6981, #6940)
  • Opened: opam fails when the git repository is owned by another local user (e.g. CI running as non-root). A fix adds git -c safe.directory=<dir>. (#6980, #6963)

ocaml/opam-repository

Permalink

Features

  • js_of_ocaml 6.4.0 adds OCaml 5.5 support, WASI 0.1, a Promise library, and Fetch/Abort bindings. Breaking: drops SVG 1.1 getTransformToElement, MouseScrollEvent bindings, and changes mediaElement.play to return unit Promise.t.

  • awskit 0.2.0 is a breaking release: runtime constructors return structured validation errors, S3 object bodies use scoped Reader/Body modules, and presigned requests return opaque artifacts. Custom runtimes must implement grouped capability modules.

  • New packages merged: batteries 3.11.0 (community stdlib extension), gendarme 0.5.0 (9-package marshalling suite), forcamla 0.2.0, melange-edn 0.5.0, nel 1.0.0, sek, and camlp4 5.5.

Compatibility and Releases

  • merlin 5.8-505, lsp 1.27.0, eliom 12.1.0, melange 7.0.0, reason 3.18.0, and ocaml-solo5 1.3.0 all add OCaml 5.5 support. melange 7.0.0 is a major version bump.

  • Upper bounds on dune 3.24 were added to lablgtk3, wasm_of_ocaml-compiler, cppo (tests only), and camomile 1.0.2/2.0.0 (#30143, #30132). These packages use non-normalized paths from dune variables that change in 3.24.

  • Spurious architecture bounds were removed from core and its dependencies, allowing installation on arm32 (#30147). The bounds were already removed upstream in the upcoming v0.18 release.

Fixes

  • Tarballs for wol, tm-grammars, netkat, ansicolor, otp, lablgtk-extras, odoc-depgraph, starpath, and ocaml-systemverilog were recovered from the opam cache and URLs redirected to opam-source-archives (#30129, #30126, #30127, #30128). The wol mismatch was caused by a tangled.org archive-generation change.

  • conf-pkg-config now invokes pkg-config directly on OpenBSD, where the separate pkgconf port was absorbed into the base system. Fixes #30080.

ocsigen/js_of_ocaml

Permalink

Features

  • Merged: Js_of_ocaml.Notification and Js_of_ocaml.Clipboard bindings added, with Promise-typed methods and is_supported() probes. (#2379)
  • Merged: Js_of_ocaml.Crypto bindings for the Web Crypto API, including SubtleCrypto, typed key enums, and overloaded generateKey/importKey/exportKey methods. (#2380)
  • Merged: Lwt_js_events.mutation and Lwt_js_events.mutations provide Lwt-friendly MutationObserver awaiting; closes #250. (#2376)
  • Opened: bindings for Service Worker (both sides), MessageChannel/MessagePort, and Cache/CacheStorage APIs. Merge landed 2026-06-29, just after this interval. (#2381)
  • Opened: toplevel Wrapped API (structured error/warning results) and Async sublibrary running the toplevel in a Web Worker. Merged 2026-07-01. (#2377)

Fixes

  • Merged: wasm_of_ocaml runtime build now takes the basename of dune-expanded .wat paths before stripping the suffix, fixing a break with dune ≥ 3.24. (#2371)

Compatibility and Releases

  • Merged: js_of_ocaml-lwt.logger (the lwt_log_js library) removed; the lwt_log optional dependency is dropped from js_of_ocaml-lwt.opam. Users of that logger must migrate. (#2378)
  • Merged: in-tree ppx_expect_light replaces the ppx_expect dependency; per-backend/version test gating moves from dune enabled_if into [@when]/[@@@if] annotations in test sources. (#2369)

oxcaml/oxcaml

Permalink

Features

  • AVX512 SIMD backend (experimental). Three open PRs plumb 512-bit ZMM/K mask registers, EVEX instruction encoding, and basic 512-bit vector operations through the compiler. Gated behind simd_alpha; disabled by default. #6293, #6294, #6339

  • Allocation mode axis for zero-alloc analysis. A new Allocation mode axis was merged, forcing closures containing heap allocation to alloc mode. A follow-up PR adds detection of all allocation sites, distinguishing stack from heap. #6269, #6319

  • Functional mode polymorphism (ongoing). Integrates level-relation operations into type inference so mode variables are polymorphic. Controlled by -extension mode_polymorphism_alpha; printing via -extension mode_polymorphism_printing. #5483

  • Compiler performance CI. A new GitHub Actions workflow compares base vs. head compiler CPU time on a corpus of compiler source files, failing when the 99% lower confidence bound exceeds a 1.5% threshold. #6365

Fixes

  • Zero-alloc unsoundness with never_returns_normally. [@zero_alloc assume never_returns_normally] on an inlined function that raises makes the checker accept allocating code in the caller. [@zero_alloc assume] alone is also unsound. #6297

  • Stack-check SIMD save (opened). The inserted Stack_check instruction received an empty live set, so the realloc trailer used the plain caml_call_realloc_stack (no xmm/ymm/zmm save). Fix gives the check the correct live-in set and selects the _sse/_avx/_avx512 variant. #6337

Compatibility and Releases

  • Typing-Recovery integrated into the type checker. Ported from Merlin to reduce divergence between the two type checkers, facilitating upstreaming. Reviewed by @trefis and @Octachron on the ocaml/ocaml side. #6366

  • Inlining attribute semantics redesign (proposal). Proposes splitting the current two-axis [@inline] into a four-level hierarchy (always/available/hint/never) plus local variants, fixing the interaction with [@inlined]. #6312

14 repositories · no changes