Thicket thicket
ocaml
REPOS 27
W30.2026 · 20–26 Jul

All repository summaries

15 active · 12 unchanged

Back to weekly digest

ocaml-multicore/eio

Permalink

Features

  • v1.4 released (release). Adds Eio_unix.Pty, Eio.Net.Sockopt, Path.with_dir_entries, Flow.null, Path.chmod/chown, spawn_unix ?uid ?gid ?pgid, Stdenv.override, and Eio_unix.Err.

  • Eio_unix.Pty provides pseudoterminal creation and configuration; spawn_unix ?login_tty connects a pty to a child process. (#531)

  • Path.with_dir_entries reads a directory incrementally and reports each entry's type, avoiding one stat per entry. (#821, #897)

Compatibility and Releases

  • eio_linux now requires Linux 5.18 or later; Eio_main.run falls back to eio_posix on older kernels. (v1.4)

  • Breaking: Net.getaddrinfo raises an exception on lookup failure instead of returning []; error messages now include the queried name. (#900, #866)

  • Function applications eta-expanded to support OxCaml compilation, where local inference requires explicit arity. No effect on standard OCaml. (#898)

Fixes

  • eio_posix on macOS: FDs where poll() returns POLLNVAL (e.g. /dev/null, /dev/tty) now fall back to select() in a systhread. Fixes a crash in Eio.Flow.copy_string to /dev/null. (#893, #757)

  • eio_linux getdents no longer returns an empty batch when only ./.. entries are present, preventing premature end-of-directory on FUSE filesystems. (#897)

ocaml-multicore/ocaml-uring

Permalink

Fixes

  • #160: Reported double-free in the io_uring_queue_init_params error path in uring_stubs.c. Closed 2026-07-20; the maintainer confirmed the dangling pointer was not referenced, so no code change was made.

Compatibility and Releases

  • #156 (ongoing): Request for a build option to use system liburing instead of the vendored copy. The issue was updated 2026-07-21, but the undated comment does not establish a specific resolution or configuration change. Evidence is insufficient to describe a concrete effect on the build workflow.

ocaml/RFCs

Permalink

Features

  • #62 (Drup) proposes an API to manipulate Destination values for rendering. Open since 2026-06-30; updated 2026-07-24. No merged or released change.

Fixes

None in this interval.

Compatibility and Releases

  • #63 (c-cube) opens 2026-07-25 to remove the modular-IO RFC, already rejected in #14775. Open; no effect on compiler or library behaviour.

Note: Both items are open, unmerged proposals in the RFCs tracking repository. No language feature, compiler change, or tooling fix was merged or released in this interval. The evidence does not support further detail on PR #62's 2026-07-24 update (no comments supplied).

ocaml/dune

Permalink

Features

  • dune completion fish now generates a Fish shell completion script with subcommand, flag, and value completion. Install via dune completion fish > ~/.config/fish/completions/dune.fish. (#15515, merged)

  • dune promote <TAB> completes against staged .to-promote entries in the build directory, honouring --root and --build-dir. (#15338, merged)

  • dune pkg enabled queries a running Dune RPC server for the effective --pkg enabled/--pkg disabled state, avoiding a build-lock acquisition. Falls back to the local workspace check when no server is running. (#15589, merged)

  • dune shell TARGET opens an interactive session at a prepared rule action boundary, exposing run, show_action, and show_command for inspecting and replaying individual build steps. (#15597, open)

  • dune describe workspace gains an origin field per module, distinguishing hand-written, rule-generated, ocamllex/ocamlyacc/menhir, and wrapper modules. Opt-in --with-origin-deps flag controls dependency expansion. (#15478, open)

Fixes

  • Artifact-substitution file I/O now runs on the scheduler worker pool, removing a serial bottleneck from builds with many generated files. (#15559, #15598, merged)

  • %{bin:...} PATH layouts on Windows now materialise native executables with the .exe extension, fixing a 3.24 regression that broke tool resolution. (#15518, merged)

Compatibility and Releases

  • Dune 3.24.1 released 2026-07-21. Fixes: jsoo build_runtime_flags silently dropped in separate compilation mode; Melange sandboxing reverted (build-time regression); OCaml 5.5+ compiler packages treated as relocatable; Windows .exe layout fix. (release)

  • Ongoing discussion: deps will no longer load package dependencies transitively in 3.25.0, breaking workflows that relied on transitive closure (e.g. Frama-C test rules). No opt-in flag proposed yet. (#15511, open)

ocaml/merlin

Permalink

Features

  • ocamlmerlin single destruct now closes open record patterns in complete matches, inserting the missing field bindings (e.g. { b = _; _ } → { b = _; a; c }). Merged by @panglesd. #2103
  • The warnings-parsing function is now exposed in the public API, a prerequisite for ocaml-lsp warning handling. Merged by @PizieDust. #2088

Compatibility and Releases

  • opam install merlin fails on OCaml 5.5.0: merlin-lib compilation hits Unbound value Seq.delay in parmatch.ml. Reported by @akhiltulluri; closed 2026-07-27 without a merged fix in this interval. #2108

Proposals

  • Open PR removes value candidates from the type-enclosing fallback list and guards against interpreting * in tuple types as multiplication. Awaiting maintainer review. #2105

Fixes

  • Occurrences queries now correctly report out-of-sync files; a tuple-evaluation-order bug left the staleness cache empty, so ocaml-lsp never received incomplete-result warnings. Merged by @ikostia. #2104
  • Occurrences staleness detection is fixed when Merlin runs from a subdirectory rather than the project source root. Merged by @voodoos. #2097
  • locate and document on an open in a .mli now resolve the module name in the pre-open environment, fixing incorrect jumps when a submodule shadows the opened module. Merged by @lyrm. #2089
  • On Windows, ocamlmerlin.exe falls back to SearchPath when ocamlmerlin-server.exe is absent from the dune test-binary shim directory. Merged. #2095

ocaml/ocaml

Permalink

Fixes

  • The fiber stack cache now has a per-size-class limit, preventing unbounded memory growth when fibers migrate between domains. Configurable via OCAMLRUNPARAM. (merged) #14940
  • The compiler build now ignores OCAMLTOP_INCLUDE_PATH, fixing opam switch create failures on Windows where a stale path caused a fatal error. (merged) #14914
  • The RISC-V backend routes large stack offsets through a li+add sequence, fixing assembler rejections when offsets exceed the 12-bit immediate range. (merged) #14943

Compatibility

  • Record updates { r with … } that implicitly copy an [@atomic] field currently emit a plain load; this PR adds the missing atomic load. (open) #14935

Features

  • Option.try_value and Result.try_value are now available, converting an exception-raising function into an Option/Result. (merged) #14941
  • A proposed Hashtbl replacement provides deterministic iteration order regardless of seed, at a preliminary 4–53% microbenchmark cost. (open) #14956

Performance

  • Inlining the full-application path of caml_apply reduces runtime by ~25% on function-call-heavy workloads; coq-bench shows 1–4% improvement across packages. (open) #14925
  • Checking path equivalence modulo aliases in the type checker reduces compilation of certain Dune-wrapped libraries from >10 min to 170 ms. (open) #14927

ocaml/ocaml-lsp

Permalink

Features

  • Open dune file code action (merged): A new code action searches parent directories for the nearest dune file and opens it via window/showDocument. Stops at dune-project or dune-workspace boundaries. #1817

  • Semantic highlighting: operator classification (merged): OCaml symbolic and word operators now emit the standard operator token type in bindings, applications, and signatures. Binding operators (let*, and*) are included. #1831

  • Dune event tracing (merged): The $/setTrace setting now emits $/logTrace notifications for Dune RPC connections, build events, and the dune ocaml-merlin configuration process. Off level computes nothing. #1899

Compatibility and Releases

  • LSP 3.18 spec update (merged): The bundled metamodel and generated OCaml types now target LSP 3.18.0, adding workspace text-document-content requests, code-action tags, snippet edits, and related protocol fields. No user-facing behaviour change expected. #1749

Fixes

  • Document-symbol selectionRange containment (merged): textDocument/documentSymbol now clips or falls back to the symbol range when Merlin returns an out-of-bounds selection. Prevents VS Code from rejecting the entire response. #1775

  • Polymorphic-variant backtick completion range (merged): Completion immediately after a lone backtick now produces a replacement range covering the typed character instead of a zero-width insert. Fixes #1427. #1823

  • Completion protocol compliance (merged): Sort keys widen past 10 000 items; non-ASCII identifiers and CRLF prefixes parse correctly; deprecation uses CompletionItem.tags when supported; polymorphic variants report Constructor when the client lacks EnumMember. #1883, #1886, #1903, #1887

  • Semantic-tokens capability negotiation (merged): The server advertises semanticTokensProvider only when the client declares support, requires the relative format and full-request capability, and honours the delta opt-out. #1851, #1853, #1856, #1859

ocaml/ocaml.org

Permalink

Features

  • #3713 (open, smorimoto): Restructures opam package version pages to separate "Latest version", "Previous versions", and "Versions not normally selected by opam". Replaces misleading "release date" labels with "Added to opam-repository" and exposes UTC ISO dates via time[datetime].

  • #3722 (merged, vouillon): Adds a new blog feed to OCaml Planet.

Governance

  • #3725 (open, nojb): Proposes an update to library team governance documentation. No further detail provided in the PR body.

Fixes

  • #3719 (open, smasher164): Corrects the 2ct_03_wasm.md documentation to state that ocamlc targets the WASM-GC extension, matching the js_of_ocaml README.

Compatibility and Releases

  • #3704 (merged, shonfeder): Announces the Dune 3.24 platform release with changelog.

  • #3723 (open, Alizter): Announces the Dune 3.24.1 patch release with changelog.

ocaml/ocamlfind

Permalink

Features

  • #122 (open, dra27): Proposes making ocamlfind relocatable per #53 and adding OCaml 5.5 support. findlib.conf gains relative-path semantics; configure accepts a relative -sitelib. Review comments were active during this interval.

Compatibility and Releases

  • #122 (open): Adds support for the relative paths OCaml 5.5+ writes in ld.conf, fixing the lookup failure described in issue #115. Not yet merged; no released behaviour change.

ocaml/odoc

Permalink

Features

  • OxCaml parameterized libraries: odoc renders parameterized library definitions, parameter descriptions, and Lib[Param:Impl] references with individual links on each component. Fixes #1390. Open PR by @art-w: #1464.

  • OxCaml kind abbreviations: odoc renders and links kind abbreviations in a new namespace alongside types. Requires explicit [@@ocaml.doc] on the OxCaml-minus31 branch until the parser fix lands. Open PR by @art-w: #1467.

Fixes

  • OxCaml with-bounds: odoc no longer errors when an arbitrary type (e.g. 'a M.t) appears on the right of a with-bound, using a best-effort parsetree conversion. Fixes #1455. Open PR by @art-w: #1466.

  • Spurious source links from ppx-generated code: odoc now prunes subtrees marked [@@merlin.hide] when collecting source occurrences, eliminating nested clickable tokens (e.g. type, t, char on Core.Char). Fixes #1456. Open PR by @klakplok: #1465.

  • Multi-line link extraction: backslash-newline sequences inside {{:url}text} links are collapsed to a single URL; trailing backslash handling refined per RFC 3986. Open PR by @Tim-ats-d, updated 2026-07-22: #1439.

ocaml/opam

Permalink

Features

  • 2.6.0-alpha1 adds --ignore-available-on to bypass the available: field for specified packages. (release)
  • .install files gain root and rootexec sections for installing files from the prefix root. (#6938)
  • The shell env hook now updates the current bin path in PATH in place instead of always prepending opam's path. (release)
  • Repository operations speed up on constrained filesystems via archive-based storage; opam init --bare no longer computes a default compiler. (#6957, release)

Fixes

  • 2.6.0-alpha1 GPG signatures were regenerated after the initial release used an unintended subkey; the corrected .sig files are on the release page. (#7049)
  • opam repository set-url fails when a git fsmonitor socket exists under .git; no fix merged yet. (#7054)

Compatibility and Releases

  • 2.6.0-alpha1 drops OCaml 4.08–4.10 and adds tar, checkseum, and decompress as build dependencies. (release)
  • An ongoing PR series replaces bash/zsh completion scripts with cmdliner-generated ones and adds PowerShell completions; not yet merged. (#6867, #6868, #6869)

ocaml/opam-repository

Permalink

Features

  • eio 1.4 merged: Net.getaddrinfo now raises an exception on error instead of returning []. Adds Eio.Net.Sockopt, Path.chmod/chown, Eio_unix.Pty, and Flow.null. Linux backend requires kernel ≥ 5.18. (#30318)
  • Frama-C 33.0-Arsenic merged: removes the GTK GUI (frama-c-gui now runs the Ivette-based GUI), adds -eva-secure-flow for non-interference proofs, and refactors plug-in APIs. (#30323)
  • New packages merged this week: ocaml-sbom 0.1.0 (SBOM generator), termaid 1.0.0 (Mermaid-to-Unicode renderer), tw 1.0.0 (Tailwind CSS v4), cascade 1.0.0 (CSS library), wax 0.1.0 (Wasm toolchain), theo 0.1.0 (BDD library), fungi 0.2.0 (graph library), noise 0.1.0 (Noise Protocol rev 34), qiskit 2.0.1, menhirformat 0.2.0, menhir-lsp 0.5.0, cvc5 1.3.0-2. (#30292, #30287, #30314, #30280, #30278, #30279, #30338, #30288, #30281, #30327, #30328, #30289)
  • wire 1.1.0 merged: parse_error is now a { at; field; kind } record (was a flat variant); uint32/uint64 decode to Optint.t/Optint.Int63.t instead of native int. (#30313)

Fixes

  • dune 3.24.1 merged: fixes an internal error with duplicate library names under mutually exclusive enabled_if, fixes environment variable passing to formatter actions, and reverts default sandboxing of Melange rules. (#30298)
  • Compiler cloning disabled for OCaml 5.5.0 on macOS (fixes #29496): opam switch create with a second switch no longer fails on a here-document temp-file error. Pending an upstream fix in 5.5.1. (#30317)

Compatibility and Releases

  • lstar-rocq 3.0 merged: teacher modules changed substantially; adds TTT for DFAs and L* for Moore/Mealy machines. (#30291)
  • ocamlfind 1.9.9~preview added for OCaml 5.5: ocamlfind 1.9.8 cannot parse ld.conf under 5.5; the preview is avoid-version-flagged and selected only on macOS, Windows (Cygwin/MSYS2), and Linux for 5.5+. conf-python3-tomli/conf-python3-pyparsing depexts fixed for CentOS and OpenSUSE. (#30285, #30340)

ocsigen/js_of_ocaml

Permalink

Fixes

  • Wasm: resolve assets relative to the runtime file, not require.main (open, by @vouillon) — The Node.js Wasm runtime located separately-compiled .wasm assets via path.dirname(require.main.filename), breaking programs loaded through require, symlinks, or worker threads where require.main is undefined. The fix switches to module.filename, matching the browser branch's self-locating behaviour; the same change applies to the WASI runtime. #2389

oxcaml/opam-repository

Permalink

Compatibility and Releases

  • Open PR marks mdx 2.6.0 as OxCaml-compatible in the OxCaml opam-repository, referencing the upstream declaration in #30305. A comment notes the change requires a dune update (#15592) or mdx build rules break. (#55, dra27-js, opened 2026-07-22, still open)

oxcaml/oxcaml

Permalink

Features

  • A PL-theory formalism of Flambda 2 was produced as a Markdown document and used to identify a constant-folding soundness bug (float32 double rounding, fixed in #6474). The formalism lives in #6475 (open).

  • A Z3 Datalog-based validator for the cfg_simplify dead-code-elimination pass was added in #6564 (open). It was verified free of false negatives by running the compiler on itself.

  • A breadth-first meet strategy (plus a hybrid variant) for Flambda 2 type environments is available via -X flambda2-meet-strategy=bfs in #6191 (open). It defers equation processing to a saturation fixpoint, reducing precision loss under relational tracking.

  • A 24-PR series adds end-to-end DWARF debugging for Flambda 2–compiled code: phantom lets for optimised-out variables, inlined-frame attribution, and call-site DIEs. Key merged pieces: #6503, #6504, #6506. Stacked PRs #6519, #6521, #6522 are open.

  • The reaper was split into traverse, solve, and rebuild stages for link-time optimisation (#6627, merged). New reaper-rebuild and reaper-solve compiler entry points were added in #6632 (merged).

  • Faulting safepoints replace compare-and-branch GC polls with a double-load that SIGSEGVs on interrupt, saving 6–12 bytes per poll on AMD64 (#6551, open). Interrupt latency is +1.2 µs; --disable-faulting-safepoints opts out.

Fixes

  • GADT calling-convention specialisation now joins layouts across all match cases instead of using the first, preventing segfaults when a caller selects a different constructor (#6533, #6356, both merged).

  • Recursive-module inclusion checking now tries unroll depths 1, 2, then N; a 1145-member group drops from 53.5 GiB peak / 5 min to 3.0 GiB / 37 s (#6532, merged).

12 repositories · no changes