Thicket thicket
ocaml
REPOS 27
W28.2026 · 6–12 Jul

All repository summaries

15 active · 12 unchanged

Back to weekly digest

ocaml-multicore/eio

Permalink

Features

  • Eio.Net.getaddrinfo and getaddrinfo_stream now raise Address_lookup_failed on resolution errors instead of returning an empty list. AI_ADDRCONFIG is passed on eio_linux and eio_posix, restricting results to configured address families. Fixes #776, #351. (#866)

  • Eio.Path.load now uses a buffered reader with a sensible minimum buffer size, so files in /proc (which report size 0) read correctly. Fixes #835, #798. (#869, #878)

  • On eio_linux, fstat now uses statx with AT_EMPTY_PATH, populating blksize and blocks fields previously left unset. Requires Linux ≥ 5.18 for the io_uring path. (#865)

  • Open proposal: a ~options GADT for Eio.Net.connect and Eio.Net.listen to set socket options and bind addresses before the connection is established. Discussion is exploring a lower-level BSD-socket-style API as an alternative. (#875)

Fixes

  • chmod and chown on confined paths no longer follow symlinks that point outside the sandbox. eio_linux uses O_PATH + AT_EMPTY_PATH; eio_posix resolves symlinks manually. Requires kernel 6.6 / glibc 2.39+ for the fchmodat2 path, with a /proc/self/fd fallback. (#872, #877)

  • eio_linux read/write now hold the file descriptor open until Uring.submit, matching the lifetime discipline of readv/writev. The previous code could close the fd before the submission. (#871)

Compatibility and Releases

  • The uring dependency minimum is raised to 2.15.0+; OCaml 5.5 is used in CI Dockerfiles. (#867)

  • Windows byte-code builds no longer fail with flexdll relocation errors; unixsupport functions are redeclared CAMLextern. (#881)

ocaml-multicore/ocaml-uring

Permalink

Compatibility and Releases

  • ocaml-uring #156 (open, updated 2026-07-10): request to support building against a system liburing instead of the vendored copy. An undated comment from avsm notes the build configuration for both modes is unresolved. The issue remains open; no merged change or release is evidenced in this interval.

ocaml-multicore/saturn

Permalink

Fixes

  • Test suite build fix for compatibility with recent qcheck versions, opened by lyrm. Merged after the reporting interval. #188

Compatibility and Releases

  • Open proposal to update the project's ocamlformat version and reformat the codebase. No user-facing behaviour change. #189

ocaml/dune

Permalink

Features

  • #15400 (open): Adds a (public_name ...) field to rocq.theory stanzas, enabling Rocq package installation via ocamlfind. Requires rocq language support ≥ 0.15.
  • #15478 (open): Adds an origin field to dune describe workspace output, indicating whether each module is hand-written, generated by a rule, produced by menhir/ocamllex/ocamlyacc, or a wrapper.

Compatibility and Releases

  • #15458 (open): Since #14432 (3.24), dune exec -- prog resolves binaries from _build/default rather than _build/install/default/bin. The %{bin:...} macro no longer points to the install staging area.
  • #15449 (merged): Documentation now clarifies that dune runtest is not a shorthand for dune build @runtest; it selects a single context and accepts test path arguments.

Fixes

  • #15444 (merged): Compiler packages with version ≥ 5.5.0 are now treated as relocatable installs, bypassing the toolchain cache. Fixes spurious rebuilds with OCaml 5.5.
  • #15475 (merged): Fpath.exists and Fpath.is_directory now return false on ENOTDIR. Prevents a crash when ~/.config/dune is a regular file.
  • #15293 (merged): dune build @doc-new no longer crashes when a lock-dir package's cmti directory lives under _build/_private/....
  • #15077 (merged): dune install with an external DUNE_BUILD_DIR now writes relative artifact paths in dune-package files instead of absolute paths.

ocaml/merlin

Permalink

Features

  • Preview typing recovery (draft, ongoing): PR #2087 by @xvw introduces a mechanism to recover typing information from partially parsed or erroneous source. Not yet merged; additional commits in progress.

  • LRgrep-generated syntax error messages (open, ongoing): PR #2072 by @let-def adds a declarative error specification (parse_errors.lrgrep) and a make lrgrep-coverage target that reports grammatical constructs lacking error messages. Currently additive; long-term goal is to replace hand-written error-recovery code.

Compatibility and Releases

  • Exposed warnings-parsing API (open): PR #2088 by @PizieDust exposes Merlin's internal warnings-parsing function as a public API. Pre-requisite for ocaml-lsp issue #717.

  • Fuzzy CI updated to OCaml 5.5 (open): PR #2086 by @Tim-ats-d updates the fuzzy CI from OCaml 5.3 to 5.5 and regenerates the Irmin lock file. Closes issue #2006 once merged.

Fixes

  • type-enclosing and document misresolve * in tuple types (open): Issue #2093 reports that placing the cursor on the * separator in a type like 'a * 'a returns the Stdlib integer-multiplication operator (int -> int -> int) instead of the tuple type. Affects ocamlmerlin single type-enclosing and document; visible as incorrect hover in ocaml-lsp.

  • document returns neighbouring entries' doc comments (open): PR #2092 by @liam923 fixes document on variant constructors and record fields returning all siblings' docs instead of only the target's. Corrects the after_only flag and removes a stale last_location mechanism.

  • locate on open with module shadowing (open): PR #2089 by @lyrm fixes locate and document resolving a module name at an open to the shadowed submodule instead of the original module. The fix carries the pre-open environment on the Open_description node.

ocaml/ocaml

Permalink

Features

  • Configurable domain stack size (merged): New OCAMLRUNPARAM=S=<size> setting controls the stack allocated when spawning a domain via Domain.spawn. Addresses segfaults from large C stack frames in spawned domains. #14860

  • Atomic.compare_and_exchange (open): Proposed stdlib addition Atomic.compare_and_exchange : 'a t -> expected:'a -> set:'a -> 'a, implemented as a C primitive (~25% faster than an OCaml retry loop under contention). #14912

Performance

  • Inline full-application caml_apply (open): Full (non-partial) function calls bypass the caml_apply trampoline. Benchmarks show ~25% runtime reduction on function-call-heavy code and 1–4% instruction-count reduction across coq-bench. Code size increases ~0.56%. #14925

  • arm64 store-release for indexed stores (open): Replaces dmb ishld; str with stlr/stlur for aligned word stores on arm64. 4×–50× faster on FEAT_LRCPC2 cores; configure auto-detects and falls back to the barrier on Cortex-A53/A72. New -flrcpc2/-fno-lrcpc2/-fbarrier-store/-fstore-release options. #14922

Fixes

  • Sys.file_exists on Windows (merged): Replaced stat_os (which uses GetFileInformationByName) with GetFileAttributes in the runtime. Fixes a Windows 11 24H2 kernel bug where Sys.file_exists returned incorrect results depending on another process's CWD. #14919

  • Filename colon handling on Windows (merged): Filename.concat and Filename.dirname now treat : strictly as a volume separator. Filename.concat "C:\\Foo:" "bar" yields C:\Foo:\bar instead of C:\Foo:bar. Targeted for 5.6 only. #14916

  • Typing performance regression from keep-expansion (open, two PRs): Eliding the occurs-check for freshly-instantiated type variables reduces compilation of the js_of_ocaml reproducer from ~5 min to ~5 s. A companion change checks path equivalence modulo module aliases, further reducing the same file to ~170 ms. #14913, #14927

Compatibility

  • Functional updates of atomic records (open): { r with j } on a record with [@atomic] fields compiles to a non-atomic load, silently violating the atomicity contract. The plan is to forbid such implicit loads (matching the existing restriction on pattern matching), which would break code that relies on the current behaviour. #14918

ocaml/ocaml-lsp

Permalink

Fixes

  • Merged: ppx hover now uses Merlin's expand-ppx command instead of constructing the expansion locally, fixing broken @@deriving output for type … and … declarations. (#1615, fixes #1614)

  • Merged: Dune S-expression formatting is restricted to Dune documents only. OCamllex, Menhir, and Cram documents no longer pass through Dune RPC; unsupported formatting requests return no edits. (#1621)

Performance

  • Open: workspace/symbol rescans all .cmt/.cmti files on every request, producing ~13 s latency in a 50 000-file workspace. No per-workspace symbol index or cache exists in the current request path. (#1622)

Compatibility and Releases

  • OCaml 5.5 support is now available; the tracking issue was closed on 2026-07-08. (#1596)

  • Merged: the Nix development sandbox now defaults to OCaml 5.5. (#1616)

Features

  • Closed without merge: a proposal to integrate ocamlgrep structural search (scanning .cmt files with typed-AST queries) into ocaml-lsp. A pre-draft PR was submitted but not accepted. (#1607)

  • Open: hover on warning attributes to display warning details. Requires a corresponding Merlin change. (#1606)

ocaml/ocaml.org

Permalink

Features

  • Add Amazon Web Services to the industrial users page, noting AWS uses HOL Light (an OCaml-based theorem prover) for formal verification of s2n-bignum in AWS-LC. Open PR by adithn875, updated 2026-07-12. #3681

Compatibility and Releases

  • Open PR to publish the opam 2.5.2 announcement on the site. Opened by kit-ty-kate on 2026-07-09; not yet merged. #3712

ocaml/ocamlfind

Permalink

Fixes

  • ocamlfind ocamlopt -config no longer crashes when the compiler is built with --disable-systhreads. The exception handler was updated to match the current lookup-failure type. Merged 2026-07-09.

Compatibility and Releases

  • #120 (opened 2026-07-10, not yet merged): install .cmx files alongside .cmi files to suppress warning 58 in client code that links against Findlib.
  • #119 (opened 2026-07-10, not yet merged): resolve relative paths in ld.conf against the file's directory, fixing compatibility with the ld.conf installed by OCaml 5.5.0.
  • #118 (updated 2026-07-10, open): libraries installed via Fedora dnf are not found by ocamlfind when the expected META file is absent from the package.

ocaml/odoc

Permalink

Features

  • OxCaml mode rendering (open): PR #1454 by @art-w adds rendering of OxCaml mode annotations (@ local, @ unique, etc.) in generated docs, with heuristics to suppress redundant or implied modes. Fixes #1417.

  • include functor display (open): PR #1452 by @Leonidas-from-XIV adds a collapsible section showing that items were included via a functor, following up on #1368. Review notes indicate the current splice approach fails on functor parameters (e.g. I.t); a dummy-module rewrite is proposed.

Compatibility and Releases

  • Remove OCaml < 4.08 code paths (merged): PR #1458 by @fantazio deletes version-gated branches for OCaml versions below 4.08, the minimum already declared in .opam files since odoc 3.1.0. No user-facing behaviour change.

Fixes

  • Spurious "Hidden constructors" warning with Menhir --table (open): Issue #1459 reports that odoc 3.2.1 emits a false "Hidden constructors in type" warning and leaks a mangled MenhirLib__IncrementalEngine.position name when documenting Menhir parsers built with --table. The constructor is rendered but its Lexing.position argument is unresolved.

  • Sibling libraries resolve to wrong module (open): Issue #1450 reports that odoc_driver resolves same-named modules across sibling libraries (e.g. eliom.client / eliom.server) by first-found order. A maintainer proposes restricting odoc compile to compile-deps and using full package union for odoc link; a PR is planned.

  • base documentation build failure with OxCaml (open): Issue #1455 reports Failure("invalid core type") when odoc compile reads a type kind from a cmti produced by the OxCaml compiler.

ocaml/opam

Permalink

Features

  • HTTP repositories are now stored as the downloaded tar.gz rather than extracted to disk. opam update and opam init no longer untar the index, eliminating a 1+ minute delay on Windows and network filesystems. #6625

  • .. paths are re-allowed in .install files, reverting a 2.5.1 restriction that broke dune cross-compilation packages. Target paths are resolved before directory creation to avoid unnecessary intermediate directories. #7009

Compatibility and Releases

  • opam 2.5.2 released, bundling the CVE-2026-57825 fix, the .. re-allow, and the real_path/starts_with corrections. Install scripts updated. #2.5.2, #7017

  • CI now builds against OCaml 5.5 and 4.14.4. The Cygwin build was repaired by updating gcc package constraints. #6988, #7007

Fixes

  • CVE-2026-57825: a symlink in a package's .install file could bypass the switch prefix check and write files outside the switch without warning. Fixed on master and backported to 2.5. #7005

  • OpamSystem.real_path now resolves .. components after a non-existent directory, matching its documented behaviour. Previously the path was returned unresolved. #7011

  • OpamFilename.starts_with and dir_starts_with no longer treat foo/bar as a prefix of foo/bar-baz. On Windows, / and \ are now equivalent in these comparisons. #6953

  • Exhaustive reftests for all .install fields were added. Testing revealed two open Windows bugs: libexec binaries fail to install, and files without a .exe extension are not removed on package removal. #6956, #7021, #7022

ocaml/opam-repository

Permalink

Features

  • Caqti 3.0.0 merged: the caqti library now holds the Caqti 3 API; Caqti 2 users must add caqti.classic to their link lines. Foreign key constraints are enabled for SQLite by default. (#30174)
  • quickjs 0.5.0 (open, not yet merged): extensive breaking changes to RegExp, String, Global, and Number modules; quickjs.c and quickjs.bindings are wrapped under Quickjs_c.* / Quickjs_bindings. Lower-bounds builds fail on Ctypes. (#30212)
  • Frama-C 33.0~beta-Arsenic merged: substantial API refactoring for plug-in developers; new -eva-secure-flow option; GTK GUI removed in favour of the Ivette-based frama-c-gui. (#30136)
  • New packages merged: ppx_deriving_melange.0.1.0 (Melange-compatible ppx_deriving subset), union-find-lattice.0.1.0, pidgin.1.0.0 + pidgin_pp.1.0.0, wire.1.0.0, micro_httpd.0.20.1, ocamlgrep.0.1.1, otp.0.3. (#30255, #30207, #30208, #30215, #30251, #30201, #30218)

Compatibility and Releases

  • opam 2.5.2 released: eight packages (opam-client, opam-core, opam-devel, opam-format, opam-installer, opam-repository, opam-solver, opam-state) updated; update alerts adjusted. (#30237, #30238)
  • bonsai.v0.16.0 / v0.17.0 upper-bounded on dune 3.24: dune 3.24 changed path-variable expansion to include a ./ prefix, breaking non-normalized path usage in these packages. (#30247)
  • ocaml-ai-sdk 0.5 merged with source-breaking changes: Ai_provider.Prompt.System, Ai_provider.Tool.t, and Core_tool.t gained a provider_options field; Cache_control.breakpoint_to_json/breakpoint_of_json removed. (#30210)
  • Package availability: riot marked non-maintained (repo moved to leostera/riot-lib); synopsis.1.0 marked unavailable (bad checksum confirmed). Open issues report bad checksums for pxshot, res_tailwindcss, coq-lsp.0.1.6+8.16, and vecosek. (#30252, #30245, #30244, #30243, #30241, #30240)

ocsigen/js_of_ocaml

Permalink

Features

  • WebGL2 bindings (merged): New WebGL2 module adds 3D textures, transform feedback, VAOs, instancing, MRT, and integer attribs. The existing examples/webgl demo now requests a WebGL2 context. #2388

  • Experimental ESM output (open, RFC): js_of_ocaml compile --esm, build-runtime --esm, and link --esm [--bundle] emit ECMAScript modules with named imports, tree shaking, and per-unit files. Separate-compilation link step drops from 16 ms (script) to 9 ms (ESM, units on disk). #2402

  • Web Audio and Media Capture bindings (open): Adds AudioContext, the full node-graph hierarchy, AudioParam automation, MediaStream/MediaStreamTrack, and navigator.mediaDevices. Completes Dom_html.mediaElement with text tracks and srcObject. #2401

  • BroadcastChannel and SharedWorker bindings (open): New modules fill the remaining Tier 2 communication gaps; BroadcastChannel is testable under Node, SharedWorker is browser-only. #2400

  • Manual sidebar ordering (merged): @children_order added to manual/index.mld so odoc lists pages in logical reading order rather than alphabetically. #2359

Fixes

  • Compiler miscompilation in js_simpl/js_traverse (merged): If-fusion now requires an effect-free condition, preventing let a = g() in if a then g() else h() from compiling to a single g() call. Constant-if folding preserves hoisted var declarations; free records catch-parameter destructuring defaults. #2393

Compatibility and Releases

  • Consolidated messageEvent types (merged, breaking): Five per-module messageEvent class types replaced by a single polymorphic ['target, 'data] Dom_html.messageEvent. Old names remain as [@@ocaml.deprecated] aliases; existing code compiles with a migration warning. #2390

  • OCaml 5.6 support (merged): Initial compiler support merged; the 5.6 CI job runs on master. #2227

oxcaml/opam-repository

Permalink

No repository activity falls within the reporting interval 2026-07-06 to 2026-07-13 (exclusive). The sole supplied record (PR #54, merged 2026-07-13T13:00Z) post-dates the interval end and is therefore excluded.

oxcaml/oxcaml

Permalink

Features

  • The reaper now unboxes int32, int64, and nativeint boxes across non-inlined function boundaries, closures, and nested pairs. Merged. (#6437)
  • ARM64 backend emits stlr/stlur instead of dmb ishld; str for aligned word stores; measured 4.18× speedup on NVIDIA Vera (fannkuchredux, -O3 -unsafe -flrcpc2). Opened, closed unmerged. (#6443)
  • Dissector parses each partition's ELF once and runs partial links concurrently under -dissector-max-linker-parallelism <n|none>. Open. (#6447)

Fixes

  • Closures built inside noalloc/noalloc_strict functions are forced local and stack-allocated, fixing a soundness hole in partial application of curried functions. Open. (#6452)
  • Functor applications no longer leak types whose kind depends on local GADT equations, correcting scopes after substitution. Open. (#6406)
  • Module-rec type approximation now preserves the layout of with-bounded kinds instead of over-approximating to any, eliminating spurious errors. Merged. (#6395)

Research and Experimental

  • Staged campaign to replace the legacy jkind bounds representation with the ikind (LDD) engine; this PR deletes the last legacy entry point and switches error-history selection to ikind ordering. Open (WIP). (#6460)
  • New cmm_invariants pass checks that machtypes of inputs and outputs of every Cmm operation are mutually consistent. Open. (#6435)
12 repositories · no changes