Thicket thicket
ocaml
REPOS 27
W37.2025 · 8–14 Sep

All repository summaries

15 active · 12 unchanged

Back to weekly digest

ocaml-multicore/domainslib

Permalink

Fixes

  • domainslib (ocaml-multicore): Issue #132 reports a ThreadSanitizer data race in camlSaturn__Ws_deque.steal_as_578 triggered by the fib_par.ml README example under OCaml 5.3.0+options with ocaml-option-tsan. The race is reproducible with a minimal four-domain pool and is linked to the previously closed #39. The issue remains open; no fix or annotation has been merged.

ocaml-multicore/eio

Permalink

Features

  • Eio (ocaml-multicore): Open issue #807, updated 2025-09-10, reports that fiber-local state is not inherited by domains spawned via Domain_manager.run; Fiber.get returns None in the child domain. Discussion proposes an opt-in flag on Fiber.create_key or context preservation at Executor_pool.submit.

ocaml/RFCs

Permalink

Features

  • OCaml RFC for...in (PR #56): Open proposal by giltho for a for...in loop construct, described as syntactic sugar over existing iterator calls such as List.iter. Still in discussion; no merged or released change. #56

ocaml/dune

Permalink

Features

  • Dune DUNE_ROOT: New environment variable sets the project root, equivalent to --root. Takes precedence over directory traversal; --root still overrides it. Merged in #12438.

  • Dune RPC formatting: dune fmt and dune rpc fmt can now run while a dune build -w watch server is active, enabling editor-driven formatting without stopping the build. Merged in #12064, closing #11958.

  • Dune OxCaml parameterized libraries: The implements field now accepts a parameter, allowing a library to implement a parameterized library. Requires the OxCaml compiler; the (parameters ...) library stanza is still in progress in #12336. Merged in #12392.

  • Dune Melange melange.runtime_deps: Public libraries can now declare directory targets in melange.runtime_deps, supporting bundled asset directories. Merged in #12297.

  • Dune Docker images: A GitHub Action publishes a minimal Dune Docker image to the GitHub container registry on each release, providing a base for dune pkg deployments without opam. Merged in #12252.

Fixes

  • Dune (pkg disabled): The option now actually disables package management features rather than only changing dune pkg enabled output. Previously undocumented and non-functional; now documented. Merged in #12444.

  • Dune RPC exit code: dune build now returns a non-zero exit code when the RPC connection is terminated unexpectedly, instead of returning 0. Merged in #12446, fixing #12445.

Compatibility and Releases

  • Dune 3.20.2: Release tracker closed 2025-09-11 with changelog merged in #12441. Backports include fixes from #12325 and #12324.

  • Dune package management on Windows: Multiple issues opened this week document failures: shell scripts cannot execute as binaries (#12432), menhir.exe is not found in the build tree (#12433), ocamlfind.install omits .exe extensions (#12430), and compiler source fetching fails on directory targets (#12429). Tracked under #11161.

ocaml/merlin

Permalink

Features

  • Merlin (PR #1951): Proposes a new locate-type-multi command returning a tree of all identifier locations within a type, enabling "Go to Type Definition" for compound types in VSCode. Still open.

Compatibility and Releases

  • Merlin (issue #1964): Clarified that ocamlmerlin single locate does not search build directories for generated files; the workaround is to promote generated files to the source tree.
  • Merlin (PR #1890): Ongoing typer-domain experiment for parallel typing; a comment notes the work may have moved to a separate merlin-domains branch.

Fixes

  • Merlin (PR #1962): Merged fix for type recovery at structure-item level; a missing raise_error caused entire recursive definition blocks to be dropped on error. Closes #1953.
  • Merlin (PR #1963): Merged fix for an uncaught exception in Typecore affecting mutual recursive functions, improving error recovery.
  • Merlin (PR #1956): Merged fix for merlin_reader on OpenBSD, where execve(2) requires argv to contain at least one element.

ocaml/ocaml

Permalink

Features

  • OCaml trunk (typing recovery): Open PR upstreams Merlin's typing recovery into the typechecker via a -typing-recovery flag, letting the compiler report multiple errors in a single pass rather than stopping at the first. #14241

  • OCaml trunk (as-patterns): Open PR lifts restrictions on existentials in as-patterns, enabling retyping of patterns such as Value_boxed_int _ as y. Reviewers flag a potential regression when mixing existential and non-existential constructors. #14229

  • OCaml trunk (transparent ascription): Open PR implements step 1 of the transparent ascription RFC, splitting module aliases into static and dynamic variants with [@@static_alias] and [@@dynamic_alias] attributes. #14064

Fixes

  • OCaml trunk (warnings): Merged PR silences unused-constructor warnings on variant constructors defined as private, supporting the GADT-index pattern type a = private A recommended in the manual. #14225

  • OCaml 5.4 (parsetree mapper): Merged PR adds a missing location in toplevel directive arguments to AST mappers and iterators, fixing tools such as ocamlformat that normalize locations. #14236

  • OCaml trunk (C headers): PR opened during this period removes an unused variadic argument from CAML*alloc macros in memory.h, resolving a C99 compliance error when user code includes the header under strict warnings. #14238

  • OCaml trunk (compaction): Merged PR applies integral type hygiene throughout the compaction code, fixing potential integer-overflow bugs identified in OxCaml. #14123

  • OCaml toplevel (-init): Open PR fixes ocaml -init FILE -e "expr" so the init file is read before evaluating the expression, matching interactive-mode behaviour. #14190

ocaml/ocaml-lsp

Permalink

Fixes

  • ocaml-lsp: PR #1553 opened to fix hover on object method calls returning "No information available" in LSP editors. The fix adds a missing case in the hover filtering logic. (Opened 2025-09-09; not yet merged within this interval.)

Workflow

  • ocaml-lsp: Discussion #1554 asks whether cross-module code completion can work without .cmi files alongside .ml sources when using ocamlopt directly. The reporter sees unbound-module errors in Zed and VSCode when intermediates are placed in a separate build directory.

ocaml/ocaml.org

Permalink

Features

  • ocaml.org security pages: Merged PR adds /security and /security-reporting pages documenting the OCaml Security Response Team, vulnerability reporting process, and advisory database. (#3300)

  • ocaml.org Backstage OCaml: Open PR introduces a "Backstage OCaml" content category separating unstable and experimental posts from the main OCaml Changelog. (#3278)

  • ocaml.org web packages: Merged PR adds vif, ocaml-h1, and httpcats to the web development documentation page. (#3311)

  • ocaml.org nushell instructions: Open PR adds opam env instructions for nushell to the Windows installation page. (#3307)

Fixes

  • ocaml.org Planet aggregation: Closed issue confirms the Planet scraper now correctly aggregates blog posts from blog.robur.coop after a four-month gap. (#3263)

Compatibility and Releases

  • ocaml.org Dune Package Management: Open PR migrates the ocaml.org build from opam to Dune Package Management, requiring dune >= 3.20 and make for local builds. (#3281)

  • Dune 3.20.2: Merged changelog entry records the Dune 3.20.2 release on the ocaml.org platform releases page. (#3302)

ocaml/opam

Permalink

Features

opam (PR #6434, open): Adds spelling hints when a package name is not found, using edit distance to suggest the closest match. Affects opam install, opam remove, opam pin, opam source, and related commands.

opam list (issue #6677, open): Proposes replacing single-line truncation with multi-line indented output, matching the behaviour of opam pin. Would prevent users from missing package descriptions in narrow terminals.

Fixes

opam update (PR #6614, open): Loads only changed opam files during repository updates instead of rescanning the full tree. Reduces repository loading from ~10 s to ~0.01 s on Windows and ~3.5 s to ~1 ms on Unix.

opam update (PR #6625, WIP): Restructures HTTP repository handling to read the downloaded tar.gz in place rather than extracting it to disk. Fixes multiple performance and portability issues on Windows and network filesystems.

Compatibility and Releases

opam (PR #6670, queued): Adds build support for OCaml 5.5. Queued behind the test-matrix update in PR #6684.

opam CI (PR #6684, queued): Adds OCaml 5.4 and trunk to the GitHub Actions test matrix. Depends on a corresponding opam-repository change.

opam API (PR #6644, merged 2025-09-11): Replaces all polymorphic uses of List.mem with typed alternatives to avoid Repr.equal. Affects downstream API consumers of the opam-core library.

ocaml/opam-file-format

Permalink

Compatibility and Releases

  • opam-file-format: PR #62 to generate the .opam file with Dune and update the menhir extension to 3.0 was closed without merging on 2025-09-12. No user-facing change results.

ocaml/opam-repository

Permalink

Features

  • OCaml 5.4.0 beta2: packages for the second beta release merged into opam-repository, including a type-system variance fix, Windows Thread.set_current_thread_name, and a Weak.set memory-ordering fix. (#28483)
  • MinGW/Cygwin conf packages: conf-freetype, conf-cairo, conf-sdl2-net, conf-sdl2-mixer, conf-sdl2-ttf, conf-sdl2-image, and conf-liblz4 now install native MinGW libraries on Windows, enabling standalone executables. (#28515, #28514, #28513, #28512, #28510, #28507, #28505)
  • proton.1.0.15: new OCaml driver for Timeplus Proton (ClickHouse native protocol), supporting streaming queries, LZ4/ZSTD compression, TLS, and connection pooling. (#28518)

Fixes

  • lwt 6.0.0~alpha01 upper bounds: < "6~" constraints added across dependent packages to prevent resolution conflicts with the Lwt 6 alpha. (#28482)
  • tezos-rust-libs checksums: incorrect MD5/SHA256/SHA512 hashes for versions 1.1–1.7 corrected; archives re-hosted to restore installability. (#28491)

Compatibility and Releases

  • albatross 2.6.0: breaking release removes legacy wire-protocol commands and replaces --drop-label with --no-drop-path for full-name reporting. (#28503)
  • opentelemetry 0.12: breaking change to Collector.cleanup (now takes a callback); adds Eio collector and Logs integration. (#28469)
  • uucd/uucp/uunf/uuseg 17.0.0: Unicode 17.0.0 support across the four Unicode library packages. (#28502)
  • tezos packages: marked with no maintenance intent; Tezos publishes via its own channel, so these will be archived. (#28443)

ocsigen/js_of_ocaml

Permalink

Features

  • js_of_ocaml (wasm): Merged reference unboxing (#1958), eliminating redundant reference boxing in generated Wasm. By vouillon.
  • js_of_ocaml (wasm): Merged more precise types for Wasm primitives (#2100). By vouillon.
  • js_of_ocaml (wasm): Open PR for OCaml effects via the Stack Switching proposal (#1832); requires wasm_of_ocaml --enable wasi and a development Binaryen build.
  • js_of_ocaml: Open PR for more aggressive lambda lifting (#1886), measured at roughly 1.45× speedup on a Bonsai benchmark. By OlivierNicole.

Fixes

  • js_of_ocaml (wasm): Open PR to optimize exception handling in Wasm output (#2098). By vouillon.
  • js_of_ocaml (wasm): Open issue reports a WAMR GC type-mismatch crash when extracting boxed integers (#1929).

Compatibility and Releases

  • js_of_ocaml: Open PR to test OCaml 5.4 support (#2103). By hhugo.

oxcaml/merlin

Permalink

Features

  • Merlin (oxcaml), PR #168: Adds LSP syntax hovers documenting oxcaml-specific constructs—modes, modalities, linearity, inlining attributes, and regions. Still open; full mode/modality hover support awaits typedtree location data (internal ticket 4845). Updated 2025-09-11 with revised English descriptions after review.

oxcaml/opam-repository

Permalink

Fixes

oxcaml opam-repository: Merged fix for js_of_ocaml installation failure caused by a bad patch. The updated patch allows js_of_ocaml-compiler.6.0.1+ox to build successfully. (#11, matthewelse)

oxcaml/oxcaml

Permalink

Features

OxCaml small integers: Merged literals for int8, int16, int8#, int16#, int#, untagged chars (#'a'), and small array indices (.S(i), .s(i)). Includes C runtime support, selector intrinsics, and DWARF debugging. (#4635, #4658, #4691, #4677, #4672, #4478)

OxCaml JSIR backend: The JavaScript intermediate representation branch merged to main, adding dynamic integer-width dispatch, effects translation, multi-arity returns, and unboxed tuple handling for extern calls. (#4638, #4681, #4656, #4663)

OxCaml Flambda 2 n-way join: Rewritten to follow the underlying Datalog seminaive algorithm more closely, using leapfrog join for sub-linear performance when joined levels share few variables. Merged 2025-09-11. (#4369)

OxCaml shrink-wrapping: Merged basic prologue duplication to clear hot paths of prologue/epilogue overhead. A dataflow-based alternative (#4710) benchmarks ~2× slower and is unlikely to merge. (#4579)

OxCaml runtime quotations: The #syntax metaprogramming on directive and -metaprogramming flag enable <[ ]> and $ splice tokens in the lexer. A full typing and stdlib implementation is in review. (#4608, #4395)

OxCaml TLS: Thread-local storage merged with the same interface as DLS, using per-thread storage via caml_thread_{get,set}_state. TLS permits safe mutable state without mode crossing. (#4671)

OxCaml ikind prototype: Open PR behind -extension ikinds introducing new subsumption and mode-crossing algorithms for polymorphic variants and GADTs. Not production-ready; under active review. (#4675)

OxCaml Flambda 2 research plan: A batch of issues opened 2025-09-11 outlines next-phase work: reaper value-slot analysis, phantom lets through DWARF, match-in-match heuristics, function specialisation, and a potential Cmm replacement. (#4697, #4698, #4701, #4700)

Fixes

OxCaml Flambda 2 compilation speed: free_names_transitive no longer recomputes free names for already-processed variables, reducing CFML parser compilation from >10 min to ~74 s. Merged 2025-09-10. (#4684, #4674)

OxCaml register allocator: Workaround inserts a block on back edges to prevent reload-before-spill ordering in the split subpass. Merged 2025-09-10. (#4685)

12 repositories · no changes