Repository activity
40458 results across all weeks
Add the (Merlin) Typing-Recovery mechanism directly to the type checker
This PR implements the Typing Recovery mechanism, recently merged into ocaml/ocaml (and superseed #6187), in an appropriate manner. To provide some context, the goal of integrating the recovery mechanism is to reduce the differences between the type checker provided by Merlin and the compiler’s type checker, thereby facilitating the process of upstreaming …
Xavier Van de Woestyne (@xvw)Allow [@cold][@inline] and mark calls to @cold as cold in Flambda
[@cold] no longer overrides an explicit [@inline] attribute (it still implies [@inline never] on its own), so a cold function can be inlined.
ttebbi-janestreetAllow interoperation with third-party signal handlers
The existing Sys.signal_behavior type does not encompass third-party signal handlers, installed by external code (such as another language's runtime). With this PR, such a handler is expressed as Signal_external e, with an abstract value e. The external handler can be re-installed in the usual way with Sys.signal.
Nick Barnes (@NickBarnes)Allow stack-allocating bigstring blocks
Add runtime support for allocating the custom block of a bigstring on the stack.
David Vulakh (@dvulakh)Annotate Stdlib intrinsics with statefulness
dkalinichenko-jsAnnotate atomic and domain intrinsics with statefulness
dkalinichenko-jsAnnotate intrinsics of immutable data modules with statefulness
dkalinichenko-jsAnnotate intrinsics of mutable data modules with statefulness
dkalinichenko-jsAnnotate system intrinsics with statefulness
dkalinichenko-jsBootstrap OxCaml with OxCaml & hill-climb various efficiency metrics
Will Sturgeon (@wrsturgeon)Bugfix for extension constructor naming
Exceptions and other extension constructors got the wrong name if defined inside an 'include struct ... end' (or similar), because the rootpath used to name the constructor got dropped.
Stephen Dolan (@stedolan)Build ocamlopt with link-time optimisation
Adds an opt-in mode that runs the Reaper's LTO pipeline over the compiler itself. Take a clean tree and run make lto=yes lto-compiler to compile the main context with -support-lto, solve over the whole program, rebuild every unit against that solution and relink ocamlopt as _build/main/oxcaml/lto/ocamlopt_lto.exe. This can be compared to _build/main/oxcaml…
Mark Shinwell (@mshinwell)Build the runtime with dune instead of make
The dune rules in runtime/dune and runtime/caml/dune used to shell out to make -f Makefile.upstream. This PR makes dune build all of these directly, fixing the fact that incremental builds did not relink the compiler binaries after a runtime change. The details seem hacky to me; perhaps a dune expert can improve on it.
Nick Barnes (@NickBarnes)Build with oxcaml switch
Not to be merged yet; needs another public release roll before we can use ocamlformat and merlin
Max Slater (@TheNumbat)CFG peephole: merge adjacent `Ioffset_loc` (amd64)
Add a CFG peephole rule, merge_adjacent_specific_operations,
Xavier Clerc (@xclerc)CSE: do not rematerialize large integer constants (amd64)
On amd64, classify an integer constant as cheap only
Xavier Clerc (@xclerc)Closure_conversion: generate more compact module initialisation code
Alternative to #7267.
Vincent Laviron (@lthls)Cmm: Peepholes for shift/mask combinations
Add two shift/mask rewrites to the Cmm smart constructors, and improve the precision of ignore_low_bit_int.
Ryan Tjoa (@rtjoa)Cmm: Track the bit length of narrow loads
Cmm_helpers.max_signed_bit_length now knows the width of byte, 16-bit and 32-bit loads, so asr_int can cancel (x lsl n) asr n when x is such a load.
Ryan Tjoa (@rtjoa)Compile bit tests (`x land m <> 0`) to a single `test` instruction
(Early draft, should maybe split into cmm and flambda PRs.)
Xavier Clerc (@xclerc)