Thicket thicket
ocaml
REPOS 27
W39.2026 · 21–27 Sep

All repository summaries

13 active · 14 unchanged

Back to weekly digest

ocaml-multicore/domainslib

Permalink

Fixes

  • Issue #135 (opened 2026-06-17, still open) reports that fib_par.exe hangs indefinitely on single-CPU systems because kcas_integration computes num_domains = recommended_domain_count() - 2, yielding −1, which Task.setup_pool rejects. A one-line patch clamping the value with max 0 is proposed in an undated comment. The issue's updated_at falls within this interval (2026-09-27), but the undated comment cannot be attributed to that date; the specific event triggering the update is not established by the supplied data.

ocaml-multicore/eio

Permalink

Features

  • Eio.Process.Env (v1.6, #930, #923): snapshot the current environment, modify it via Env.override, and pass it to Process.spawn ~env.
  • Eio.Path open functions gain ?follow (v1.6, #938): ~follow:false raises on symlinks instead of following them.
  • Eio_unix.File module (v1.6, #937): construct Eio files and flows from raw file descriptors.
  • Windows: rename support (v1.6, #934): Eio.Path.rename now works on the Windows backend.
  • Eio_linux.Low_level.Fixed.avail (merged #940): previously internal function exported to the public API.
  • Path.sync_dir (opened #943): fsync a directory; no-op on Windows. Not yet merged within this interval.

Fixes

  • eio_windows NT path handling and stat (v1.6, #932): creating files with absolute paths no longer returns Unix.ENOENT; several other path-handling bugs corrected.

Compatibility and Releases

  • Eio 1.6 released (v1.6, 2026-09-21). Also removes Promise.id from the public API (merged #941); the binding had been silently lost in a 2021 refactoring.

ocaml/dune

Permalink

Fixes

  • Menhir + relocatable compiler: Unbound module Stdlib on macOS. dune build with a (menhir ...) stanza and dune pkg (relocatable compiler) now succeeds. The fix adds an explicit Stdlib dependency to the inference rule and reclassifies the path for sandboxing. Merged in #16374; will ship in 3.25.

  • Menhir qualified module group interfaces (include_subdirs qualified). Menhir parsers can now serve as foo/foo.ml group interfaces. The fix opens a private alias interface for inference and uses digest-based helper names to avoid filename-length and collision issues. Merged in #16464 and #16489; closes #8989 (open since 2023). A follow-up extending the fix to OCaml 4.02–4.07 was opened in #16497.

  • Windows: file-descriptor hashing crash. Hashing Windows handles by integer value caused assertion failures and CI timeouts. Dune now uses Poly.hash on Windows. Merged in #16476; fixes #16459.

  • Concurrent dune build RPC rejection. Running dune build while another instance holds the build server now produces a descriptive error instead of server error (error kind: Code_error). Merged in #16486; fixes #16219.

  • Package dependency closure for installed-file tracking. Library-induced package dependencies are now followed to their full package closure, preventing stale install states. Merged in #16362.

Features

  • job_slots rule (proposal). A new rule lets a build compute and expose a slot count via an environment variable, enabling polyglot sub-builds (e.g. Cargo) to size their parallelism without a jobserver. Open in #16475; labelled needs-version-bump, so it will require a new dune language version.

  • Merlin PPX cache (proposal). Dune would emit USE_PPX_CACHE and PPX_DEPS Merlin directives so the editor caches PPX-processed files, reducing editor latency for PPX-heavy projects. Open in #16460; depends on a Merlin release.

  • -Werror=unguarded-availability-new for C/C++ on macOS (proposal). Dune would add this flag to standard C/C++ flags so that calls to APIs newer than the deployment target fail at compile time rather than crash at runtime. Open in #16456; fixes #16413.

Compatibility and Releases

  • The Menhir/relocatable-compiler fix (#16374) is targeted for the 3.25 release; a nightly binary is available via nightly.dune.build. The job_slots rule (#16475) will require a language-version bump and is expected in 3.26.

ocaml/merlin

Permalink

Features

  • The enclosing command (LSP Selection Range) now selects sub-expressions incrementally rather than jumping to the full parent node, and handles nested type constraints as separate layers. Merged by @panglesd and @PizieDust. (#2121)
  • A new PPX_DEPS field in .merlin files is included in the PPX cache key, so USE_PPX_CACHE invalidates correctly when a PPX dependency changes. Merged by @panglesd. (#2127)

Compatibility and Releases

  • The inlay-hints [@merlin.hide] approach (removing the avoid-ghost-location option) was closed without merge; the underlying inconsistency was addressed by #1923 instead. No protocol change resulted. (#1894)

Fixes

  • The parsetree cache fingerprint now includes the full Merlin configuration, preventing stale results when a config change (e.g. reader, extension, warnings) affects parsing. Fixes #2130. Merged by @panglesd. (#2131)
  • CI and Dockerfile references to merl-an now point to the canonical repository instead of a personal fork. Merged by @Tim-ats-d. (#2128)
  • Reproduction tests for issues #1980, #2033, and #1786 were merged, replacing earlier superseded PRs.

ocaml/ocaml

Permalink

Features

  • Dynarray.sort, Dynarray.stable_sort, Dynarray.stable_sort_sub added to the standard library. They delegate to Array.stable_sort_sub on the backing array and raise on length change. Merged. (#14848)

  • Bulk float-array operations (dot, sum, scale, axpy, add, mul) proposed as new Float.Array primitives. The compiler emits a four-lane loop in Cmm; an arm64 NEON exemplar is included. No language or type-checker changes. Open proposal. (#15094)

Compatibility and Releases

  • Weak.get_copy is deprecated and now an alias of Weak.get (no shallow copy). Code relying on the copy-to-avoid-lifetime-extension semantics must migrate. Merged. (#15064)

  • New warning 76 (syntactic-unerasable-optional-argument) proposed for optional arguments not followed by a non-labelled argument. Extends warning 16; disabled by default. Open proposal. (#15097)

Fixes

  • Int.popcount, Int.leading_zeros, Int.trailing_zeros now lower to %popcount, %clz, %ctz primitives. arm64 emits a single clz/ctz instruction; other backends fall back to a C call. 2–3× speedup on amd64 and arm64. Merged. (#15018)

  • Unaligned memory accesses enabled on s390x. Bytes.get_int64 and related operations no longer emit byte-at-a-time sequences. 2× speedup on z15 for unaligned 64-bit reads. Merged. (#15090)

  • Typemod.type_package now calls Mtype.lower_nongen, preventing a weak type variable from unifying with an out-of-scope type. Previously the compiler accepted programs that should be rejected. Merged. (#12195)

  • Unix.select on Windows: fixed an out-of-bound array access in the 63-fd packet emulation (missing slot for the stop handle) and a socket-handle leak on the error path. Merged. (#15093, #14975)

ocaml/ocaml-lsp

Permalink

Features

  • Topiary formatter (open, by toastal): adds Topiary as a formatting backend. Topiary does not support range formatting, so the full document is reformatted on each request.

Compatibility and Releases

Fixes

ocaml/ocaml.org

Permalink

Features

  • A hosted MCP server is live at POST /mcp, exposing five read-only tools: package dependencies, reverse dependencies, package documentation overview, and module documentation. Connector-setup docs cover Claude, ChatGPT/Codex, Gemini, Mistral Vibe, and local models. (#3785, #3790, #3794, #3801)

  • Doc output is sanitised (active markup stripped, invisible characters removed, body capped ~100 KB) and labelled content_trust: community-authored-untrusted. Per-IP rate limiting (60 req/60 s) and a fixed SSRF allowlist guard the endpoint. (#3787, #3797, #3800)

  • /llms.txt (curated LLM site index) merged after a link-freshness pass. Five AI-drafted tutorials now carry a provenance note. The Functional Programmer blog feed (OCaml-tagged) added to Planet. (#3579, #3798, #3791)

Fixes

  • INRIA and Gallium Planet feeds switched from http:// to https:// (plaintext endpoints hung indefinitely). The patricoferris feed now uses river's ~repair to tolerate a missing <updated> field. (#3784, #3783)

  • The dune build opam-generator drift that silently dropped uucp and the river git pin is resolved. The obsolete pin is replaced by a river >= 0.6 constraint available in the updated opam-repository. (#3778, #3777)

Compatibility and Releases

  • The opam 2.6.0 release announcement was published on the site. (#3774)

  • Ocsigen Server 8.0.0 blog post published, describing a modernised API and single-command deployment. (#3805)

  • Docker base image moved from deprecated Alpine 3.21 to 3.24; the opam-repository pin advanced from a 13-month-old commit to 2026-09-18, unblocking ~79 package upgrades. (#3781, #3782)

ocaml/odoc

Permalink

Fixes

  • Issue #1339 (OCaml 5.4 build failure) closed 2026-09-25; resolved by PR #1355. odoc 3.0.0 previously failed to compile against OCaml 5.4 due to Typedtree.package_type and Tpat_alias signature changes.

  • PR #1494 opened 2026-09-22: handles the ocamllex exhaustiveness warning introduced in OCaml 5.6 by matching the missing-case explicitly rather than relying on a caught Failure exception. Backward-compatible; no 5.6+ features used.

  • PR #1481 (open, under review as of 2026-09-23): corrects inconsistent dropping of type equalities in include-strengthened signatures. The fix also permits stripping include sig … end bodies, a significant build-time reduction for ppx_template-heavy OxCaml code.

Compatibility and Releases

  • PR #1495 opened 2026-09-23: adds a regression test for sibling libraries sharing module names (issue #1450), covering a resolution edge case in cross-library references.

Ongoing Work

  • PR #1464 (OxCaml parameterized libraries, fixes #1390) remains open; no merge or state change within this interval.

  • Multiple open issues received updates on 2026-09-25 within a ~20-minute window (e.g. #1286, #1160, #1345, #1346). No per-issue comments or state transitions are recorded in the supplied data; the specific change is not determinable from the evidence.

ocaml/opam

Permalink

Fixes

Compatibility and Releases

ocaml/opam-repository

Permalink

Features

  • ocsigenserver 8.0.0 (merged): Public modules moved under wrappers (Ocsigen_extensions → Ocsigen.Extensions, etc.). New ocsigenserver-compat package provides old names. 16 published ocsipersist versions now bounded to ocsigenserver < 8.0.0. (#30806)

  • windtrap 0.2.0 (merged): Complete rewrite of the test framework. Adds stateful testing (model-based, with shrinking) and mutation testing. Extensive breaking API changes: run returns an int, Testable restructured, Gen combinators renamed, snapshot/expect API replaced by expect/expect_file, coverage instrumentation renamed to ppx_windtrap.coverage. (#30817)

  • eio 1.6 (merged): Adds Eio.Process.Env for snapshotting and overriding process environment, ?follow argument to Eio.Path open functions, Eio_unix.File module for creating files from FDs, and Windows rename support. (#30781)

  • wax 0.2.0 (merged): Adds parenthesized type ascription (e : t), compilation-hint annotations, --faithful decompilation mode, and LSP quick-fix support. Fixes multiple silent miscompilations in numeric-width handling. (#30788)

  • New post-quantum crypto packages (merged): mldsa.0.2.0, mlkem.0.2.0, slhdsa.0.2.0 (FIPS 204/203/205 pure-OCaml implementations) and hpke.0.3.0 (RFC 9180 with ML-KEM KEM support). (#30820, #30813)

Fixes

  • Frama-C/Frama-Clang 0.0.20 (merged): Removes the camlp5 dependency. framaCIRGen registers as a clang tool via libtooling. Supports Clang 21 and 22; minimum Clang is now 13. Compatible with Frama-C 33.0 Arsenic. (#30680)

  • sail 0.20.3 (merged): where is now a reserved keyword (breaking for models using it as an identifier). SAIL_PLUGIN_DIR accepts a colon-separated list. Adds sail --tool strip_json for JSON config files. (#30798)

Compatibility and Releases

  • New packages (merged): segmap.20260927 (segment maps for renamings), z3.5.1.0 (Z3 SMT solver bindings), utcp.0.0.9 (MirageOS TCP implementation), verdict.0.1.4 (Eio-native AI client). (#30823, #30797, #30796, #30773)

ocsigen/js_of_ocaml

Permalink

Features

  • Recursive-descent JavaScript parser (open, by hhugo) replaces the Menhir-based parser. Accepts all valid test262 programs and rejects invalid ones the old parser accepted; reports errors as unexpected {, expected , or ).
  • Skip wasm-opt --opt 1 (open, by vouillon). Reduces wasm_of_ocaml test-suite compilation time by ~60% and preserves variable names for debugging.

Compatibility and Releases

Fixes

oxcaml/opam-repository

Permalink

Fixes

  • PR #60 (oxcaml/opam-repository, opened 2026-08-15 by shunueda) proposes a corrected dune-ignore patch for the oxcaml-compiler opam package after an upstream implementation change broke the existing patch. The PR remains open; its updated_at timestamp (2026-09-26) falls within the reporting interval, but no dated comment, merge, or closure is recorded in that window. Evidence is insufficient to confirm a specific in-interval event beyond the timestamp update.

oxcaml/oxcaml

Permalink

Features

  • SSA intermediate representation (merged): New -use-ssa flag activates an experimental SSA pipeline between Cmm and CFG, with a Cfg_compare validator that cross-checks the SSA path against the legacy Cfg_selectgen output per function. Enabled by -experimental-optimizations; incompatible with -llvm-backend. #5810

  • Link-time optimization flags (open): -support-lto stores Reaper traversal data in .cmx files; -reaper-solve runs a whole-program fixpoint over multiple units; -reaper-rebuild resumes codegen from a .ltosol file. A demo build of ocamlopt with LTO produces a 41.6%-smaller binary on ARM64. #7264 #7268 #7274 #7289

  • Linker-level dead code elimination (open): Per-symbol data sections and link-order frame-table pieces let --gc-sections drop unreferenced functions and module fields. Measured 31.8% file-size reduction on a 1.3 GB production executable; a follow-up eliminating module blocks reaches 38.2%. #7324 #7334

  • Guard-page stack idling for fiber scaling (open): Suspended fibers on the major heap are "idled" into malloced buffers, freeing their 8 MiB guarded mappings. A 100 000-fiber test completes with a peak of 2 000 VMAs (previously unbounded). AMD64 only; OCAMLRUNPARAM Xmax_guarded_stacks (default 1024) bounds total guarded stacks. #7349

  • Allocation mode axis (open): Introduces alloc / noalloc / noalloc_strict as a first-class modality orthogonal to statefulness, enabling the type checker to reject allocation in noalloc contexts. #7162

Fixes

  • Reaper segfault with -no-reaper-unbox (merged): The calling-convention-changes analysis was skipped when unboxing was disabled, causing all functions to be treated as having mutable conventions. The analysis now runs unconditionally. #7320

  • Principality check for mode crossing (merged): crossing_of_ty used generic_level as the threshold, but moregen operates at subject_level (one below), so the actual crossing was always replaced by Crossing.max. The check now tests >= subject_level. #7298

Compatibility and Releases

  • -syntax-quotations / -no-syntax-quotations flags (merged): Syntax quotation is now a per-invocation compiler flag (also settable via OCAMLPARAM syntax-quotations=0|1) rather than a configure-time constant. The #syntax quotations on|off directive still overrides per file. Accepted by ocamlc, ocamlopt, ocaml, ocamlnat, ocamldep. #7286
14 repositories · no changes