Repository activity
40458 results across all weeks
Only wake the tick thread if the interval changed
Repeated calls to caml_domain_set_tick_interval_usec wake the tick thread and reset its timer. We shouldn't do this if the tick interval didn't actually change.
Max Slater (@TheNumbat)Optimize Patricia tree iterator and leapfrog join
This PR simply extracts the changes to algorithms from #7316,
Xavier Clerc (@xclerc)Optimize array initialization
This optimizes caml_makearray_dynamic_scannable_unboxed_product to avoid performing a divide per element, tweaks both caml_makearray_dynamic_scannable_unboxed_product and uniform_array_make to avoid some unnecessary compiler pessimizations, and optimizes the copying loop of the unboxed product variant.
Vesa Karvonen (@polytypic)Outdated index files
Let's say merlin index file A points at merlin index file B. A stores a digest of B so that Merlin can tell if B has changed without A changing (example of how this can arise: the user changes a source file, causing dune to need to rebuild B and then A, but the Merlin query happens in-between the build of B and A). We'll call B "outdated" (even though in rea…
Liam Stevenson (@liam923)Overhaul of sort variable levels
Unsound layout polymorphism is abound, because levels of sort variables are not correctly tracked, and they could generalise via let poly_ at semi-arbitrary points.
Jakub Bachurski (@jbachurski)Prevent abstract kinds from escaping their scope
This implements raising Escape errors for Jkinds, just like for types.
Jakub Bachurski (@jbachurski)Print `any`-kinded fields of unboxed records in the toplevel
The toplevel printer is still relying on each field's declared sort (ld_sort) to render fields of unboxed records, despite the introduction of any fields (#5461, #6436), whose declared sort is None. Consequently, an any field gets output as . The fix mirrors what the constructor-argument path already does: when the declared sort is None, compute the sort of …
Luke Maurer (@lukemaurer)Propagate kind constraints through with-bounds
When resolving kind constraints with with-bounds on the left, propagate the constraints to the variables in with-bounds if possible. This means we can now type:
dkalinichenko-jsReaper performance improvements
Nathanaëlle Courant (@Ekdohibs)Record action traces
This PR adds the Action_trace module to the compiler. This module allows for writing data that dune can read and then record in a trace.json file. This is useful for logging metrics and performance numbers.
Liam Stevenson (@liam923)Refactor sort/layout inference primitives to return `result`s
This addresses a review comment in #7178, avoiding the unchecked Lower_rigid exception.
Jakub Bachurski (@jbachurski)Relocatable OxCaml: backport test-in-prefix harness
Backport ocaml/ocaml#14014 from OCaml 5.5 and various fixes to it since.
David Allsopp (@dra27)Remove "-" from "-Xmy_tweak_name" comments, as it's incorrect.
The parsing of OCAMLRUNPARAM silently ignores any unknown parameter, such as one that starts with -. Tweak parameters are written Xmy_tweak_name=42, not -Xmy_tweak_name=42. So we should always write them that way, including in comments, because otherwise people will get it wrong and write parameters which are silently ignored (this has bitten us before). Thi…
Nick Barnes (@NickBarnes)Remove mask instruction from String.length
Strings never have mixed-block bits set in their header words, so can skip an instruction to mask them out.
Nick Barnes (@NickBarnes)Remove repr transl functions from typeopt
This moves a bunch of transl functions out of Typeopt and into a new Translrepr module. The goal here is to keep Typeopt purely for optimisations and leaving the bulk of transl in dedicated modules.
Jack Rickard (@Skepfyr)Remove restrictions on unboxed products in external calls
Unboxed products passed to or returned from external calls now follow the calling convention of the corresponding (possibly nested) C struct, on x86-64 (System V) and arm64 (AAPCS64 and its Apple variant). Previously arguments could not involve unboxed products at all (except via [@unpacked]) and returns were limited to certain flat pairs.
Mark Shinwell (@mshinwell)Remove the Replay History
The replay history (in the context of match-in-match and continuation specialization), could be removed by instead doing the following:
Guillaume Bury (@Gbury)Replace Clflags.native_code and Clflags.jsir with a single Clflags.target
Does what the title says. It doesn't make sense to keep both of these variables around, especially when having both native_code = true and jsir = true is an invalid state. This also helps us prepare for interface changes to JSIR, where we will replace ocamlj with ocamlopt -target js_of_ocaml. The predicates target_is_native and target_is_jsir should be inlin…
Leo Lee (@smjleo)Report [@unrolled] rather than [@inlined] on partial applications
[@unrolled] on a partial application reports the wrong attribute name.
James Lee (@jmes2build)Represent `Void` uniformly in Lambda
Today, void layouts are translated into Lambda as nullary products. Some consumers of such nullary Lambda products (like copy_mixed_block_element) did not special-case them when they should have. As a result, the representation of voids was inconsistent on bytecode—they were usually represented as immediates, but sometimes as empty blocks.
Zack Eisbach (@zackbach)