Thicket thicket
ocaml
REPOS 27
SEARCH THE ARCHIVE

Repository activity

40458 results across all weeks

  1. Pull requestW47.2026 · 16–22 Novoxcaml/oxcaml

    JSIR: switch to JSOO whole-program mode when using the JSIR linker

    Previously, when using the JSIR whole-program linker, we still built the runtime and invoked the JSOO linker separately. This meant that the entire runtime was included, instead of just the ones that are needed by this program. This PR makes ocamlopt run JSOO in whole-program mode to fix this.

    Leo Lee (@smjleo)
  2. Pull requestW47.2026 · 16–22 Novoxcaml/oxcaml

    JSIR: warn and generate stubs for missing primitives in whole-program mode

    This prevents missing runtimes from turning up as JavaScript errors during runtime.

    Leo Lee (@smjleo)
  3. Pull requestW47.2026 · 16–22 Novoxcaml/oxcaml

    JSIR: write shape information for separate compilation

    JSOO uses these to determine the arities of calls, so that it can emit direct calls where possible instead of a caml_apply. The JSIR pipeline mostly doesn't need this because Flambda does this already with .cmx files, but when using -opaque (e.g. for dev builds) this reduces the JS stack required for deep recursion.

    Leo Lee (@smjleo)
  4. Pull requestW47.2026 · 16–22 Novoxcaml/oxcaml

    Lambda: Lcode and an allocating Ptemplate_env

    Slambda evaluation now produces dedicated constructs for templates:

    Jack Rickard (@Skepfyr)
  5. Pull requestW47.2026 · 16–22 Novoxcaml/oxcaml

    Leave the imports of recorded interfaces to be checked at link time

    Draft. Stacked on #7031 (attach-cmi-path), through the simplify-intf-imports branch, which simplifies interface imports to a name and an optional CRC and will be its own PR. This PR is not part of the #7031 → #7797 stack.

    Zesen Qian (@riaqn)
  6. IssueW47.2026 · 16–22 Novoxcaml/oxcaml

    List comprehension to max_int loops forever

    A list comprehension whose last element is max_int does not terminate, and after the wrap it keeps yielding values from the bottom of the range:

    KC Sivaramakrishnan (@kayceesrk)
  7. IssueW47.2026 · 16–22 Novoxcaml/oxcaml

    Loop-invariant loads are not hoisted out of loops

    Loads whose value cannot change inside a loop are executed on every

    Thomas Gazagnaire (@samoht)
  8. Pull requestW47.2026 · 16–22 Novoxcaml/oxcaml

    Loops analysis for SSA

    As per title; it implements the same algorithm

    Xavier Clerc (@xclerc)
  9. Pull requestW47.2026 · 16–22 Novoxcaml/oxcaml

    Machtype checking

    Adds another pass during cmm_invariants that traverses Cmm expressions and makes sure the machtypes of inputs and outputs of each operation are consistent with eachother. For now, this machtype-checking pass is toggled with a separate flag (-dcmm-(no-)check-machtypes, default enabled), but it can be folded into -dcmm-invariants when we consider the machtype …

    James Rayman (@jra4)
  10. Pull requestW47.2026 · 16–22 Novoxcaml/oxcaml

    Make `backtrace_active` a global variable

    Make backtrace_active a global variable

    Vesa Karvonen (@polytypic)
  11. Pull requestW47.2026 · 16–22 Novoxcaml/oxcaml

    Make dead trap handler elimination unconditional

    As per title: over time elimination has

    Xavier Clerc (@xclerc)
  12. Pull requestW47.2026 · 16–22 Novoxcaml/oxcaml

    Make generated code independent of debugging information in three places

    Three places where the amount of debugging information being produced could change the generated code. Each is a separate commit.

    Mark Shinwell (@mshinwell)
  13. IssueW47.2026 · 16–22 Novoxcaml/oxcaml

    Match over an unboxed record takes the wrong case

    A match whose or-pattern is made of unboxed record patterns takes a case without testing another component of the scrutinee, with no warning. With a variant in place of the boolean the code reads the argument of a constant constructor (segmentation fault); #() and #true | #false patterns do the same.

    Mark Shinwell (@mshinwell)
  14. IssueW47.2026 · 16–22 Novoxcaml/oxcaml

    Match with branch relaxation takes the wrong case

    Ethan Chou (@echoumcp1)
  15. Pull requestW47.2026 · 16–22 Novoxcaml/oxcaml

    Measure GC performance from runtime events

    This reworks the "gcrate" test/tool so that it works purely on the runtime events stream, so it can be applied to any OCaml process and report the speed of promotion, marking, and sweeping in that process (rather than solely in its own synthetic benchmark). Prompted by @gasche's comments on ocaml/ocaml#15280, and building on #7981 and #7982.

    Nick Barnes (@NickBarnes)
  16. Pull requestW47.2026 · 16–22 Novoxcaml/oxcaml

    Mode polymorphic primitives

    This PR adds support for mode polymorphic primitives, such as:

    ainageorges
  17. Pull requestW47.2026 · 16–22 Novoxcaml/oxcaml

    Mode polymorphism printing: aliases

    This PR implements printing of mode aliases in a mode polymorphic signature.

    ainageorges
  18. IssueW47.2026 · 16–22 Novoxcaml/oxcaml

    Mutable record field update in "when" guard causes segfault

    The following program causes a segfault (and causes no warnings other than 70, missing .mli):

    Mark Shinwell (@mshinwell)
  19. IssueW47.2026 · 16–22 Novoxcaml/oxcaml

    Native link with a library compiled again after its client: uncaught Consistbl.Inconsistency

    When a library is compiled again after a client was compiled against it, ocamlopt refuses the link, as it must, but with an uncaught exception, Consistbl.Make(...).Inconsistency, in place of the "make inconsistent assumptions over implementation" error.

    Mark Shinwell (@mshinwell)
  20. IssueW47.2026 · 16–22 Novoxcaml/oxcaml

    No `%caml_bytes_get8u_indexed_by_int64#` primitive

    There are %caml_bytes_get16u_indexed_by_int64#, get32u and get64u primitives, but no 8-bit one:

    Thomas Gazagnaire (@samoht)