All repository summaries
14 active · 13 unchanged
ocaml-multicore/eio
PermalinkFeatures
-
Incremental directory reading (merged): New
Eio.Path.with_dir_entriesandread_dir_entriesAPIs stream directory entries without materialising the full list. Benchmarks show ~13× speedup oneio_linux(1.46 s → 110 ms) for a 300k-entry tree. #821 -
Path.open_dirrenamed toopen_subtree(merged): The function that confines aPath.tto a subtree (viaRESOLVE_BENEATHon Linux) now carries a name that signals the security restriction. Old name retained as a non-deprecated alias. #853 -
Pseudoterminal support (open):
Eio_unix.Ptycreates ptys viaposix_openpt; alogin_ttyfork action starts a new session and dups the tty onto the child's stdio. Exposed as?login_ttyonEio_unix.Process.spawn_unix. #531 -
Process-spawn errno propagation (open): Failed fork actions now report the child's
errnoto the parent, which raisesUnix.Unix_errorinstead of a genericFailure. AddsEio.Process.Argument_list_too_long(E2BIG) and maps ENOENT/EACCES/ENOEXEC to dedicated errors. #854
Fixes
-
eio_linuxENOMEM on ring init (merged):io_uring_queue_initfailure due to insufficient memory now falls back toeio_posixinstead of raising an unhandledUnix_error. #852 -
eio_linuxscheduler simplification (merged): Fixed-buffer read/write retry logic removed from the scheduler; the scheduler now returns bytes transferred and the fiber re-issues if needed. Eliminates special-case job types and thefile_offsetdistinction. #849 -
Windows backend: 100 % CPU on idle bidirectional copy (open, under investigation): A two-way
Eio.Flow.copyproxy holds a full core on Windows while the same workload is idle on Linux. Minimal reproducer provided. #837
Compatibility and Releases
- Fixed buffers and ZFS kernel bug (open proposal): On old ZFS versions, fixed-buffer I/O triggers a kernel bug requiring reboot. Proposal to disable fixed buffers by default in
eio_linuxor gate the uring backend on kernel ≥ 6.17. #845
ocaml-multicore/ocaml-uring
PermalinkFeatures
- Merged:
Uring.Socketcreation now accepts an optional~flagsargument (defaultCLOEXEC), letting callers set socket flags at creation time without a separatefcntlcall. (#151) - Open: per-operation
RWFflags (e.g.RWF_DSYNC,RWF_NOWAIT) exposed on read/write submissions, enablingEio_linuxto skip redundantfsyncand avoid buffer-cache pollution on large copies. Requires Linux 6.x for some flags. (#154) - Open: bindings for vectored
readv/writevon fixed buffers; the prior C stubs were misnamed and did not issue vectored syscalls. (#155)
Compatibility and Releases
- Open: buffer backing type switches from
Bigarray/CstructtoBytes. Benchmarks show no I/O throughput regression, lower large-buffer allocation cost, and a small penalty for sub-2 KB buffers (clamped to 2 KB to stay immovable). (#153) - Closed (not merged): the earlier
Cstruct-to-Bstructslab-allocator experiment is superseded by the simplerBytesapproach in #153. (#101) - Closed (not merged): a Linux-specific
Errnomodule was deemed redundant becauseEioalready handles retry viaUnix_error; the author will revisit if specific codes prove necessary. (#152)
ocaml/dune
PermalinkFixes
-
Dune package management: packages containing symlinks (e.g. menhir) are no longer re-downloaded on every
dune build. Fixed in #14509. -
Dune lock directory: spurious
(when false "")entries are removed from generated lock-directoryRunactions. Merged in #15128, fixing #15090 and #15099. -
Dune Configurator: passes
--personalityto pkgconf only when version ≥ 1.7.0, fixing build failures on RHEL 8. Merged in #15142.
Releases
Features
-
Dune Configurator: adds
Pkg_config.query_variable, a wrapper aroundpkg-config --variable=<name> <package>for querying package-specific variables. Merged in #15078. -
Dune per-module include flags: a consumer's compile command now receives
-I/-Honly for libraries itsocamldepreference set reaches. Merged in #14518.
Compatibility
-
Dune 3.23+
(diff)action: the action now distinguishes an empty file from a non-existent file, breaking test suites that omit reference files. Use(diff?)for optional arguments. Closed in #15134. -
Dune 3.22+ Rocq/Coq: coq-elpi 2.6.0 and other Rocq packages fail to build, likely due to removed legacy plugin loading. Tracked in #15125 (open).
ocaml/merlin
PermalinkFixes
-
locatequery now resolves the correct binding in let-punning syntax (e.g.let+ x in x), returning the outer definition instead of "Already at definition point." Merged in #2066; closes #1796 and #1579. -
Signature help now appears when a function's type is expressed through a type alias (e.g.
val f : twheretype t = int -> unit). Issue #1927 closed 2026-06-08.
Compatibility and Releases
Open Issues
-
locatestill returns an incorrect position for types defined via functor application (e.g.type t = M(T).t). Confirmed reproducible; #1610 remains open. -
In
.mlifiles,locateresolvesopen Importto the submoduleImport.Importrather than the top-level module. #1748 remains open; a regression test is planned.
ocaml/ocaml
PermalinkFeatures
-
Configurable domain stack size (open, #14860): A new
Ssetting inOCAMLRUNPARAM(e.g.OCAMLRUNPARAM='S=50M') sets the per-domain stack size. Addresses stack overflows in C FFI code on spawned domains (#14195). -
Weak.iter,Weak.iteri,Weak.foldi_left(open, #14792): New stdlib functions that iterate live slots in a weak array.foldi_leftis a C primitive passing each element directly to the callback, avoiding one heap allocation per live element. -
Extensible IO channels (open, #14775): Proposal implementing the modular IO RFC. Adds user-defined in/out channels alongside existing C channels (renamed "native"). Under stdlib-team review.
Fixes
-
mark_headerlazy-tag check (merged, #14856): Corrects an inverted comparison introduced in #14816 that could cause memory corruption and SEGVs in multi-domain programs using laziness. Not backported to 5.5. -
Filename.quote_commandredirection escaping on Windows (merged, #14853): Redirection arguments (e.g.~stdout:"output&false") were not fully escaped, allowing command injection viaSys.command. The fix is proposed for backport to 5.5. -
tfunctorexpansion-node update (merged, #14845): Fixes an uncaught exception when expansion nodes containtfunctorarguments. Also restores type abbreviations involving module-dependent types incopy_sep. -
Native
Iatomic_fetch_addon all backends (open, #14575): Replaces the C call path with inline assembly on amd64, arm64, riscv, and power. Benchmarks show the existing C path is faster in single-domain mode due to thecaml_domain_alone()fast path; the native path targets multi-domain performance. -
Object finalizer prevents collection (open, #14861): A
Gc.finalise_lastregistered in aninitializerblock capturesselfimplicitly through field lookup, creating a reference cycle that blocks garbage collection. Workaround: wrap the finalizer in a standalone function.
ocaml/ocaml-lsp
PermalinkFeatures
-
Ocamlgrep structural search (proposal, open). #1607 proposes integrating ocamlgrep's cmt-based structural search into ocaml-lsp. Comments suggest the integration may shift to editor plugins consuming JSON from an
ocamlgrepcommand rather than an LSP extension. -
Hover on compiler warnings (ongoing PR). #1606 by PizieDust adds hover information for compiler warnings in the editor (addresses #717). Review discussion points to reusing the compiler's
Warnings.parse_optionsinterface.
ocaml/ocaml.org
PermalinkFeatures
- Merged: Backstage OCaml page updated with a WASI/Wasm prototype.
exnref-based exception handling is now the default for WASI binaries; no extra compile flags required. (#3667) - Open: Add Amazon Web Services to the industrial users page. AWS uses HOL Light (an OCaml-based theorem prover) for formal verification in AWS-LC. (#3681)
Compatibility and Releases
- Closed (not merged): Proposed adding an explicit note that OCaml 4.14 remains supported on the Compiler Release Cycle page. Closed because the clarification was already present. (#3675)
Fixes
- Closed: The first code example in A Tour of OCaml contained a stray
#that caused a syntax error in utop. Corrected. (#3683) - Merged: Workshop 2026 "Important Dates" pills rendered near-black text on an orange background. Switched to white text for legibility in both themes. (#3673)
- Open: Garbage-collector tutorial to note that
Gc.tunerequires Jane Street's Core library, not Stdlib;Gc.get/Gc.setare the stdlib equivalents. (#3682)
ocaml/odoc
PermalinkFeatures
Ongoing
Fixes
- CI lower-bound builds failed on missing
.cmxfiles in ocamlfind 1.9.6. The test constraint is now>= 1.9.8. Merged by @Leonidas-from-XIV. #1446
Compatibility and Releases
ocaml/opam
PermalinkFeatures
- New
prefixandprefixexecsections in.installfiles, enabling path-relative installation of files and executables. Queued for the next release; dune maintainers are evaluating adoption. (#6938, open) opam init --bareskips default compiler selection, reducing init time by ~2.5 s. Fixes #5815. (#6957, open)
Fixes
- Reftest for repository HTTP operations updated to handle timestamps embedded by
opam admin index, restoring reproducibility on Windows CI. (#6961, merged 2026-06-10) opam installfails with exit code 99 when the git repository owner differs from the invoking user, becausegit ls-filesrejects dubious ownership. (#6963, open)
Compatibility and Releases
- Removes 366 unused exported values, fields, and constructors from the opam API. Downstream packages (opam-rt, opam-publish, opam-bundle) reference removed symbols and will need updates. (#6954, open)
opam switch createwith multiple configured repositories can fail due to repo priority;--debugoutput does not show which repositories the solver consulted. (#6965, open)opam lintsupports promoting warnings to errors via--warningsbut offers no mechanism to demote a default error (e.g. Error 46) to a warning. (#6964, open)
ocaml/opam-repository
PermalinkFeatures
-
OCaml 5.5.0 RC1 added to the repository. Includes a stdlib fix for a filename-quoting injection channel on Windows, three runtime fixes (bigarray accounting, thread-safe
getgrnam_r/getpwnam_r, ephemerons), and a compiler CLI fix for hidden-directory load-path leakage. (#29923, merged 2026-06-11) -
New packages merged:
awskit(10 packages, AWS S3 client with Eio/Lwt adapters),kind2.3.0.0(SMT-based Lustre model checker),msts.0.1.0(geocentric lunar ephemeris),syto.0.1.0(POSIX fnmatch),luna.0.1.0(Luhn validation),transom.0.2.0(WebView IPC),doctor.0.4.0(env diagnostics CLI),contract.0.2.0(typed HTTP API contracts),cabal.0.1.0(agent backend abstraction),melange-edn.0.3.0. (#29980, #30019, #30045, #30020, #30030, #30037, #30015, #30014, #30008, #30028) -
mnet 0.0.3 adds a new
mnet-sshpackage implementing SSH for unikernels, plus a TCP daemon kill API. (#30011, merged 2026-06-11)
Fixes
-
Caqti 2.3.2 fixes timed cleanup of idle entries from connection pools. (#30026, merged 2026-06-12)
-
Windows depext recompilation fix: installing
conf-c++and otherconf-packages no longer triggers a full compiler rebuild. The 0install solver now selects only the required depext. (#30040, merged 2026-06-14)
Compatibility and Releases
-
migra 2.0.0 (breaking):
Migra_engine.*modules are now private; logging no longer installs a reporter as a side effect of linking—callMigra.Logging.setup ()explicitly. RemovedFileNotFound,DatabaseNotFound,TransactionFailederror variants. (#30033, merged 2026-06-14) -
ocaml-ai-sdk 0.4 (breaking):
Ai_provider.Prompt.System,Ai_provider.Tool.t, andAi_core.Core_tool.tgain aprovider_optionsfield; the standaloneProvider_metadatastream constructor is removed. Anthropic and OpenRouter providers gain prompt-caching support. (#30005, merged 2026-06-08) -
dune 3.24.0~alpha2 PR was closed without merging on 2026-06-14 after revdeps triage identified a
%{bin:...}executability regression and melange build errors. The alpha is not available in the repository. (#29996) -
resource-pooling 1.3 (open): replaces deprecated
lwt_logwithlogs/logs.lwt, removing thelwt < 6.0.0upper bound.Server_pool.sectiontype changes fromLwt_log.sectiontoLogs.src. (#30048)
ocsigen/js_of_ocaml
PermalinkFeatures
-
wasm_of_ocaml --enable wasinow produces a WASI binary runnable by wasmtime or wizeng. Merged in #1831 (by vouillon). Output convention unchanged: a.jsfile plus an.assets/directory. -
Documentation migrated from wiki to odoc + wodoc under a single
dune build @doctarget. Merged in #2261 (by balat). The wiki pipeline, Python tooling, and highlight.js are removed;wodoc buildgenerates the themed site published to gh-pages.
Compatibility and Releases
- Release 6.4 is tracked in #2241 (ongoing), targeting OCaml 5.5 compatibility. A comment notes OCaml 5.5.0 is expected within a week of the 2026-06-12 update.
Fixes
-
Int64.shift_rightreturned wrong values for negative operands with shift counts 41–47 (e.g.Int64.shift_right (-1L) 44gave0xffffffffff0fffffinstead of-1L). Merged in #2278. -
Str engine: SIMPLEOPT/SIMPLESTAR/SIMPLEPLUS opcodes now bound-check against string length, fixing an infinite loop on patterns like
[^;]*;against a string without a semicolon. Merged in #2277. Instruction arguments are no longer masked to 8 bits, fixing silent mismatches for regexps with >256 constant-pool entries. Merged in #2298. -
Ephemeron data WeakMaps are now keyed on the dereferenced key object rather than the WeakRef wrapper, restoring the liveness model: data is collected once all keys are dead. Merged in #2274.
-
The
share_constantpass now correctly matchesrequire(notrequires), preventing node-target programs from emittingrequire(str_node_fs)where a bundler expects a literal. Merged in #2284. -
Marshal BLOCK32 reader uses an unsigned shift (
>>> 10), fixing round-trip of blocks with ≥ 2²¹ fields that previously desynchronised the stream. Merged in #2275.
oxcaml/merlin
PermalinkCompatibility and Releases
- PR #239 ("[5.4] Merge minus-37", dkalinichenko-js) was closed without merging on 2026-06-09. No body, labels, or comments are present; no user-facing change is described.
No features, fixes, research developments, or experimental compiler changes are evidenced in this interval.
oxcaml/opam-repository
PermalinkFeatures
- Remaining Dune-built packages added to the OxCaml opam repository, completing the set needed to build OxCaml tooling under Dune. Merged 2026-06-11 by jonludlam. #49
Compatibility
- Dune's switch to a stricter patch implementation (ocaml/dune#14177) invalidated OxCaml's build patch; fuzzing support is planned upstream in ocaml/dune#15146. A temporary workaround pins a dummy
oxcaml-dunepackage to sidestep a dependency conflict duringdune lock. #51
oxcaml/oxcaml
PermalinkFeatures
-
SSA intermediate representation (open, updated 2026-06-14): New
-use-ssaflag introduces an SSA IR between Cmm and CFG, with aCfg_comparevalidator that checks register-equivalence against the legacy pipeline. Currently on by default; defaults will flip before merge. #5810 -
AVX-512 for the amd64 SIMD backend (open, proposed 2026-06-14): Proposal to add EVEX encoding, 512-bit ZMM register modelling, and an opmask (k0–k7) register class to the backend. Scopes incremental intrinsic-table batches followed by backend changes; width-parametric design targets AVX10 transition. #6257
-
Layout-polymorphic functions (open, updated 2026-06-13): Implements
let poly_ f x = …translation through typedtree, tlambda, and slambda, using kind templates and closure conversion. The simple static evaluator handles the generated slambda; deduplication deferred to later PRs. #5870 -
Heap extension runtime API (draft, created 2026-06-12): Adds
caml_add_extent(base, size, free_callback)to the internal runtime API, allowing external code to register pre-initialised blocks for GC management. Draft for design discussion on naming and callback semantics. #6248 -
Unloading of metaprogramming compilation units (open, updated 2026-06-10): Treats unloadable CUs as scannable heap regions with explicit dependency edges; the major GC unloads a unit when no Code_block or data block remains marked. Uses back-pointers in
.textand aCode_pointermachtype for safepoint liveness. #5960 -
Loop-elimination experiments (open, updated 2026-06-10): Three analyses (induction-variable finding, termination proof, dead-IV proof) enable complete elimination of empty
forloops under-cfg-merge-blocks. Based on the SSA IR work in #5810. #5840 -
ocamlfilt demangler (open, updated 2026-06-12): Pure-OCaml command-line tool that reverses OxCaml's flat0, flat1, and structured name-mangling schemes with automatic per-symbol detection. Reads symbols from stdin or arguments; unrecognised input passes through unchanged. #5100
Compatibility and Releases
- Upstream 5.4 merge (merged 2026-06-12): The
merge-upstream-5.4branch is now merged into main, bringing the OxCaml frontend in line with OCaml 5.4. A follow-up merge of main back into the 5.4 branch (#6179) also landed the same day. #5325