Repository activity
40458 results across all weeks
Small build system changes to improve build times
Build the dynlink compiler lib with -Oclassic because performance really don't matter for it, and move backend dependencies outside the build critical path to improve parallelism
Pierre Chambart (@chambart)Sound layout generalisation and nicer errors in inclusion checks
This raises a nice error when moregen accepts setting a weak variable to a generic one.
Jakub Bachurski (@jbachurski)Speculative specialization
@Gbury: Idea: do not keep the specialized code if the benefit is not worth it (in particular, avoid duplicating the code if nothing has changed during the re-simplification)
Pauline Lam (@pauline-lam)Stop building the old instrumented runtime
We don't use this, so no point compiling it over and over again.
Stephen Dolan (@stedolan)Stopgap fix of functional update of records with >= max_young_wosize fields
This is the minimal fix that does the same thing as: #7227
Pierre Chambart (@chambart)Store argument block metadata in .cmi files
Move argument projection metadata into .cmi files for instantiation and functorization.
Zesen Qian (@riaqn)Store int id data for code in file sections
The exported data for names and continuations that are bound in exported code is currently stored in the main index for all int ids data, which must be deserialized before getting any exported information from a .cmx file.
Basile Clément (@bclement-ocp)Support generalized sort variables in primitive applications
Previously, primitives (even those annotated with [@layout_poly]) could not be applied to types whose sorts contain generalized variables. This stops us from writing something like the layout-polymorphic identity primitive:
Joe Kerrigan (@joe-kerrigan)Support mixed tuples
Adds support for mixed tuples by extending various tuple-related data definitions with Jkind.Sort.ts, similar to the tracking done for unboxed tuples. This allows for code de-duplication between cases for unboxed and boxed tuples across the frontend.
Zack Eisbach (@zackbach)Support tail mod cons destinations in mixed blocks
As title. This is needed for layout polymorphism, as there are many functions we'd like to make layout poly that use tmc.
Chris Casinghino (@ccasin)Support undetermined constructor shapes in `value_kind`
For records and variants containing any, compute Pvariant value_kinds even when some constructor representations are undetermined, instead of bailing out to Pgenval for the whole type.
Ryan Tjoa (@rtjoa)TLS per preemptible fiber
TLS state is now per-preemptable-fiber rather than per-systhread. Main stacks also count as preemptable. Non-preemptable fibers see TLS state from the nearest enclosing preemptable fiber. Creating a preemptable fiber or main stack splits TLS state.
Max Slater (@TheNumbat)TMC now closes regions before recursing
Previously, TMC annotated functions that had local allocation failed to close the region before recursing, leading to these functions using unbounded stack space. This commit changes the TMC pass to attempt to close the region when safe to do so. In the event it's not safe, we now raise a warning instead of silently producing a function that behaves unexpect…
Aaron Eline (@aaronjeline)The reaper
Mark Shinwell (@mshinwell)Track modality annotation provenance in mode hints
This PR extends the Annotation mode hint to work with (1) modality annotations and (2) track implied modes/modalities.
Gavin Gray (@gavinleroy)Tweak the `Apply_non_function` error message
Editors (and humans, to a certain extent) place more emphasis on the first thing they're told. If a function is applied to too many arguments, we dutifully state the type error first, but it is perhaps better to explain the problem (too many arguments) and then the reason (the function's type) second. For unit-returning functions, we already correctly insert…
David Allsopp (@dra27-js)Under LTO, make the Reaper assume a closed world
The Reaper solver currently assumes an open world: other units may depend on the current one(s), and may do anything with them. For LTO, we want to assume that the set of participants we can see is closed, and no other units will depend on them (though the participant units may still depend on non-participants, for example stdlib).
Miriam Vellacott (@mirivella)Update ocaml-compiler-libs for public-release / OxCaml
Supersedes #7368 by instead fixing the underlying problem: the missing .cmi files are historical artefacts.
David Allsopp (@dra27-js)Use the findlib cli instead of linking against it
This PR is an alternative for #6983. Instead of dropping findlib support, this PR migrates Merlin to using the findlib cli rather than linking against the findlib library. The motivation is to avoid needing to vendor findlib into the repo, which would otherwise be necessary in order to build Merlin with oxcaml and include it in the compiler distribution.
Liam Stevenson (@liam923)Various OxCaml-related optimizations
(WIP)
Max Slater (@TheNumbat)