All repository summaries
11 active · 16 unchanged
ocaml-multicore/saturn
PermalinkFixes
-
Saturn.Htbl.lengthandSaturn.Skiplist.lengthcan return an incorrect size due to a non-linearizability bug in theSizemodule. A fix forupdate_oncewas proposed and verified; a second related bug involvinguse_indexremains open. #191 (open, updated 2026-10-23). -
Saturn.Bounded_queue.is_fullcan returnfalseon a full queue because it reads a tail pointer that may lag during a concurrenttry_push. A fix using the head-to-next chain as source of truth was outlined. #190 (open, updated 2026-10-22). -
Both interleavings were proven non-linearizable in Rocq using a research prototype, demonstrating a formal-verification workflow for detecting concurrency bugs in multicore OCaml data structures.
ocaml/dune
PermalinkFeatures
- #16760 (open, Dune 3.26): RPC-backed rule plugins let a project define custom stanza-like forms via an OCaml program linked against
dune-rules-plugin. Requires(lang dune 3.26)and(using plugin 0.1). - #16773 (open, Dune 3.26): Melange 1.0 is enabled by default in Dune language 3.26. Explicit declarations and older-language behavior are preserved.
Fixes
- #16622 (merged) / #16647 (merged to 3.25-rc): Share Rocq plugin-layout dependency hashes across discovery, compilation, and extraction. Reduces 3.25.0-RC zero-build time from ~64 s to ~13 s and peak RSS from ~6.7 GiB to ~1.4 GiB on the Skylabs workspace.
- #16617 (closed): 3.25.0~alpha0 no longer exports OCAMLPATH to actions, breaking
opam install -tfor packages that resolve libraries by name. Upstream fixes submitted to hxd, GT, and bogue; opam-repo upper bounds added. - #16675 (merged): Hardlink sandboxes now handle directory dependencies by applying the hardlink mode only to files, avoiding hardlinks to directories.
- #16646 (merged): The
_build/.dbdigest cache is unlinked when marked dirty, so a SIGKILL leaves no stale cache. Fixes #16559. - #16704 (merged): Generated aliases pass
-intf-suffix .dummy-ignore-mliso an unrelated same-named.mliin the build directory no longer breaks compilation. Fixes #5267. - #16623 (merged):
dune pkg lockreports "could not fetch revision" instead of "revision not found" when a git fetch fails due to network issues. Fixes #16466.
ocaml/merlin
PermalinkFixes
-
Inconsistent
.cmicache invalidation (#2141, merged 2026-10-21, by voodoos): Inconsistent.cmifiles were not recorded in the cache, so subsequent changes to those files did not trigger recompilation. The fix ensures correct invalidation when inconsistent.cmifiles change. -
merl-ancrash on emptyLongident(#2142, opened 2026-10-20, by PizieDust):ocamlmerlin single expand-prefixraisesInvalid_argument("Ppxlib.Longident.parse(empty string)")when the completion pipeline synthesises a namelessLongident. Reproducible viavscode-ocaml-platform. Still open. -
Index regression test and fix (#2144, opened 2026-10-21, by voodoos): Adds a regression test and fix for an index-related issue. Merged 2026-10-27, outside this reporting interval.
ocaml/ocaml
PermalinkCompatibility and Releases
- OCaml 5.5.2 released 2026-10-23. Contains six security fixes (OSEC-2026-21 through OSEC-2026-26) and four bugfixes including two miscompilations and a runtime-events infinite loop. Release notes
Features
- Variance-check performance (open): Consolidating the variance check for constrained parameters reduces compile time from 731 s to 83 s (≈8.75×) on a large object-type file that previously stalled trunk/5.6. Proposed in #15188; targeted for 5.6.
- amd64 comparison codegen (open): Replaces
cmp; setCC; movzxwithxor; cmp; setCCto avoid partial-register stalls. Benchmarks show ≈10 % runtime reduction on integer-comparison loops. Proposed in #15178. - Warning 10 message extended (open):
non-unit-statementnow reports the actual type of the offending expression (e.g. "but has typestring"), aiding diagnosis. Proposed in #15194.
Fixes
- Pattern-matching miscompilation (merged):
ocamloptandocamlccrashed or produced wrong results on certain combinations of integer-range patterns with redundant cases, instead of raisingMatch_failure. Fixed in #15187; affects 5.4.1, 4.14.4, and trunk. - Windows
Unix.LargeFile.lseek(merged): The function interpreted itsint64argument as a tagged integer, seeking to a heap-address-derived offset. Regression since 5.1.0. Fixed in #15186; cherry-picked to 5.6. - Runtime-events ring buffer hang (merged):
Runtime_events.User.writewith an event larger than half the ring spun forever. The guard now rejects such events and suggests a correctOCAMLRUNPARAM=esize. Fixed in #15076. ocamlopt -linscanmiscompilesAtomic.compare_and_set(open): The linear-scan register allocator allows result and argument registers to overlap for atomic ops, producing wrong values or segfaults on amd64. Introduced by the native CAS in #14980. Reported in #15189; fix proposed in #15192.
ocaml/ocaml-lsp
PermalinkFeatures
- New
ocamllsp/completePrefixAtPosLSP request (opened, not yet merged in this interval). An Emacs client can request completions for a specific prefix at a specific position from the server, replacing the need to spawn a separatemerlin complete-prefixprocess per request. The response omits snippet items, deprecation tags, and lazycompletionItem/resolvedata. Noinkeyword completion;_is not treated as a typed hole. #2230 by spwhitton.
ocaml/ocaml.org
PermalinkFeatures
- Doc sidebar is now served as a separate htmx fragment at
/p/<name>/<version>/doc-sidebarwithCache-Control: public, max-age=600. Average page size drops from ~1.2 MB to ~130 KB; backend CPU per page from 54 ms to 16 ms. (#3858, merged) - OCaml 5.5.2 release page added to the site. The opam release was still in progress at merge time. (#3873, merged)
Compatibility and Releases
- Runtime data layer decoupled from the build-time data-packer; redundant
ppx_stableandppx_deriving_yamlpreprocesses removed. Server binary shrinks by ~16.5 MB (−19 %). (#3866, #3867, #3871, merged) - Upgrade to OCaml 5.4.1 and Dream 1.0.0~alpha8 is open but blocked:
ppx_importcaps at< 5.5, and a 5.5-compatible release is not yet published. (#3822, open)
Fixes
- Doc-backend fetches are capped at
OCAMLORG_MAX_DOC_FETCH_BYTES(default 50 MB); the search-index digest now uses a headers-only HEAD ETag instead of downloading the fullindex.js. Closes the OOM vector from the awso 371 MB index. (#3767, merged) - Per-version status and search-index caches now use
Bounded_cachewith FIFO eviction. Backend memory levels off below 600 MB across 23 472 distinct package versions instead of growing to 2.8 GB. (#3861, merged) - The
ocaml_package_documentationMCP tool caps the library/module list at 2000 nodes and returns alibraries_truncatedboolean. (#3872, merged)
Content
ocaml/odoc
PermalinkFeatures
-
OxCaml parameterized libraries (#1464, merged 2026-10-21, by art-w): odoc now renders parameterized libraries, parameter descriptions, and instantiated references (
Lib[Param:Impl]) with individual links. Closes #1390. -
Original formatter re-enabled (#1508, opened 2026-10-21, by Leonidas-from-XIV): Re-enables the formatter implementation disabled in 2020 for OCaml < 4.08 compatibility. Affects documentation output formatting.
Compatibility and Releases
-
Build rules simplified for OCaml ≥ 4.08 (#1512, merged 2026-10-24, by Leonidas-from-XIV): Removes
enabled_ifguards that were always true given the 4.08 minimum. No change to which tests run. -
Gpath abstraction removed (#1506, opened 2026-10-19, by jonludlam): Eliminates the Gpath wrapper (never more than a plain identifier) and fixes several path-type inconsistencies found during removal.
Fixes
-
Ambiguity warning now shows unit paths (#1507, opened 2026-10-20, by jonludlam): Replaces uninformative duplicate module names with distinct unit paths (e.g.
b/Foo, a/Foo). -
Lexer warning position for unescaped
{(#1510, opened 2026-10-22, by jonludlam): Corrects the reported offset to point at the brace character rather than an adjacent position. -
Unit lookup by identifier (#1511, opened 2026-10-22, by jonludlam): First step toward resolving #1450 (sibling libraries with identical module names). Adds targeted fix and regression tests.
ocaml/opam
PermalinkFeatures
-
cmdliner-based shell completions (bash, zsh, PowerShell) replace the existing scripts and add PowerShell support. PRs #6868 and #6869 are open and queued.
-
Default solver switch to
builtin-0installfor performance and reduced C++ dependency. PR #6586 is open (WIP); no release target stated. -
opam-auditintegration proposal: security-advisory pin updated duringopam update, warnings onopam install. Issue #7113 is open; no implementation merged.
Compatibility and Releases
-
Removal of
opam list --columns=depexts(tag)(unmaintained since the 2.0 depext rework) and addition ofextra-sourcesas a queryable column. PR #7209 is open; scripts using the old column syntax will break. -
opam list --depends-on=X --latests-onlystill lists packages whose latest version no longer depends on X (e.g. yojson 3.0.0 vs biniou). Issue #7221 is open; labelled as possible duplicate of #6387.
Fixes
-
Vendored cmdliner updated to 2.1.1, closing the gap with upstream fixes (e.g. dbuenzli/cmdliner#191). PR #6867 merged 2026-10-19; closes #6849.
-
opam sourceignoresx-subpath, causing patches to fail on subpath packages (e.g. merlin.5.6.1-504+ox). Issue #7220 is open; confirmed on 2.6.1. -
opam pininstallspin-dependsunconditionally, even when the package is not a dependency. Issue #7218 is open; fix PR #7219 is open.
ocaml/opam-repository
PermalinkFeatures
-
js_of_ocaml 6.5.0 adds OCaml 5.6 support, WebGL2/Crypto/Service Worker bindings, and a ~25% faster compiler. Breaking:
Typed_array.fromArraynow takesnumber_t;js_of_ocaml-lwt.loggeris removed. -
ppx_platform 0.3.0 renames
browser_onlytomelange_onlyand removes the old names (each now a compile error naming its replacement). The runtime module is renamed fromPpx_platform_runtimetoPpx_platform. -
parseff 0.4.0 introduces bounded streaming via a sliding buffer;
parse_sourceaccepts~backtrack_windowand raisesBacktrack_window_exceeded. Breaking: exhaustive error matches must handle the new case. -
New packages merged: stele (Menhir error messages), smt-string (SMT-LIB strings/regexes), workerd (Cloudflare runtime), a2a-client (Agent2Agent protocol), ppx_module, trexio (quantum-chemistry I/O).
Fixes
-
OCaml 5.5.2 ships six security fixes (OSEC-2026-21 through 26) covering
Str.string_partial_match,Unix.map_fileoverflow, demarshaling, Windows command quoting, and runtime events. Two miscompilation bugs are also fixed. -
tls 2.1.4 fixes hostname validation, TLS 1.3 ALPN acceptance, and a server crash on duplicate
SupportedVersionextensions. ca-certs-nss 3.131.1 updates to NSS 3.131.1, fixing CVE-2026-111943 (eMudhra key compromise).
Compatibility and Releases
-
virtfs 2.0.0 adds
Path.common_prefix,Tree.merge,Tree.insert_itemswith conflict policies, andTree.unfoldfor flat iteration over filesystem trees. -
Why3 1.9.0 updates three packages; dependency bounds were added for
why3findandcaisar, which are incompatible with the new version.
ocsigen/js_of_ocaml
PermalinkFeatures
-
js_of_ocaml / wasm_of_ocaml 6.5.0 released 2026-10-22. Adds OCaml 5.6 support, ~25% faster compilation on large programs, and smaller output (base64 binary constants, tighter generated JS). Release
-
Introcaml introspection in JavaScript (#2433, merged 2026-10-22).
Introspect.Printworks under node and in the browser; the newjs_of_ocaml.devtoolslibrary installs a Chrome DevTools formatter that displays OCaml values in OCaml syntax. Gated by--enable/--disable introspection. -
New web API bindings: WebGL2, Web Crypto, Service Workers, Clipboard, Notification, FontFace, and Pointer Capture. The toplevel can now run in a Web Worker via
protocol,worker, andworker_lwt_clientsublibraries. -
Faster debug-event parsing (#2548, merged 2026-10-19). Reduces
--pretty/--debug-infoparsing time by 15–25% on multi-unit programs.
Fixes
-
messageEventclass-type regression (#2555, merged 2026-10-20).EventSource.messageEventandWorker.messageEventare restored as class type aliases ofDom_html.messageEvent, fixing a 6.5.0~beta1 breakage injsoo_broadcastchannel. -
Security fix:
Str.string_partial_matchcorrected (OSEC-2026-21, #2492).
Compatibility and Releases
-
Breaking:
Typed_array.float32Array_fromArray/float64Array_fromArraynow takenumber_t js_array t;js_of_ocaml-lwt.loggeris removed (lwt_logis deprecated). -
Breaking: identical literals in a bytecode program are bound to a single variable and may now be physically equal (
==), matching ocamlopt. Programs relying on!=for distinct literal identity will change behaviour.
oxcaml/oxcaml
PermalinkFeatures
-
-extension omnidirectionality(eager or delayed scheduler) is now available; it convertsTvars toTivars during unification and defers constraint resolution to a scheduler. Merged by @johnyob. #7540 -
break_statements are proposed forforandwhileloops;break_is typed as'aand is restricted to loop bodies (not closures).while truewithbreak_is typed asunit. Opened by @jwshii. #7666 -
deref_patterns allow taking the address of a record field or tuple element inside a pattern match; uniqueness analysis is refined to per-field tracking so an address can own part of a block. Lambda translation raises for now. Opened by @bn-peters. #7707 -
An experiment restricts
let recvalue recursion to five forms (function, mutable-field record,ref,lazy, or non-recursive), eliminating cyclic non-mutable values likelet rec ones = 1 :: ones. Opened by @spiessimon. #7617 -
The
vec512layout and types are promoted to stable; AVX512 backend flags enable by default when configure detects support. A witness is required to obtain avec512value or call an intrinsic. Opened by @TheNumbat. #7685 -
[@zero_alloc conditional]marks functions whose only allocations come from calling a function argument (e.g.List.iter); the backend checker can then proveList.iter ~f:ignorenon-allocating. Ongoing by @wrsturgeon. #7550 -
-frametable-sectionsand-jump-table-sections(both require-function-sections) split per-unit tables into per-function sections so--gc-sectionscan drop them with the function. Opened by @lukemaurer. #7698 #7703 -
A standalone C implementation of structured symbol demangling is proposed for embedding in
perf,llvm-symbolizer, etc.; a companion PR names compiler-generated closures (functor bodies, method closures, partial applications) so profiles aggregate across revisions. Opened by @Svetlitski. #7641 #7659
16 repositories · no changes
- janestreet/opam-repository
- ocaml-dune/spawn
- ocaml-multicore/domainslib
- ocaml-multicore/eio
- ocaml-multicore/eio-trace
- ocaml-multicore/kcas
- ocaml-multicore/meio
- ocaml-multicore/ocaml-iomux
- ocaml-multicore/ocaml-uring
- ocaml-multicore/picos
- ocaml/RFCs
- ocaml/ocamlfind
- ocaml/opam-file-format
- oxcaml/js_of_ocaml
- oxcaml/merlin
- oxcaml/opam-repository