Thicket thicket
ocaml
REPOS 27
W27.2026 · 29 Jun – 5 Jul

All repository summaries

17 active · 10 unchanged

Back to weekly digest

ocaml-multicore/eio

Permalink

Features

  • Pseudoterminal support and login_tty fork action merged in #531. Adds Eio_unix.Pty for creating ptys via posix_openpt/TIOCGPTPEER, and a ?login_tty argument to Eio_unix.Process.spawn_unix that starts a new session and dups the tty onto the child's stdio.

  • chown support merged in #781 (by @patricoferris), filling a gap in the Eio.Fs API for eio_posix and eio_linux. A follow-up in #864 corrected the AT_SYMLINK_NOFOLLOW flag for fchownat.

Compatibility and Releases

  • io_uring minimum version proposed at 2.15.0+ in #867 (open) to unlock newer ring functionality.

  • fstat → statx on Linux proposed in #865 (open) to populate blksize/blocks for disk-space queries; no fallback for pre-5.18 kernels.

  • io_uring iowait investigation opened in #862: an idle Eio service on Linux 6.18 reports ~98% iowait and high /proc/pressure/io despite zero process I/O. Under discussion; may be kernel accounting around io_uring.

Fixes

  • Eio.Net.getaddrinfo now raises on failure instead of returning [] (#866, merged). The old Connection_failure No_matching_addresses is replaced by Address_lookup_failed. AI_ADDRCONFIG is now passed on Linux/POSIX, filtering to configured address families.

  • Windows backend: 100% CPU in two-way Flow.copy fixed in #861, merged. An FD waiting on both read and write was not removed from the inactive set. Closes #837.

  • Eio.Pool.use argument order changed in #747, merged: never_block moved before the required argument so the compiler can detect omission.

ocaml-multicore/ocaml-uring

Permalink

Features

  • v2.15.0 (2026-07-04): adds shutdown, socket, renameat, symlinkat, fallocate, ftruncate ops; vectored readv/writev on fixed buffers; per-op RWF flags.
  • #154 (merged 2026-06-29): exposes per-operation RWF flags (dsync, nocache) at the uring layer. Enables Eio to skip a redundant fsync after writes and avoid buffer-cache pollution during large copies.
  • #157 (merged 2026-07-01): updates vendored liburing to 2.15. BPF support in the new liburing is noted as a direction for future io_uring integration.

Fixes

  • #159 (merged 2026-07-02): restores FLAGS.t = private int to prevent a breaking change for Eio (#785).
  • #158 (merged 2026-07-02): configure test no longer writes to /tmp, fixing opam sandboxed builds.

Compatibility and Releases

  • v2.15.0 requires OCaml ≥ 5.2.
  • #156 (open, updated 2026-07-03): discussion on decoupling vendored liburing for distro packaging. No resolution yet; a packaging-layer patch is the current recommendation.

ocaml-multicore/picos

Permalink

No user-facing changes, fixes, or releases are supported by the supplied records for the interval 2026-06-29 to 2026-07-06.

The sole record (PR #387, "Add support for OCaml 5.5", by kit-ty-kate) was merged on 2026-03-17, outside the reporting interval. Its updated_at timestamp (2026-07-04) falls within the interval but reflects a metadata refresh, not a new merge, closure, or feature change. The single comment carries no timestamp and cannot be placed in the interval.

Evidence is insufficient to report any event within the stated window.

ocaml/RFCs

Permalink

Features

  • Open proposal (PR #62, Drup, 2026-06-30): an API for manipulating Destination values. Status: open, not merged. No further detail provided in the record.

ocaml/dune

Permalink

Compatibility and Releases

  • Dune 3.24.0 released to opam. Release branch merged 2026-07-01. (#14621, #14620)

Fixes

  • Melange: default sandboxing reverted and original source dependency restored during preprocessing. Two regressions from 3.24.0 affecting JS builds. (#15418, #15395)
  • dune utop <abs-path> no longer crashes with an internal Code_error. Absolute workspace paths are localised before use. (#15272, #15108)
  • dune fmt no longer returns a non-zero exit code when it formats files, aligning with other formatters. dune fmt --preview still reports unformatted files. (#15380)
  • dune fmt actions now receive environment variables, fixing a regression where formatter-specific env vars (e.g. REFMT_PRINT_WIDTH) were dropped. (#15386)

Features

  • Root module generation now excludes PPX runtime libraries. Only user-declared stanza dependencies appear in the generated root module. Breaking change for the (root_module) feature. (#15419)
  • dune tools exec utop is now permitted, matching the existing behaviour for ocaml-index and other dev tools. Previously only dune utop was available. (#15388)
  • Watch-mode status line shows build elapsed time and average process parallelism. The completed build's duration persists in the status line after the build finishes. (#15384, #15390)
  • Proposal: narrow PATH and %{bin:X} resolution in lock-dir contexts to the owning package's dependency closure, reducing unnecessary build dependencies. Open PR. (#15381)

ocaml/merlin

Permalink

Fixes

  • The 504 branch compiler-version-mismatch error (reported by @kit-ty-kate) was resolved; issue #1937 closed 2026-07-01. No further detail is available in the record.

Compatibility and Releases

  • The OCaml 5.5 support tracking issue #2024 (opened by @kit-ty-kate) closed 2026-07-01, indicating the 5.5 API work is complete.

Features

  • PR #2079 (open, by @voodoos, based on #2050) adds an LRU cache to limit indexing memory usage. Small values are stored alongside their parent; filenames become relative to the indexer's working directory; related-uids compression is disabled.
  • Benchmark data in the PR shows aggregate index size drops from 25 MB to 4.1 MB and aggregation time from ~769 ms to ~355 ms versus the pre-change baseline.
  • The LRU cache default size is 1 GB (configurable in kB units). The PR is under active review with minor code-level suggestions; no merge has occurred.

ocaml/ocaml

Permalink

Features

  • #14907 (open): Proposes removing the 2¹⁶ range limit on integer pattern-matching intervals. The Switch compiler previously fell back to sequential tests for wider ranges.

  • #14900 (merged): Removes closure allocations from deep_occur_rec, reducing type-checking time by 20–45 % on large types (e.g. js_of_ocaml's lwt_xmlHttpRequest.ml).

Fixes

  • #14892 (merged): Fixes a scoping error where non-dependent package-type application erased the result type, causing spurious "too many arguments" errors with abstract module types.

  • #14905 (open): A file combining Type.Id.t with polymorphic variants causes ocamlc to loop indefinitely at 100 % CPU. Confirmed fixed in trunk; backport to 5.5.1 under discussion.

  • #14898 (open): A GADT with partial pattern matching and syntactic function arity produces an invalid value_kind in lambda, causing ocamlopt to segfault. Related to #12236.

  • #14906 (open): Fixes an infinite loop in caml_shutdown() when ephemerons remain from a dead domain in cleanup-at-exit mode (OCAMLRUNPARAM=c=1).

  • #14688 (merged): Calls mark() directly from ephe_mark() on each markable datum, improving major-GC throughput in multi-domain programs with many ephemerons.

  • #14897 (open): Since #11648, compiling js_of_ocaml's lwt_xmlHttpRequest.ml takes several minutes due to repeated type expansion during unification of object types.

ocaml/ocaml-lsp

Permalink

Fixes

  • JSON format typos corrected in LSP responses. Merged by @divarvel. (#1613)

Features

  • Proposal to restrict Diagnostic.message to a plain string (rejecting markup content) was closed unmerged. LSP 3.18 permits markdown in diagnostic messages, so the current typed API remains. (#1612)

Compatibility and Releases

  • ocaml-lsp-server 1.27.0 requires merlin-lib >= 5.8 and ocaml-index >= 5.8. A pinning PR was closed unmerged after the pin was removed on master post-release. (#1611)

ocaml/ocaml.org

Permalink

Fixes

  • Broken link in the Cookbook: Dream template page: aantron.github.io/dream/#templates returns 404; correct URL is camlworks.github.io/dream/#templates. Issue open, no fix merged in this interval.

Compatibility and Releases

  • Scraper release scraper-latest (2026-07-03): rebuilt from commit 1529fc2. Several Planet feeds remain unreachable (mirage, ocaml-book, dinosaure, emilpriver, patricoferris) due to missing RSS/Atom feeds, DNS failures, or 403 responses.

Features

  • #3704 (open, by shonfeder): proposes announcing the dune 3.24 release on ocaml.org. Not yet merged.
  • #3706 (merged 2026-07-03): adds OCaml Planet posts, including Ocsigen's "Why Ocsigen decided not to switch from Lwt to Eio (for now)" and tunbury's "Corrupt copies on the OpenBSD CI worker."
  • #3705 (merged 2026-07-01): adds OCaml Weekly News, 30 Jun 2026.
  • #3702 (merged 2026-06-30): adds blog posts from anil ("Gelato, geospatial, and players of games") and tunbury ("Notes from week 26").
  • #3707 and #3708 (merged 2026-07-02/03, by Sudha247): update OCaml Workshop 2026 deadline to 12 July AoE (13 July CEST).

ocaml/ocamlfind

Permalink

Fixes

  • ocamlfind fails to locate libraries installed under /usr/lib64/ocaml on Fedora (e.g. camlidl via dnf); the issue remains open with no resolution. #118

ocaml/odoc

Permalink

Features

  • #1452 (open, Leonidas-from-XIV): Adds OxCaml include functor rendering, displaying a collapsible section for the included functor module type. Follows up on #1368.

  • #1454 (open, art-w): Adds OxCaml mode annotation rendering with heuristics to omit legacy, implied, or context-inferred modes. Fixes #1417.

Compatibility

  • #1450 (open): odoc_driver places all package libraries on each unit's link path, causing same-named modules (e.g. Eliom client/server) to resolve to the wrong sibling library.

Fixes

  • #1453 (merged 2026-07-01, Leonidas-from-XIV): Corrects grep CLI argument order for BSD compatibility, resolving OpenBSD CI failures.

  • #1455 (open): odoc raises Failure("invalid core type") when loading base CMTi files built with OxCaml, triggered by constrained type syntax with phantom attributes.

  • #1456 (open): Source HTML output contains nested <a> tags when deriving generates non-ghost code with toplevel locations, producing spurious link targets.

ocaml/opam

Permalink

Features

  • HTTP repositories are stored as tar.gz archives instead of extracted directories, eliminating the untar step during opam update and opam init. Major performance improvement, particularly on Windows and network filesystems. (Ongoing, #6625)
  • opam init --bare now skips compiler selection, saving approximately 2.5 seconds. The --bare flag targets environments that do not require a compiler. (Open, #6957)

Compatibility and Releases

  • Terminal resize detection now works on Solaris/Illumos by using signal 20 instead of 28. Requires OCaml 5.4 or newer at compile time. (Merged, #6933)

Fixes

  • Lock file filters referencing undefined variables (e.g. with-dev-setup) no longer cause a fatal error; the variable defaults to false. (Merged, #6947)
  • opam config subst now resolves absolute paths correctly instead of prepending $PWD. Previously, opam config subst /tmp/file produced a fatal File_not_found error. (Merged, #6936)
  • The zsh shell integration hook now returns 0 explicitly, preventing opam's exit code from leaking into the user's prompt. (Merged, #6930)
  • MSYS2 builds now set _WIN32_WINNT to the Windows 8.1 constant, resolving a GetCurrentProcessToken availability error in opam-monorepo compilation. (Merged, #6862)
  • Repository scanning no longer fails when a directory named opam exists in the packages directory. (Merged, #6995)

ocaml/opam-file-format

Permalink

Features

  • Open PR #65 (by kit-ty-kate) updates the README to correct maintainer attribution. The PR was last updated 2026-07-01 and remains open; no merge or closure occurred within the interval.

ocaml/opam-repository

Permalink

Features

  • dune 3.24.0 merged 2026-06-30. Breaking: %{bin:NAME} now resolves to the build artifact path; dune variables expanding to local paths gain a leading ./; the deprecated (lang coq) stanza is removed in favour of (using rocq). New %{pkg:<package>:<section>:<path>} pform and directory-target promotion are now GA. (#30092)
  • chatoyant 0.12.1 merged 2026-07-05. New package: OCaml-first LLM provider SDK (OpenAI, Anthropic, xAI, OpenRouter) with Eio native API, typed tools, structured outputs, and token/cost accounting. (#30190)
  • hegel 0.8.0 (4 packages) merged 2026-07-06. New property-based testing library with PPX deriver and Antithesis support. Minimum OCaml 5.1; no Windows or darwin-amd64 support. (#30185)
  • opam-minver 0.2.0 merged 2026-07-05. New tool that binary-searches dependency versions (including compiler) to find the oldest buildable set and writes lower bounds back into the .opam file. (#30199)

Fixes

  • uring 2.15.0 merged 2026-07-05. Breaking: requires OCaml ≥ 5.2. Adds shutdown, socket, renameat, symlinkat, fallocate, ftruncate, and vectored readv/writev ops; fixes inverted statx mask check and dio_offset_align getter. (#30196)
  • Caqti 3.0.0 (open, under review). Breaking: caqti now holds the Caqti 3 API; Caqti 2 users must add caqti.classic to link lines. Foreign key constraints enabled for SQLite by default. (#30174)

Compatibility and Releases

  • awskit 0.2.0 (10 packages) merged 2026-06-29. Breaking SDK hardening: runtime contract split into grouped capability modules, S3 object bodies reworked around adapter Body/Reader types, presigned requests return opaque artifacts, and raw query-signing helpers removed. (#30149)
  • OCaml 5.5.0 release readiness issue closed 2026-07-01. Tracked build status of platform tools (opam, dune, merlin, odoc, ocamlformat) and ecosystem packages (ppxlib, utop, dune-release) ahead of the 5.5 release. (#29463)

ocsigen/js_of_ocaml

Permalink

Features

  • Documentation examples are now type-checked in CI. {@ocaml[ … ]} blocks in manual pages and .mli doc-comments compile against the real library; {@ocaml skip[ … ]} and {@ocaml parse[ … ]} opt out. Merged in #2387.

  • js_of_ocaml-toplevel gains Wrapped and Async APIs. Wrapped.execute returns errors/warnings as values instead of printing to stderr. Async runs the toplevel in a Web Worker via Lwt message passing. Merged in #2377.

  • New bindings: Service Worker, MessageChannel/MessagePort, and Cache API. Covers both the page-facing registration side and the worker-side global scope. Merged in #2381, closing #1464.

  • CSS Font Loading API binding (FontFace module). Provides FontFace.create, document.fonts, and FontFaceSet with typed descriptors. Merged in #2255.

Fixes

  • Tyxml: repeated attributes now keep the first occurrence, matching browser DOM semantics. Previously multiple a_class signals alternated or wiped the attribute. This is a behaviour change for code relying on last-wins. Merged in #2383.

  • Runtime: restore compare_ext dispatch for immediate-vs-custom-block comparison. Fixes polymorphic comparison across zarith's immediate/custom boundary. Open in #2391.

Compatibility and Releases

  • Release 6.4.1 (2026-06-30). Point release fixing dune 3.24 path-form regressions in the Wasm runtime and test harness. See release notes.

  • Compiler now consumes hints produced by OCaml 5.5 (ocaml/ocaml#13438). Merged in #1721; requires OCaml ≥ 5.5 for the hint path.

oxcaml/opam-repository

Permalink

Fixes

  • posixat fails to compile on macOS (arm64) because it references Linux-only symbols (linux/openat2.h, renameat2). Reported by @giltho; issue remains open. #53

oxcaml/oxcaml

Permalink

Features

  • SSA intermediate representation (experimental, -use-ssa): New SSA IR between Cmm and CFG with a reducer framework, automatic dead-code elimination, and a Cfg_compare validator that checks register-equivalence against the legacy pipeline. Currently on by default for coverage; forced off under -llvm-backend. #5810

  • Functional mode polymorphism (experimental, -extension mode_polymorphism_alpha): Integrates level-relation operations (update-level, generalize, instantiate) into type inference. Polymorphic mode variables are printed as [< 'm] / [> 'm] bounds with constraints. Printing gated behind -extension mode_polymorphism_printing. #5483

  • Compact frametable encoding (draft): Reworks native-code frame tables via alignment removal, linker string de-duplication, and a "short" descriptor format. Reduces rodata by ~28% and total executable size by ~5.5% on measured binaries. ARM64 and internal-assembler support pending. #6399

  • Heap extension runtime API (draft): caml_add_extent(base, size, free_callback) registers externally-allocated memory as valid OCaml blocks managed by the GC. The callback fires when all blocks in the extent become free. #6248

  • BFS meet strategy for Flambda2 (draft, -X flambda2-meet-strategy=bfs): Replaces depth-first equation processing with breadth-first saturation to avoid losing precision when recursive meets introduce new equations. A "hybrid" variant delays only on detected loops. #6191

  • Alloc regions for zero-alloc checking (draft): Threads alloc_region parameters through all allocating primitives in Flambda2. No checking is performed yet; regions are erased at Cmm translation. Groundwork for @zero_alloc annotations. #6121

Fixes

  • Heap-to-stack pointer invalidation in Flambda2 (draft): Detects when simplify_make_block would construct a heap-to-stack pointer and emits an Invalid node. Addresses a class of memory-corruption bugs previously undetected (e.g. #6316). #6400

  • GADT equation scope escape through functors (open): Corrects constructor scopes after functor application so that types refined by local equations cannot leak into the resulting signature. Prevents spurious typechecking of M.t foo outside a match on the witness. #6406

10 repositories · no changes