Thicket thicket
ocaml
REPOS 27
W46.2026 · 9–15 Nov

All repository summaries

12 active · 15 unchanged

Back to weekly digest

ocaml-multicore/eio

Permalink

Features

  • Windows symlink and junction support (merged): Eio_posix on Windows now resolves symlinks, junctions, and reparse-point variants without sandbox escapes, using directory handles and C bindings for reparse buffers. Enables Forester to traverse forests containing symlinks. (#968, @avsm)

  • Eio.Switch.remove_hook ~run:true (merged): New flag on Eio.Switch.remove_hook that executes the hook's cleanup actions immediately upon removal, replacing the manual remove-then-cleanup pattern. (#972, @talex5)

  • Windows MDX test suite (open): Activates MDX-based tests on Windows using mdx_skip from mdx 2.7.0+; several POSIX-dependent tests use a helper, with further conversion in progress. (#979, @avsm)

Compatibility and Releases

  • Eio_unix.System_info is now lazily collected (merged): System information is no longer gathered at startup; callers invoke a get function on demand. Reduces startup cost, particularly on Windows. The previous eager value remains accessible for compatibility. (#969, @talex5)

Fixes

  • Error propagation to daemon fibers (merged): Eio.Switch.run now records the switch error before cancelling daemon fibers, so Fiber.await_cancel and Switch.get_error report the actual exception rather than a hard-coded Exit. (#978, @talex5; based on #961 by @vog)

  • Unix socket file no longer deleted on failed bind (merged): Eio.Net.listen on a Unix path registers the unlink hook only after bind succeeds, preventing a second (failing) listener from removing the first listener's socket file. Also cleans up Unix datagram sockets on close. (#971, @talex5; fixes #970)

  • Trailing-slash sandbox escape in eio_posix (merged): A trailing slash on the final path component no longer follows a symlink out of the sandbox. Operations on the target treat "foo/" as "foo/."; operations on the directory entry drop the slash, matching eio_linux. (#967, @avsm)

  • Unix-domain socket cleanup on explicit close (merged): Closing a Unix-domain socket immediately removes its file; previously the file was removed only when the enclosing switch finished, or not at all. Unlink failures are no longer reported as errors. (#977, @talex5)

ocaml/dune

Permalink

Features

  • Dune 3.25.0 released (2026-11-12). Key breaking changes: actions no longer see the shared install staging area on PATH/OCAMLPATH; generated files are now read-only; : is rejected in context names. (release)

  • RPC-backed rule plugins (merged 2026-11-13, requires (lang dune 3.26) + (using plugin 0.1)). Projects define custom stanza forms via a small OCaml executable; Dune builds and invokes the plugin automatically. The existing site-plugin stanza is renamed to (dune_site.plugin ...). (#16760)

  • dune tools env now adds all dependency executables to PATH (merged 2026-11-12). A single eval $(dune tools env) exposes every installed tool binary. Follow-up work proposes sanitising build-tree entries from rule PATH to preserve hermeticity. (#16901, #17004)

  • GC defaults for compiler and Melange commands (merged 2026-11-13 / 2026-11-16). Dune-generated ocamlc/ocamldep invocations default to s=2M and, on OCaml ≥ 5.5, a 128 MiB-equivalent Xsmall_heap_limit. Explicit OCAMLRUNPARAM overrides are preserved. Measured 7–12 % wall-time reduction on release-profile builds. (#16914, #17022)

Fixes

  • Private CMI changes now rebuild consumers (merged 2026-11-10). Editing a module listed in (private_modules ...) previously left consumers stale, causing "inconsistent assumptions over interface" errors until _build was deleted. (#16939, fixes #16071)

  • Eager watch mode no longer reports diagnostics twice (merged 2026-11-10). dune build over RPC with an eager watch server printed each error once per goal; errors are now deduplicated across parallel goals. (#16900, fixes #15609)

  • Workspace cache survives terminal hangup (merged 2026-11-16). SIGHUP is routed through the normal scheduler shutdown path, so the workspace database is persisted and the next build reuses completed rules. (#17064)

Compatibility and Releases

  • Dune 3.25.1 point release in progress (tracker opened 2026-11-14). Three regressions are being backported: dune-site path mismatch (#17031), parser-generator dialect collision (#17030), and Melange .cmj visibility with private_modules (#17020). (#17033, #17034)

  • Proposal: remove user-facing sandbox types (opened 2026-11-10). --sandbox copy will be removed and the (sandbox ...) rule field deprecated, as per-sandbox-type rules are non-portable and prevent transparent implementation improvements. (#16987)

ocaml/merlin

Permalink

Features

  • ocaml-index gains --files-from FILE to read input file names from a file (one per line), avoiding E2BIG when aggregating indexes for many stanzas. Merged. (#2153)

Compatibility

  • GrowInside() in the Vim plugin mis-selects ranges around begin…end blocks containing incomplete match arms (Vim 9.2, Merlin 5.8.1). Open. (#2159)

Fixes

  • case-analysis no longer raises Not_found when a module is only reachable through a dependency's CMI. Merged. (#2152)
  • Hover and destruct now report the correct type for wildcard constructor patterns (e.g. A _ shows int * string instead of string). Merged. (#2149)
  • Record-field completion forwards field attributes, restoring deprecated: true and documentation strings for annotated fields. Open. (#2160)
  • Locally bound names (parameters, let bindings, match variables) no longer inherit documentation from enclosing items. Open. (#2154)
  • A dummy identifier replaces the empty string passed to Ppxlib.Longident.parse, preventing a fatal crash during completion. Open. (#2158)
  • complete-prefix and expand-prefix now pass caching references through their secondary pipeline, correcting cache-hit/miss reporting. Open. (#2156)

ocaml/ocaml

Permalink

Features

  • Head shapes and constructor unboxing (open): Extends [@unboxed] to multi-constructor variant types via a new [@shape] attribute; enables the compiler to track block sizes and tags for representation decisions. #15227

  • Generative constructors (open): A new [@generative] attribute compiles immutable constructors as mutable blocks, forbidding compiler sharing and unsharing to make == semantics precise for formal verification. #15297

Compatibility and Releases

  • Warning 8 (partial-match) fatal by default (open, breaking): ocamlc and ocamlopt would treat an unhandled match case as a hard error; the toplevel keeps it as a warning. Marked backwards-incompatible. #15269

Fixes

  • Pattern matching fatal error (merged): Redundant cases with or-patterns and when guards in a total match triggered Fatal error: Matching: impossible empty matrix. The compiler now rejects the redundant case instead of aborting. #15184

  • ocamlc -dsource infinite loop (merged): Printing special constructors ([], (), true, false) with arguments looped forever; list detection also dropped trailing expressions. Both fixed. #15303

  • String.take_first/take_last/drop_last at min_int (merged): Arithmetic overflow in the n - 1 / length s - n computation returned the whole string instead of "". The clamp now applies before the subtraction. #15277

  • Weak.blit quadratic cost on multi-key ephemerons (merged): A full clean of the destination ephemeron on every element copy made the operation O(n²). The check is now O(1), reducing worst-case iteration from 0.28 s to 0.0009 s in the benchmark. #15143

  • TSan support and POWER runtime bugs (merged): --enable-tsan aborted on exceptions from C calls with stack arguments; a wrong TOC register in caml_runstack's epilogue caused SIGSEGV in caml_free_stack under flambda. Both fixed. #15243

ocaml/ocaml-lsp

Permalink

Fixes

  • ocaml-lsp-server 1.26.1 fails to build against stdune ≥ 3.25: Stdune.Pid.of_int was renamed to Pid.of_int_exn (ocaml/dune#15225), and additional API changes in Stdune.Env, Stdune.Spawn, and Stdune.Io break the build. No installable 1.26.x exists for OCaml 5.4 once stdune 3.25 is in the switch. (#2236)

  • Open PR backports the Stdune.Pid removal and replaces remaining stdune 3.25 API calls with standard-library equivalents (Sys.getenv_opt, In_channel.with_open_bin) to restore builds on stdune 3.22–3.25 for the 1.26.x line. Not yet merged. (#2237)

Compatibility and Releases

  • The break affects only the 1.26.x line (OCaml ≥ 5.4 < 5.5). Version 1.27.0 already removed the Stdune.Pid dependency but still calls Unix_env.get with a string argument, so OCaml 5.5 users on stdune 3.25 also hit a type error. (#2236)

  • A maintainer confirmed a compatibility release for OCaml 5.4 is planned; no release date is stated. (#2236)

ocaml/ocaml.org

Permalink

Features

  • A four-PR stack (#3974, #3975, #3976, #3990) moves package-state rebuilds into a separate ocamlorg-package-builder process. Polls that find no new commits now exit in 0.08 s / 17 MB instead of 0.25 s / 128 MB.

  • Release announcements for dune 3.25.0 and utop 2.18.0 were published on the platform releases page (#4009, #4012).

Fixes

  • The LTS marker moved from OCaml 4.14.4 to 4.14.5, which includes six security fixes; homepage and installation instructions were updated (#4007).

Compatibility and Releases

  • The opam-repository pin moved to ca403de (2026-11-13), bringing dream 1.0.0, caqti 3.1.0, mirage-crypto 2.4.1, ssl 0.8.1, and dune 3.25.0. The ssl 0.8.1 update resolves macOS CI failures on OpenSSL 4 (#4016).

  • Three merged PRs remove ppx_stable, ppx_deriving.show, and odoc from the build; yaml and cohttp-lwt are now declared as direct dependencies (#3998, #3877, #4005).

  • The deployment Dockerfile strips the server binary, reducing the release-profile image from 80.9 MiB to 69.5 MiB (#4004).

  • The 2026-11-10 opam-health run recorded 110 new and 86 removed package versions across compilers 4.11–5.5 (#4011).

  • Issue #4006 (opened 2026-11-10) proposes moving the playground from OCaml 5.0.0 to 5.5 and replacing the unmaintained js_top_worker with js_of_ocaml-toplevel. The issue was closed 2026-11-17, after this interval.

ocaml/odoc

Permalink

Features

  • {!modules: /library/ModuleName} path syntax is now accepted in cross-references. Merged in #1503 (2026-11-10). Part of the larger scope overhaul in #1516.

  • #1516 (open, updated 2026-11-13) proposes limiting cross-reference resolution to the libraries a unit was compiled against. Canonical paths gain a /library/Module prefix form. Aliases must not forward-reference libraries outside the dependency cone.

  • #1501 (open, updated 2026-11-13) proposes a {footnote ...} block for inline documentation, extending the parser and generators.

Fixes

  • #1511 (merged 2026-11-09) changes unit lookup to use the compilation-unit identifier rather than the display name, addressing one case of the duplicate-name problem in #1450.

  • #1465 (open, updated 2026-11-10) prunes [@merlin.hide] subtrees when collecting source occurrences, eliminating spurious clickable links on ppx-generated tokens in rendered source pages.

Compatibility and Releases

  • #1520 (open, active during interval) rebases odoc to OxCaml 5.4.0+ox9. The odoc.opam conflicts clause will need updating; no backward-compatibility shims for older OxCaml versions are planned.

ocaml/opam

Permalink

Features

  • opam pin edit now prints the file's format errors before opening the editor, matching opam show behaviour. Previously, dropped fields were silently absent. (#7239, open)
  • Proposal for a cpu-bits integer filter variable to express architecture bitness constraints (e.g. cpu-bits >= 64) without enumerating every 32-bit arch. Closed as duplicate of #4633. (#7234)

Fixes

  • Corrected the bubblewrap repository URL in documentation and bwrap.sh. (#7237, merged)
  • Replaced dead links in the manual pages; one link (mccs.html) remains unresolvable. (#7236, opened; merged after interval)
  • Suppresses cmdliner's default exit-code list from opam man pages where opam's own codes are already documented. (#7238, open)

Compatibility and Releases

  • opam upgrade (no argument) does not fetch dev-pin sources, while opam upgrade <pkg> does. A PR extends the single-package behaviour to the global command; design discussion ongoing. (#7231, open)
  • New documentation for sandboxing rules (bubblewrap) added; link corrections applied in review. (#7235, open)

ocaml/opam-repository

Permalink

Features

  • dune 3.25.0 (merged): Actions no longer see _build/install/ on PATH/OCAMLPATH; generated files are now read-only; : is rejected in context names. Requires explicit (deps (package …)) for visibility. #31193

  • Frama-C 34.0~beta-Selenium (merged): Requires OCaml ≥ 5.2.0. Adds preliminary Windows support, __attribute__((mode)) partial support, and many API changes for plugin developers. #31236

  • dolmen 0.11 (merged): Adds SMT-LIB 2.7 support. Builtins are now hierarchical (one constructor per theory), a breaking change for pattern-matching code. #31151

  • websocket 2.18 (merged): Drops the websocket-async backend; requires cohttp ≥ 6.0.0. Fails connections with 1002 on RFC 6455-forbidden frames. #31124

Fixes

  • conf-python-3 (merged): Restores the Homebrew python@3.14 lookup that a recent commit broke on macOS. #31158

Compatibility and Releases

  • opam-review CI workflow (merged): New GitHub Action posts lint results as a PR comment, checking naming policy, weak hashes, x-maintenance-intent format, and line endings. #31134

  • New packages: forester 6.0 (mathematical forest tool, tests disabled on Windows), nix-syntax 0.2.0 (Nix expression parser, renamed from flocaml per naming policy), xgboost 0.3.0 (native libxgboost ≥ 3.0 bindings). #31231, #31137, #31152

  • imguiml-raylib 1.0.0 + raylib 2.4.2 (merged): Initial release of the imguiml-raylib binding; raylib 2.4.2 fixes a dune 3.25 version bound. #31212

ocsigen/js_of_ocaml

Permalink

Features

  • The compiler and runtime no longer emit holey arrays for dead block fields or runtime allocations. ocamlc runs 2–4% faster with 4% lower peak memory; fannkuch_redux improves 17%. #2609 (merged, @vouillon)

  • The default switch_size for code generation rises from 60 to 256 cases; switches whose case values span more than 1000 are also split. QuickJS is the only engine measured slower. #2612 (merged)

  • caml_bytes_get/set{16,32,64}u now read and write the underlying Uint8Array directly instead of per-byte calls. The digestif benchmark, which stores state in bytes, was twice as slow before. #2608 (merged, @vouillon)

Compatibility and Releases

  • A draft portint flag represents int as i31 | ref to i64 and nativeint as i64 in Wasm output, making integers wire-compatible with 64-bit native OCaml. No stable API yet. #2617 (open draft, @rricard)

Fixes

  • With GADTs, a variable typed as an integer could be used as a reference in dead code, producing an invalid ref.cast or call on an i32 in Wasm output. The compiler now boxes such variables. #2615 (merged, @vouillon)

  • Empty float arrays in Wasm output (constants, recursive dummies, Float.Array.concat []) carried tag 254 instead of 0, diverging from native behaviour. The tag is now 0. #2594 (merged, @smjleo)

  • Calls to functions stored in blocks are emitted as M[i](x) instead of M[i].call(null, x), restoring V8 inlining. Separate-compilation benchmarks improve 6–19%; whole-program --opt 3 ocamlc is ~2% slower on node 22. #2613 (open, @hhugo)

oxcaml/opam-repository

Permalink

Compatibility and Releases

  • Open PR: disable partial upgrades on Arch Linux in the opam-repository, addressing Arch's package-manager behaviour that conflicts with opam's upgrade workflow. Not yet merged. (#68, dra27-js)

oxcaml/oxcaml

Permalink

Features

  • #7941 (open): Adds type checking for law? clauses in signatures and structures. Each clause must type-check as Boolean; translation reuses Translspec.

  • #8042 (open): Stores law data in .cmx/.cmo files and introduces ocamllaws to extract it. Data is optional (None when -extension laws is disabled).

  • PRs #8038 and #7979 (open): Push FDO counters through the Flambda-to-Cmm and Simplify passes. Counters survive inlining, specialisation, and deleted instructions via region-based collection.

  • #7949 (open): Adds Static_block, Code_pointer, and Out_of_heap_data_pointer machtypes to Cmm. Remaining Int uses become truly integer.

  • #8033 (open): Adds -f<ext>/-fno<ext> compiler flags and --with-arm64-extensions configure option for ARM64 (LSE, LRCPC2, CSSC).

  • #7976 (open): Adds -link-jsir for whole-program JSIR compilation via JSOO. Chains entry blocks across modules and patches symbol references.

  • #7953 (open): Adds -Hx and -open-cmi-x flags to declare include directories for hidden dependencies whose .cmx files are guaranteed present.

Fixes

  • #7998 (open): With -flambda2-join-algorithm n-way, a correct program aborts on an Invalid that Simplify replaces a live call with. The n-way join retains a code ID absent from one input, corrupting the callee set.
15 repositories · no changes