Repository activity
40458 results across all weeks
Improve recursive module usage warnings more
This PR attempts to fix the remaining usage warnings described in #9393. I think that this fix is probably not correct. It changes an aspect of recursive module checking whose purpose I do not understand. However, since it does not cause any of our tests to fail, I hope that either someone will either tell me that this PR is fine or help me to produce a test…
Leo White (@lpw25)Improve recursive module usage warnings more again
This PR tries to fix the same issues as #9394. Instead of changing how recursive modules are type checked it simply makes sure that the Uid.ts created when approximating module types are re-used when those module types are checked properly.
Leo White (@lpw25)Module type with an alias to functor argument crash
Generally, inside the signature of the body of a functor, aliases involving the functor's argument are not allowed (for soundness reasons). However, they seems to be authorized inside module type components (which seems strange to me). If we use this to leak an alias to an unamed argument, we get a fatal error.
Clément Blaudeau (@clementblaudeau)Mutually-recursive functions and slowdowns in Coccinelle
Hello,
Victor Gambier (@vgambier)Prohibitive amounts of runtime lock waits in multicore analysis with Infer
The static analyser Infer uses multiprocessing for parallelising analysis work. We recently developed support for multithreading on OCaml 5.2.1. We observe that the multiprocessing version is much faster than the domain-based one on roughly all parallelisation factors (on small targets we see a 30% wall time penalty on multicore).
Nikos Gorogiannis (@ngorogiannis)Proof of concept for checked cmm optimizations
As a follow up to #8583, this is a proof-of-concept for machine verifiable Cmm optimizations.
Stefan Muenzel (@smuenzel-js)Re-implement weak hashsets using open-addressing with linear probing.
The Weak.Make module of the standard library provides "weak hashsets", sets of elements that are only kept alive if something else in the program keeps them alive. The typical use-case is to implement hash-consing: whenever building a new term, look for an equivalent term that would already be in the hashset and use it instead, increasing memory sharing. Has…
Gabriel Scherer (@gasche)Self
shym
shymStop-the-world barriers take seconds on Windows when a domain repeatedly enters and leaves a blocking section
On Windows, a stop-the-world section can take five to ten seconds when domains that allocate run alongside even one domain that repeatedly enters and leaves a blocking section. Every domain is stopped for that time. The same program on Linux and macOS completes its barriers in a few hundredths of a second.
Daniel Larraz (@daniel-larraz)Structured diagnostics for the compiler
See also https://github.com/ocaml/RFCs/pull/45 and https://icfp24.sigplan.org/details/ocaml-2024-papers/16/Structured-diagnostics-for-the-OCaml-compiler for previous discussions .
Florian Angeletti (@Octachron)Unify returns result rather than raising an exception
I have noticed that almost all calls to unify are directly wrapped inside an exception handler. The cases where we don't have a direct exception handler are the exception that most of the time just expect the unification to never fail.
Samuel Vivien (@samsa1)Update the scope of ancestors in Ctype.unify2_rec
The detection of ambivalence can be confused in presence of multiple equations on the same node.
Jacques Garrigue (@garrigue)Windows: fix out-of-bound array access in Unix.select emulation
This PR splits off the off-by-one bug fix from #14975 by @toots for easier reviewing.
Nicolás Ojeda Bär (@nojb)[no-change-entry-needed] Fix typo in release-info/howto.md
Location: release-info/howto.md (Line 174)
Aditya Mishra (@jane-street)add a new warning for syntactically unerasable optional argument
This PR is a variation on #12739: it adds add a new stricter warning for optional arguments that are not followed by a unlabelled argument in the same abstraction, for instance
Florian Angeletti (@Octachron)caml_domain_terminate: do not lose alloc stats
The comment in domain.c says:
Török Edwin (@edwintorok)confusing error message about modules: ... is not included in ..., instead of unbound module
Hi,
redianthusdeprecate Weak.get_copy
Weak.get_copy would perform a shallow copy of the weak key (when alive) to avoid extending its lifetime. This is both a performance footgun and something that plays badly with other language features (mutation, single-use assumptions on continuations (#14988), etc.).
Gabriel Scherer (@gasche)docs: describe compiler configuration as static
Describe -config and -config-var consistently as reporting the compiler's static configuration. The wording is synchronized across command-line help, the reference manual, and the ocamlc/ocamlopt man pages.
John Riley (@jrile018)feat(typing): add support for optional polymorphic parameters
Encode optional polymorphic parameters as Tpoly (ty option, vars).
Alistair (@johnyob)