Repository activity
40458 results across all weeks
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)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)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)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)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)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)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)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)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)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)Improve compiler optimizations
build on this work to implement new compiler optimizations.
Jacob Van Buren (@jvanburen)Interface imports no longer record the implementing unit
Stacked on #7507.
Zesen Qian (@riaqn)Introduce Compilation_unit_intf to identify interfaces
Stacked on #7505. #7507 and #7031 are based on this PR.
Zesen Qian (@riaqn)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)JSIR: build stdlib
Build the stdlib with JSIR (i.e. ocamlopt -target js_of_ocaml) when running make jsoo-build.
Leo Lee (@smjleo)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)JSIR: clean up old JSOO patches
This PR addresses some issues with the old JSOO changes for JSIR (#7463), namely:
Leo Lee (@smjleo)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)JSIR: ocamltest integration
Makes ocamltest support JSIR so that we can have JSIR tests in the build system.
Leo Lee (@smjleo)JSIR: small fixes to translation
This PR makes two small changes to the JSIR translation.
Leo Lee (@smjleo)