Tools covers builds, package management, editors, documentation and JavaScript compilation.
Repository summaries
ocaml/merlin
Permalinkocaml/ocaml-lsp
PermalinkFixes
Open pull requests in OCaml LSP target code-action correctness and server lifecycle:
- Extract local in conditionals: #2241 keeps the new binding inside the nearest
if/elsebranch rather than hoisting it before the conditional. - Extract function: #2242 wraps the extracted call in parentheses so the result compiles as a single expression.
- Combine cases: #2240 preserves literal
|in right-hand sides and splits only at the case arrow, avoiding corruption of strings and function bodies. - Mark as unused: #2248 rewrites
~xto~x:_xfor labelled parameters so call sites likef ~x:1still compile. - Document edits with U+FEFF: #2244 treats a mid-document zero-width no-break space as a regular character, keeping the server's text in sync with the editor.
- Server early exit: #2252 allows the server to shut down cleanly when
ocamlformat-rpcis absent and the editor exits before initialisation. - Let-syntax highlighting: #2238 reports that custom
let-syntax loses semantic highlighting after upgrading to 1.28.1; disabling semantic highlighting in VS Code works around it.
Compatibility
- 1.26.x with Dune 3.25: #2237 backports fixes so the 1.26 line (OCaml 5.4) builds with
stdune3.25.
ocaml/odoc
PermalinkFeatures
-
Odoc strikethrough markup: Documentation comments now accept
{~text}to render struck-through text. Merged in #1515, closing issue #1498. -
Strikethrough rendering: HTML emits
<s>, Markdown emits~~text~~, and LaTeX emits\sout(requires theulempackage). Man pages render the text plainly, as groff has no strikethrough macro. -
Block quotes: A draft adds syntax for block quotes in documentation comments. Open in #1525.
-
Kind abbreviations: A proposal adds rendering and links for OxCaml kind abbreviations, including a
{!kind:xyz}reference form. Open in #1467.
Fixes
-
Odoc import resolution:
odoc compilenow resolves an import only to a unit whose digest matches the recorded one, avoiding links to a same-named unit from a different library. Merged in #1502. -
OxCaml unboxed records: Dropped the always-false
mutable_flag from unboxed record fields, since the compiler rejects mutable unboxed labels. Merged in #1522.
Compatibility
ocaml/opam
PermalinkFeatures
Compatibility
- opam 2.6 backport: the
--cli=2.6fix is being backported to the 2.6 branch for the upcoming 2.6.2 release (#7242).
Fixes
- opam
--cli=2.6: opam 2.6.0 and 2.6.1 rejected--cli=2.6even though--helplisted it as the default; the supported-versions list now includes 2.6 (#7229). - opam documentation links: dead links in the manual, FAQ, and solver pages are updated to working URLs (#7236).
- opam builtin-0install reinstall: a fix is proposed to add
-changedto the fixup criteria so repeatedopam reinstallruns produce the same solution (#7241, #7240). - opam reinstall from empty directory: a bug is reported where reinstalling a non-pinned package with a
remove:field can build from an empty directory, causing the install to fail (#7250).
ocsigen/js_of_ocaml
PermalinkFeatures
Js_of_ocaml: Binaryen's wasm-opt is now optional for wasm_of_ocaml. Without it, the compiler emits a missing-wasm-opt warning and uses its own optimization passes instead. (#2571)
Js_of_ocaml: float formatting is up to 16× faster for integers and 5× faster for random values; the Wasm runtime parses short decimal floats without calling JavaScript. (#2631)
Js_of_ocaml: Int64.to_string of a 19-digit value drops from about 22 µs to 435 ns; Int64.div and Int64.of_string are also much faster. (#2640)
Js_of_ocaml: Random.float and Random.int are about 5× faster in the JS runtime, with output identical to native. (#2630)
Js_of_ocaml: the JS compiler now uses OCaml 5.6 bytecode hints to access bigarrays of known kind directly and compare int64 values with dedicated primitives. (#2628)
Fixes
Js_of_ocaml: Float.erf and Float.erfc now use a port of fdlibm's implementation, reducing error from up to 1e-7 to under 3 ulps. (#2635)
Js_of_ocaml: fixes double rounding in Float.fma, float32 operations, and Float32.of_string, which could produce a wrong last bit. (#2632)
Js_of_ocaml: js_of_ocaml-toplevel now declares a dependency on js_of_ocaml-ppx, so worker_lwt_client is no longer silently skipped when the ppx is not installed first. (#2627)