Repository activity
40458 results across all weeks
Use ikind provenance for declaration bound errors
This PR improves kind errors for type definitions (type t : bound = RHS) with kind annotations.
julesjacobsUse immutable loads for closure fields in generic apply/curry functions
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)Use renamings instead of var to var let bindings for dataflow renamings
I understand @bclement-ocp 's frustration from #6775 . This might be some welcome additional cleanup.
Pierre Chambart (@chambart)Utilize zero_alloc keyword
zhizhuoxinWrite 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] Use result types to inform constructor disambiguation
Import ocaml/ocaml#285. Fix some metaprogramming issue?
dkalinichenko-js`Lregion_close_return`
@dkalinichenko-js: No longer necessary.
dkalinichenko-jsbasic functorization support
Add basic support for -functorize: bundle parameterised modules into a single functor.
Zesen Qian (@riaqn)fix: let rec fatal errors if RHS contains atomic field assignment
Fixes internal issue 7720.
Joe Kerrigan (@joe-kerrigan)flambda2: Provide initial type when defining a variable
Currently when we use the DA.add_variable / DE.add_variable helpers we are first defining the variable in the typing env with an "unknown" type, followed by adding an equation on that variable. This involves calling find on the variable, which is guaranteed to find the "unknown" type we have just added, and then meeting that "unknown" with the newly added ty…
Basile Clément (@bclement-ocp)flambda2: Rewrite switch with single arm to apply_cont
This makes them seen as inlinable uses in the downwards pass.
Basile Clément (@bclement-ocp)int{8,16} popcnt/clz/ctz do not need sign extension
They never return negative values.
Basile Clément (@bclement-ocp)n-way join: Further performance improvements
This PR improves the performance of the n-way join algorithm in two ways:
Basile Clément (@bclement-ocp)refactor cross-file references
TODO:
Zesen Qian (@riaqn)runtime: backport idle-phase major GC from upstream (#14365)
Backport of ocaml/ocaml#14365 (7ea34c55cc): after sweeping, the major GC idles until allocation in the cycle passes small_heap_limit, then marks. Raising the floor trades heap for fewer mark phases. On the compiler itself, OCAMLRUNPARAM='o=200,Xsmall_heap_limit=128M' is worth ~20% aggregate compile time on a large tree. The tweak counts words, so that is a 1…
julesjacobstyping layout any returns
During typechecking, allow functions to return layout any.
dkalinichenko-jsx86 binary emitter verification infrastructure
This PR implements a version of the Arm binary emitter verification (-verify-binary-emitter) for x86. In contrast to the Arm version, we just check the mnemonics obtained from disassembling the text sections instead of checking for byte-wise equality. This allows a bit of leeway on the relocations that are produced by the binary emitter.
Simon Spies (@spiessimon)☔ Match-in-match heuristic
#4278 (prerequisite of #4397)
Basile Clément (@bclement-ocp)Community digest
The OCaml typechecker no longer assumes abstract types in the current module are injective, closing a soundness hole that permitted arbitrary type casts. mirage-crypto 2.3.0 addresses two security advisories covering RSA short-message handling and compressed NIST key bounds checks.
core digest
New Uchar.is_ascii, Uchar.ascii_to_char, Uchar.is_latin1, Uchar.latin1_to_char clarify the char/Uchar.t boundary. Merged. (#14981)