Repository activity
40458 results across all weeks
configure: use Autoconf support for detecting the C++ compiler
The C++ compiler detection is currently only enabled when ocamltest is enabled. We re-use the C compiler front-end by passing the -xc++ option of GCC and Clang to make sure the same toolchain is used for C and C++.
Antonin Décimo (@MisterDA)expect tests (feature request): an "expect discard" extension to discard toplevel output
"expect tests" are the compiler-internal mechanism for snapshot testing, where basically we write toplevel sentences and record their toplevel output. This is very useful to test type-system things in particular, and can also be useful to test stdlib functions (benefitting from the type-directed toplevel printer to see the results), etc.
Gabriel Scherer (@gasche)fix OSEC id for ephemeron infix pointers
sorry for my typo in an earlier PR...
Hannes Mehnert (@hannesm)fix record updates with unchanged atomic fields
There are two reasonable avenues to make this bug go away:
Gabriel Scherer (@gasche)fix(typing): call `cleanup_abbrev_memo` in `try_expand_safe_opt`
This PR makes try_expand_safe_opt call cleanup_abbrev_memo, as try_expand_safe and safe_abbrev already do.
Alistair (@johnyob)manual: add syntax for partial labeled tuple patterns
As noticed in https://github.com/ocaml/ocaml/issues/15200#issuecomment-6424614476.
Simmo Saan (@sim642)ocamltest: Allow shell scripts to modify variables declared by the test
The script action of ocamltest allows the shell script to modify variables in ocamltest’s environment by writing lines of a certain form to their response file, like myvar="value" for instance. However, up to now this was limited to built-in ocamltest variables, which ocamltest stores in a separate environment. This extends the feature to variables declare…
Olivier Nicole (@OlivierNicole)ocamltest: pass OCAMLRUNPARAM to the test program only
The ocamlrunparam variable was exported into the environment of every command ocamltest runs; the compilers and linker are OCaml programs too, and a test setting c=1 crashed the MSVC linker. Inject it for the run action and hook scripts only.
Nick Barnes (@NickBarnes)pattern-matching: fix 15171 (obscure compile-time assert failure on redundant guarded or-patterns)
This is a proposed fix for #15171 reported by @smuenzel. Most of the commits involve fixing some aspects of the -dmatchcomp output (look at the commit messages to see before/after examples), and then a few-lines refactoring and a one-line fix.
Gabriel Scherer (@gasche)runtime: add explicit unit suffixes to OCAMLRUNPARAM word-sized params
Coauthored with Claude.
Yihang "Corvo" Liu (@glyh)runtime_events: constructor indices are wire format and the header version does not track them
The integer values of the runtime_phase, runtime_counter and lifecycle constructors are the wire format of the ring buffer. A consumer decodes each integer against the constructor order it was compiled with, and constructors have been inserted mid-type rather than appended, so a consumer reading a program built against a different OCaml version attributes ev…
Tim McGilchrist (@tmcgilchrist)select_win32.c: fix wait for writable socket when passing mixed file descrs
The Win32 emulation used when Unix.select receives a mixture of sockets and non-sockets uses WSAEventSelect to wait for events on sockets. The "write" notification in this function (FD_WRITE) is edge-triggered, not level-triggered, as explained in the documentation https://learn.microsoft.com/en-us/windows/win32/api/winsock2/nf-winsock2-wsaeventselect:
Nicolás Ojeda Bär (@nojb)stdlib: Add Map.inter and Map.diff
This adds intersection and diff on maps with a slight optimization over a merge based implementation which cannot be done using the module's public API, similar to what Map.union does.
Nathan Rebours (@NathanReb)trunk/5.6 gets stuck compiling large classes
The diffast-core package from opam-repository now takes hours to compile on 5.6 vs. 5.5 and older.
Kate (@kit-ty-kate)vsnprintf_l failure is not checked in caml_alloc_sprintf_l
Printf.sprintf "%.*f" max_int 1.0 raises Invalid_argument "Buffer.add_substring" on macOS, because caml_alloc_sprintf_l does not check whether vsnprintf_l succeeded.
KC Sivaramakrishnan (@kayceesrk)1.26.1
CHANGES:
Ulysse (@voodoos)1.28.1
CHANGES:
Ulysse (@voodoos)New ocamllsp/completePrefixAtPos request
Backport the new ocamllsp/completePrefixAtPos request type for OCaml 5.4.
Sean Whitton (@spwhitton)Strip all merlin attributes when printing expressions
merlin.loc_stack was added in ocaml/merlin#2121 and needs to be removed.
Paul-Elliot Anglès d'Auriac (@panglesd)Tests hanging on macos
I am planning to make a release as soon as possible because the next version of Dune will ship breaking changes in stdune that are already fixed on master. (cc @shonfeder)
Ulysse (@voodoos)