Thicket thicket
ocaml
REPOS 27
SEARCH THE ARCHIVE

Repository activity

40458 results across all weeks

  1. Pull requestW43.2026 · 19–25 Octoxcaml/oxcaml

    Fix bug when resuming an already-resumed continuation

    Resuming an already-resumed continuation should raise Effect.Continuation_already_resumed. In native code we get a SEGV instead, if some other domain triggers a minor GC at the wrong moment.

    Nick Barnes (@NickBarnes)
  2. Pull requestW43.2026 · 19–25 Octoxcaml/oxcaml

    Fix find-references for constructors in .mli files

    As discussed, find-references didn't work in .mli files for constructors. Asked the robots to fix this.

    Matthew Dempsky (@mdempsky)
  3. Pull requestW43.2026 · 19–25 Octoxcaml/oxcaml

    Fix js_of_ocaml float formatting to match native

    Demonstrate and fix 2 inconsistencies between how js_of_ocaml (and wasm_of_ocaml) print floats as opposed to native or glibc.

    Cosmin (@cosmin-pascaru)
  4. Pull requestW43.2026 · 19–25 Octoxcaml/oxcaml

    Fix locations in the installed stdlib source files

    First commit adds missing # 2 directives to other files in stdlib/ added since #2713 and then the second commit switches to using copy_files instead. The third commit then throws all of that away and instead generates the files properly, which we can do rather more readily now that we're generating the rules for the stdlib anyway.

    David Allsopp (@dra27-js)
  5. Pull requestW43.2026 · 19–25 Octoxcaml/oxcaml

    Flambda 2: move the code size estimates into Code_size_v1

    This PR is the first of a series splitting up the inlining experiments branch so that the pieces can be merged behind flags. It moves the existing code size estimates out of code_size.ml into new files code_size_v1.ml{,i}, without any change in behaviour, so that a later PR can add an alternative model and a flag to select between them.

    Mark Shinwell (@mshinwell)
  6. Pull requestW43.2026 · 19–25 Octoxcaml/oxcaml

    Flambda2: return continuations should have sort Return

    In a few places we create return continuations without setting its sort to Return. The sort isn't used in Flambda very much, but we should still try to keep it accurate wherever possible. (I've relied on the sort being accurate in the JSIR pass.)

    Leo Lee (@smjleo)
  7. Pull requestW43.2026 · 19–25 Octoxcaml/oxcaml

    Flatten representation of product-containing singleton blocks on bytecode

    Today, the following two types have the same layout but are represented differently on bytecode:

    Zack Eisbach (@zackbach)
  8. Pull requestW43.2026 · 19–25 Octoxcaml/oxcaml

    Force make to notice when the runtime changes

    At present, if I change a runtime file and then make install (or whatever) then the runtime changes don't make it into the rebuild. I complained to Claude and it made this plausible fix, which needs review from someone who understands the history of the Dune/Make interactions.

    Nick Barnes (@NickBarnes)
  9. Pull requestW43.2026 · 19–25 Octoxcaml/oxcaml

    Give `let exception` a local tyvar scope

    Pexp_letexception called Typedecl.transl_exception directly. That function was written for top-level exception declarations and thus it calls TyVarEnv.reset (), which effectively disconnects all the following free tyvars from their outer context. In other words, an 'a before let exception ... in no longer binds an 'a after it, allowing later types to be gene…

    Luke Maurer (@lukemaurer)
  10. Pull requestW43.2026 · 19–25 Octoxcaml/oxcaml

    Helper script for reviewing merge conflict resolutions

    scripts/zdiff3-diff-filter.py post-processes the output of patdiff to convert zdiff3 diffs to display current OxCaml (base) with the diff between upstream-base and upstream-head (essentially smerge-diff-base-lower).

    David Allsopp (@dra27-js)
  11. Pull requestW43.2026 · 19–25 Octoxcaml/oxcaml

    Improve compiler optimizations

    build on this work to implement new compiler optimizations.

    Jacob Van Buren (@jvanburen)
  12. Pull requestW43.2026 · 19–25 Octoxcaml/oxcaml

    Interface imports no longer record the implementing unit

    Stacked on #7507.

    Zesen Qian (@riaqn)
  13. Pull requestW43.2026 · 19–25 Octoxcaml/oxcaml

    Introduce Compilation_unit_intf to identify interfaces

    Stacked on #7505. #7507 and #7031 are based on this PR.

    Zesen Qian (@riaqn)
  14. Pull requestW43.2026 · 19–25 Octoxcaml/oxcaml

    JSIR: bring back JSOO changes

    This PR brings back changes that were made to external/js_of_ocaml to support ingesting JSIR, which were erased in #7071 . The ocamlj pipeline is not yet expected to work with this version of JSOO, as the Flambda and JSOO implementations have drifted since these original changes. This will be addressed in subsequent PRs.

    Leo Lee (@smjleo)
  15. Pull requestW43.2026 · 19–25 Octoxcaml/oxcaml

    JSIR: build stdlib

    Build the stdlib with JSIR (i.e. ocamlopt -target js_of_ocaml) when running make jsoo-build.

    Leo Lee (@smjleo)
  16. Pull requestW43.2026 · 19–25 Octoxcaml/oxcaml

    JSIR: catch up with Flambda changes and automate JSOO import

    This PR makes changes required to get the JSIR -> js_of_ocaml into a basic state, catching up with changes in Flambda and JSOO. Notably:

    Leo Lee (@smjleo)
  17. Pull requestW43.2026 · 19–25 Octoxcaml/oxcaml

    JSIR: clean up old JSOO patches

    This PR addresses some issues with the old JSOO changes for JSIR (#7463), namely:

    Leo Lee (@smjleo)
  18. Pull requestW43.2026 · 19–25 Octoxcaml/oxcaml

    JSIR: fix Reaper lambda lifting crashing the compiler

    If lambda lifting / closure unboxing is turned on, local functions are turned into direct calls and their corresponding set of closures is deleted. As such, the JSIR translation never initialised the "closure variable" (since it's initialised when we see a set of closures), and so JSOO detects an "escaped variable" when it encounters a use of one of these cl…

    Leo Lee (@smjleo)
  19. Pull requestW43.2026 · 19–25 Octoxcaml/oxcaml

    JSIR: ocamltest integration

    Makes ocamltest support JSIR so that we can have JSIR tests in the build system.

    Leo Lee (@smjleo)
  20. Pull requestW43.2026 · 19–25 Octoxcaml/oxcaml

    JSIR: small fixes to translation

    This PR makes two small changes to the JSIR translation.

    Leo Lee (@smjleo)