Thicket thicket
ocaml
REPOS 27
W34.2026 · 17–23 Aug

All repository summaries

11 active · 16 unchanged

Back to weekly digest

ocaml-multicore/eio

Permalink

Features

  • v1.5 adds Windows path support: Eio.Path.t now handles Windows-style separators and absolute paths, previously POSIX-only. (release)
  • Eio.Net.connect gains ?bind_to and ?options arguments for pre-connect socket configuration (bind, REUSEADDR, REUSEPORT). (#875, merged)
  • Proposes Eio.Vars for portable environment variable access (get, put, get_all) integrated into Stdenv. (#923, open, under review)
  • Requests Eio.Path.link for capability-safe hard links; needed for OCI image extraction where tar hard-link entries must stay within the extraction root. (#925, open)
  • Proposes Eio.Fiber.List.partition_map; author notes Limiter is hidden from the interface, preventing self-implementation. (#927, open)

Fixes

  • Trace events allocated 23 words each while the ring was active; resolved upstream in OCaml 5.6 via #14984. (#914, closed 2026-08-20)

Compatibility and Releases

  • v1.5 released 2026-08-19, including the above features, a fix for empty-path handling in unconfined fs, and 32-bit build fixes. (release)
  • opam files gain available constraints: eio_windows installs only on Windows, eio_posix excludes Windows. (#921, merged)

ocaml-multicore/ocaml-uring

Permalink

Features

  • ocaml-uring (open PR, updated 2026-08-20): Proposes replacing the bigarray/cstruct buffer type with plain bytes, requiring only that the backing buffer exceed 2 KB. A comment (undated) describes aliasing non-moving bytes via a proxy managed bigarray and a finaliser, with no performance cost when bigarray is unused. Not yet merged. #153

ocaml/dune

Permalink

Features

  • Add dune ocaml inferred-mli MODULE to generate an interface using the module's actual build configuration (preprocessing, deps, opens, flags). Stale or missing interfaces are applied via dune promote. Merged in #16111. Fixes #12727.

  • dune describe workspace now reports each module's origin: source, rule-generated (with dune file and deps), ocamllex, ocamlyacc, menhir, or wrapper. Merged in #15478. Fixes #12998.

  • Sandboxed actions on Linux are now confined with Landlock directory-FD policies, restricting writes to the action sandbox and /dev. Dune 3.25 only; disable with DUNE_CONFIG__LANDLOCK=disabled. Merged in #15858.

  • A joint SAT solver for dune pkg lock solves all requested platforms in one pass, yielding a ~1.75× end-to-end speedup. Proposes removing the portable/non-portable lock-directory distinction. Open in #15982 and #15987.

Fixes

  • Watch mode on macOS no longer stops rebuilding after an fsevents queue overflow, and no longer crashes when a cancelled build's process group returns EPERM. Merged in #16068 and #16059.

  • Merlin now receives CMT annotation paths for private library modules, restoring locate for modules hidden by (private_modules ...). Merged in #15977. Fixes #4892.

  • Rocq native plugins (.cmxs) are now materialized in the package-scoped layout, fixing a regression that broke theory builds with plugins. Merged in #16054. Fixes #16048.

  • dune ocaml top-module, dune ocaml top, dune promote, and dune describe workspace now resolve absolute and subdirectory-relative paths consistently. Merged in #16135, #16142, #16143, #16144.

ocaml/merlin

Permalink

Fixes

  • destruct now works on patterns inside let-bindings (e.g. let _ : t = v 1 2). Previously the command failed on such patterns. Merged by @panglesd in #2117.

  • Open bug: destruct raises an Assert_failure on object method patterns (e.g. x with|0). Reported by @rgrinberg via ocaml-lsp; tracked in #2112.

Features

ocaml/ocaml

Permalink

Features

  • Sys.filepath_exists added to the standard library; raises Sys_error on permission errors instead of returning false. Sys.file_exists docstring updated to recommend the new function. Merged by @nojb. (#14974)

  • Float.fma now emits a single fused-multiply-add instruction (fmadd, fmadd.d, madbr) on arm64, power, riscv, and s390x instead of calling caml_fma in C. Merged. (#15008)

  • sqrt and byte-swap externals emit native instructions on s390x (sqdbr, lrvgr/lrvr/lgfr) and riscv (fsqrt.d) instead of C calls. Merged. (#15002, #15005)

  • Minor GC hot path (oldify_one) rewritten to inline allocation and avoid global-variable access; measured 2–3 % total runtime improvement on promotion-heavy workloads. Open, under review. (#14571)

Fixes

  • Bytecode loader caml_read_section_descriptors now guards against integer overflow when computing section-table size, preventing a potential crash on malformed executables. Merged. (#14872)

  • Runtime_events.read_poll misreports a recoverable ring-buffer overwrite as Failure("corrupt stream") when the producer laps the consumer; fix re-checks ring_head and adds a producer-side fence. Open. (#15016)

  • Weak.get_copy shallow-duplicates continuations, producing two handles to the same fiber and a segmentation fault on double-continue; fix treats continuations as non-copyable. Open. (#14988)

Compatibility and Releases

  • 32-bit targets now default to _FILE_OFFSET_BITS=64 and _TIME_BITS=64 (large-file and year-2038 support) via Autoconf checks; disable with --disable-largefile or --disable-year2038. Merged. (#14997)

ocaml/ocaml-lsp

Permalink

Features

  • #1986 (open, updated 2026-08-23): Adds textDocument/onTypeFormatting for OCaml and ocamllex files via an optional ocp-indent-rpc helper process. Newline-triggered requests edit only the new line's leading whitespace; a missing or failed helper degrades to no edits.

Fixes

  • #2143 (open, filed 2026-08-21): On OCaml 4.14, when a warning-as-error and a type error share the same source range, the LSP server reports only the first (the warning). The real type error is suppressed. No fix merged yet.

Compatibility and Releases

  • #2142 (closed 2026-08-21): Stdune API changes in dune trunk (#15880) break ocaml-lsp-server compilation. The specific Unix_env type mismatch was already resolved in-tree; the issue was closed pending coordinated release with the next dune.

ocaml/ocaml.org

Permalink

Features

  • Merged: MDX code-testing harness now runs in CI for 14 tutorials and all exercises. Previously no tutorial was tested due to a glob mismatch after a directory reorganisation. #3622
  • Merged: AWS added to the industrial-users page, citing use of HOL Light (an OCaml program) for verifying s2n-bignum in AWS-LC. #3681
  • Merged: OCaml Workshop 2026 page updated with talk authors, abstracts, and a livestream link. #3742 #3749

Fixes

  • Merged: 2ct_03_wasm.md now states that ocamlc targets the WASM-GC extension, correcting a misleading omission. #3719
  • Open: The loops-recursion tutorial references an undefined range function in a fold_left example; no fix merged yet. #3748
  • Open: ~24 remaining tutorials fail MDX testing (compiler-version-specific output, non-evaluable blocks, missing RWO example sources). Tracked for an editorial pass. #3745

Compatibility and Releases

  • Open: Automated scrape of new OCaml Platform releases has been pending since 2026-06-24; not yet merged. #3693

ocaml/opam

Permalink

Compatibility and Releases

  • opam 2.6.0~beta1 released 2026-08-22. Binaries signed by the opam dev team; see the release notes and blog post for upgrade instructions. Install scripts updated in #7099.

Features

  • Nushell support: opam env emits JSON for load-env, and shell-config integration is added (#6873, open).
  • Shell completions for bash, zsh, and PowerShell generated from cmdliner argument definitions, replacing hand-written scripts (#6869, #6868, #6867, open; queued).
  • Solver: DNF conversion skips disjunctions whose atoms are disjoint from the package being filtered, avoiding combinatorial blowup on depends fields with many independent choices (#6831, open).

Fixes

  • opam init --reinit now regenerates the switch list, removes invalid entries, and repairs corrupted switch config/cache files (#7068, merged; in 2.6.0~beta1).
  • Git gc.autoDetach and maintenance jobs are disabled on repositories opam manages, preventing lstat failures on maintenance.lock during opam repo add and build steps (#7073, merged; in 2.6.0~beta1).
  • opam list --debug --safe (and equivalent OPAMDEBUG usage) now emits debug output to stderr instead of silently suppressing it (#7091, merged; in 2.6.0~beta1).
  • opam install --deps-only . no longer recursively scans the entire project tree for extra-files, eliminating heavy I/O on large or uncommitted directories (#7101, open; fixes #7098).

ocaml/opam-repository

Permalink

Features

  • New packages merged: ascon.0.1.0 (NIST SP 800-232 Ascon-AEAD/Hash/XOF, dependency-free), locswijch.0.1.0 (bridges dune pkg builds into opam switches via hard links), rpmfile.1.0.0 (RPM v3/4 parsing), bytream.0.2 (streaming byte I/O), oxbow.0.1.0 (river Wayland window manager), floatml.0.2.1 (IEEE-754 f16/f32/f64/f128 via Rust). (#30549, #30532, #30533, #30534, #30497, #30512)

  • eio 1.5 adds Windows path support (Eio.Path.t now uses \ on Windows), pre-connect socket options (?bind_to, ?options on Eio.Net.connect), and Eio.Path.of_dir. (#30518)

  • AI-generated responses policy merged: new project proposals (including those via opam-publish) require human responses from both submitter and maintainer. (#30367)

Fixes

  • cohttp 6.3.0 fixes a path-traversal vulnerability: Cohttp.Path.resolve_local_file no longer escapes the docroot via percent-encoded ..%2f sequences. New Cohttp.Path.normalise is available for access-control decisions. Also fixes WebSocket handshakes by omitting framing headers on 1xx/204/304 responses. (#30528)

  • mirage-crypto 2.4.0 fixes a timing leak in EC lookup tables (OSEC-2026-17) and hardcoded DH groups in mirage-crypto-pk. (#30507)

Compatibility and Releases

  • prometheus 2.0 (breaking): Lwt removed from the core package; CollectorRegistry.collect now returns a snapshot directly. New prometheus-eio and prometheus-reporter sub-packages allow serving metrics without Lwt or cohttp-lwt. (#30535)

  • cascade 1.1.0 (breaking): Css.hex raises on malformed input; Tree_diff.t gains a required layer_order field; Apply.Make(...).compute now takes ~sheet:Stylesheet.t instead of ~css:string; optimizer profiling API replaced. (#30524)

  • bisect_ppx_ng 3.0.0 (renamed from bisect_ppx): adds OCaml 5.5 support; the old bisect_ppx name is superseded. (#30463)

  • opam 2.6.0~beta1 (8 packages: client, core, devel, format, installer, repository, solver, state) submitted as a PR; not yet merged. (#30542)

oxcaml/opam-repository

Permalink

Fixes

  • #60 (open, by shunueda): Updates the dune-ignore patch for the -ox2 variant after an upstream implementation change broke the existing patch. Awaiting review.

Compatibility and Releases

  • #59 (open, by avsm): Relaxes opam guards to permit dune ≥ 3.24.2, eio ≥ 1.4, and mdx ≥ 2.6.0 alongside Oxcaml. A comment notes OCaml 6.4.1 still has a linking issue; other backported versions pass CI.

Both items are open proposals with no merge or closure recorded in the interval. No new experimental compiler features, research directions, or tooling changes appear in the supplied data.

oxcaml/oxcaml

Permalink

Features

  • Mode Polymorphism Parsing (#6829, opened 2026-08-18, ongoing): Signature items now accept mode variables ('m) and bounds ([< … > …]) in type annotations. Curry-mode constraints are generated implicitly at parse time; mode variables are scoped per signature item.

  • Addressable kinds (#6712, ongoing): Adds an idempotent addressable operator to the kind system, distinguishing kinds whose boxed form is a block from tagged immediates. Enables pointer-taking operations on selected unboxed types.

  • SSA intermediate representation (#5810, ongoing): New SSA IR between Cmm and CFG with a reducer framework, automatic dead-code elimination, and a Cfg_compare validator. Controlled by -use-ssa; currently on by default for coverage.

  • Structured diagnostics (#6807–#6818, opened 2026-08-17, ongoing): Typed diagnostic model with natural-language generation and mode-specific producers. -structured-diagnostics emits JSON Lines on stderr; Merlin gains a structured-errors query.

  • Unboxed products in external calls (#6862, opened 2026-08-20, ongoing): C FFI now follows the target ABI (System V / AAPCS64) for unboxed product arguments and returns, replacing the prior restriction to flat pairs.

Fixes

  • Frametable size reduction (#6399, merged 2026-08-18): Short descriptor format, linker string de-duplication, and shared debuginfo suffixes reduce rodata by ~40% and executable size by ~8%.

  • Heap extension API (#6248, merged 2026-08-17): caml_add_extent registers external memory as GC-managed blocks with a free callback, enabling out-of-heap allocation strategies.

  • Phantom lets and DWARF call sites (#6513 merged 2026-08-18; #6517–#6523 ongoing): Cmm.Cname_for_debugger landed; the 24-PR dwarf202607 series continues with phantom-let translation, availability ranges, and DW_TAG_call_site emission for inlined frames.

16 repositories · no changes