Repository activity
40458 results across all weeks
Integrating OxCaml patching on top of js_of_ocaml upstream
This "rebases" the js_of_ocaml git subtree in external/js_of_ocaml against all of the patching done to support oxcaml and janestreet libraries.
Robin Ricard (@rricard)Keep distinct frametable debuginfo records that differ only in scopes
If several functions share a location (file, line, column), backtraces will only show the function name of the first such function. This PR fixes this.
Nick Barnes (@NickBarnes)Keep minor-GC tables smaller, and simplify "reserve" algorithm.
This simplifies the code for "minor tables", a generic demand-grown table used to track items required by the next minor GC (including the remembered set but also other things: ephemerons, custom blocks, dependent memory). With this change, tables are always a power-of-two size (rather than "power-of-two-plus-reserve"), and the growth code is simpler. Also, …
Nick Barnes (@NickBarnes)Kind-template module coercions
Adds kind template coercions to the module coercions.
Jakub Bachurski (@jbachurski)Make Ldd rigid var ids word-size-independent and 32-bit-safe
Rigid variable ids were based at 1 lsl (Sys.word_size - 3) = 2^61 on 64-bit hosts. These ids are marshaled into cmi files via solver state stored in kinds, and a 32-bit runtime such as js_of_ocaml (the browser playground toplevel) fails to unmarshal them (input_value: integer too large); the id scheme was also inconsistent between word sizes.
julesjacobsMake return arities [`Complex] throughout Flambda 2
Changes the return arities on Apply_expr — and correspondingly Code_metadata.result_arity, Function_decl.return and IR.apply.return_arity — from [Unarized] to [Complex] Flambda_arity.t, so that the structure of unboxed products in return types is preserved end to end instead of being flattened at construction time. (Argument arities were already [`Comple…
Mark Shinwell (@mshinwell)Mangle merge conflict examples
This PR indents the example merge conflicts in external/merlin/HACKING.jst.md to stop them from appearing like merge conflicts to relevant tooling.
Liam Stevenson (@liam923)Mark generated files as linguist generated
There's some generated files in Merlin that are checked in to the repo. This PR marks those files as "linguist-generated", which makes GitHub treat these files slightly better for review (but still not great).
Liam Stevenson (@liam923)Meet local bounds in GADT projections
This fixes GADT projection cases where constructor-local variable bounds were dropped.
julesjacobsMiddle modality mode crossing
With-bound relevance used to be tracked as an axis set, which loses information for modalities that are middle elements on their axis. This changes with-bound relevance to use the axis_lattice mask so those middle bounds are preserved through normalization, subkind checks, and ikind conversion.
julesjacobsMiddle mode crossing: use lattice bounds in jkind normalization
Use lattice-valued ambient bounds to avoid axis-set skip conversions in jkind normalization.
julesjacobsMiscellaneous small cleanup items for debugging
This PR includes several smaller cleanup items:
Simon Spies (@spiessimon)Mode Polymorphism Parsing
This PR adds a parser for mode polymorphism. In signature items, mode annotations may now be mode variables ('m) or bounds ([< ... > ...]):
ainageorgesMove merlin ci into build.yml
This PR migrates the Merlin CI check into the build.yml workflow. Merlin is still built and tested in a separate CI check from the checks that build and test the compiler.
Liam Stevenson (@liam923)Occurs check for sort variables
Currently, we do not perform an occurs check when unifying sort variables - possibly under the assumption that any problematic cases would be caught by the occurs check for type variables.
Ryan Tjoa (@rtjoa)One template instantiation per CU
Deduplicate template instantiations so there's only one per compilation unit.
Jack Rickard (@Skepfyr)Only use guard pages for currently-active stacks.
Enable millions of fibers without stack checks.
Nick Barnes (@NickBarnes)Preserve debug information for additional pattern matches
This PR improves the debug information for pattern matches. For these, the compiler often introduces synthetic param parameters that up to now did now have type shapes associated with them. As a result, they had to use the fallback type when reaching the debugger.
Simon Spies (@spiessimon)Preserve phantom lets through instruction selection, CFG and Linear
This PR is part of the dwarf202607 series (24 PRs) adding end-to-end DWARF debugging improvements for code compiled with Flambda 2: phantom lets so the debugger can print optimised-out variables, correct attribution of parameters and variables to inlined frames, and DWARF call site information.
Mark Shinwell (@mshinwell)Produce structured mode diagnostics
Summary
Gavin Gray (@gavinleroy)