Repository activity
40458 results across all weeks
Support all-void constructors represented as blocks
Currently, constructors whose arguments are all-void require the attribute [@immediate_all_void_constructor], and such constructors are represented as immediates. In this PR, we allow the attribute to be omitted, in which case such constructors are represented as empty blocks (statically-allocated atoms).
Ryan Tjoa (@rtjoa)Support layout polymorphism over records and variants with [any]-fields
Currently, constructors whose arguments are all-void require the attribute [@immediate_all_void_constructor], and such constructors are represented as immediates. In this PR, we allow the attribute to be omitted, in which case such constructors are represented as empty blocks (statically-allocated atoms).
Ryan Tjoa (@rtjoa)Tighten location of `Pexp_hole` in `?_` and `~_`
Possible oversight in #4956? It seems inconsistent that ?label and ~label give the location for label but ?_ and ~_ give the location for ?_ and ~_ rather than just the _
David Allsopp (@dra27-js)Track function arguments in mode-solver provenance
Similar to #6249 this PR adds additional provenance tracking for mode constraints. This PR adds the Function_argument morph hint, carrying the callee location, argument location, and argument index.
Gavin Gray (@gavinleroy)Track written mode-annotation provenance
Changes in this PR were pushed to #6249
Gavin Gray (@gavinleroy)Unexpected type from `include functor` application in signature context
When trying the following code in the toplevel:
Marek Kubica (@Leonidas-from-XIV)Unknown locations
Anonymous functions, anonymous modules and partial-application wrappers have no
Tim McGilchrist (@tmcgilchrist)Untangle build of CamlinternalQuote
The build does some unnecessary gymnastics to allow the compiler to refer to CamlinternalQuote from within compiler-libs. There's no reason to do this: the only use is for the toplevel to print quoted items, and the toplevel can print them using Oval_printer. (The toplevel has no trouble referring to CamlinternalQuote directly, because it's not built in the …
Stephen Dolan (@stedolan)Untangle equating sorts
This should be a conceptually equivalent refactor of Sort.equate.
Jakub Bachurski (@jbachurski)Update level operation
Added the update_level operation, which lowers the level of a variable.
ainageorgesUpstream Merlin's `Pmod_hole` into the compiler
Pmod_hole - the module_expr dual of Pexp_hole, which has been in Merlin's parser for some time. This is a precursor to attempting to upstream both of these to OCaml, allowing the ppx ecosystem to use these parsetree nodes as well.
David Allsopp (@dra27-js)Use base addresses and offset pairs in DWARF-5 location and range lists
Sixth in the series reducing the size cost of --enable-oxcaml-dwarf-on-compiler (on top of #6923). Attacks the .debug_addr cost left by the DWARF-5 conversion: startx_endx entries put two 8-byte address-table slots (each with a relocation) behind every distinct range boundary — 8.2 MB of .debug_addr (~1M entries) across a compiler build.
Mark Shinwell (@mshinwell)Use compact DWARF forms for small constants, high PC offsets and entry PC
Fourth in the series reducing the size cost of --enable-oxcaml-dwarf-on-compiler (on top of #6920). A byte-level audit of ocamlopt's linked DWARF showed that the biggest .debug_info cost was not the DIEs themselves but fixed 8-byte forms used for values that almost always fit in one byte:
Mark Shinwell (@mshinwell)Vendor csexp
Vendor csexp into the repo using git subtrees. Merlin depends on it, so this is necessary for putting Merlin in the compiler distribution.
Liam Stevenson (@liam923)Vendor yojson
Vendor yojson into the repo using git subtrees. Merlin depends on it, so this is necessary for putting Merlin in the compiler distribution.
Liam Stevenson (@liam923)Very large frames need stack checks even when no_stack_checks
When stack-checks are disabled, we use a memory-protected "guard page" to catch stack overflow. However, functions with stack frames of more than one page can skip over this guard page and crash. So we should retain stack checks on such functions (this is a very few functions, generally huge and time-consuming, so another few instructions on function entry a…
Nick Barnes (@NickBarnes)Write and read .ltosol files, not yet containing actual solutions
The -reaper-solve entrypoint is modified to create .ltosol files, which at the moment contain just the following:
Miriam Vellacott (@mirivella)[DRAFT] Add -nondep flag to erase a module from a generated .cmi
Summary
Zesen Qian (@riaqn)add ocamllsp to nativeBuildInputs
This way a shell environment from nix provides the LSP.
Gavin Gray (@gavinleroy)basic functorization support
Add basic support for -functorize: bundle parameterised modules into a single functor.
Zesen Qian (@riaqn)