js_of_ocaml 6.3.0 releases WASM number and reference unboxing plus a constant-sinking pass, reducing generated code size and improving runtime performance. On OCaml trunk, a merged optimisation of lazy for structured constants yields a 2.7× speedup over 5.3, and a segfault fix in Runtime_events was cherry-picked to the 5.5 branch.
Features
OCaml trunk: merged optimisation of lazy for structured constants, eliminating forward-block indirection. Benchmarks show a 2.7× speedup over 5.3. #13919
Dune 3.22 (main): new patch_back_source_tree sandbox mode lets actions modify dependencies; changes apply to the source tree via dune promote. #13495
Dune 3.22 (main): dune build @doc-markdown generates Markdown documentation using odoc ≥ 3.1.0, mirroring the existing @doc HTML workflow. #12581
OxCaml: merged the borrow_ operator, enabling temporary aliased access to unique values without consuming uniqueness. The original value regains uniqueness after the borrow scope ends. #5215
js_of_ocaml 6.3.0: introduces WASM number unboxing, reference unboxing, and a constant-sinking pass. Reduces generated code size and improves runtime performance. release
Lwt 6.1.0: merged major release of the promises and event-driven I/O library (lwt, lwt_ppx). PR
Fixes
OCaml 5.5: fixes a segfault in Runtime_events caused by comparing the mmap return value against NULL instead of MAP_FAILED. Cherry-picked to the 5.5 branch. #14519
Dune 3.22 (main): dune exec --watch now kills long-running processes on source changes. The fix will not appear in 3.21.1. #12360
js_of_ocaml 6.3.0: fixes inlining, parallel renaming, and purity of comparison functions. Also fixes compilation of loops at the start of exception handlers. release
Compatibility and Releases
OCaml 5.5: caml_unix_get_sockaddr is now an inline macro rather than a function declaration, breaking C code that re-declares the symbol. Affects packages such as lwt. #14516
Dune 3.22 (main): --ignore-lock-dir is removed; use --pkg=disabled to disable package management. Breaking CLI change. #13498
js_of_ocaml 6.3.0: removes non-existent setDay and setUTCDay from Js.date and deprecates several Dom_html types. Code referencing the removed methods will fail to compile. release