Skip to content

Conversation

@art-w
Copy link
Collaborator

@art-w art-w commented Nov 21, 2025

Fixes #12564

Follow up on #12561 :
Js_of_ocaml and wasm_of_ocaml don't currently support the incremental compilation of OxCaml parameterised libraries instantiation, so we have to enforce whole program compilation.

@art-w art-w marked this pull request as draft November 21, 2025 11:56
@art-w art-w force-pushed the instantiate-parameterized-jsoo branch from d15c57b to bfd327b Compare November 21, 2025 13:14
@art-w art-w force-pushed the instantiate-parameterized-jsoo branch 4 times, most recently from 3b9d28e to c28e071 Compare December 2, 2025 11:36
@rgrinberg rgrinberg added the oxcaml Related to the support to OxCaml functionnalities label Dec 2, 2025
@art-w art-w force-pushed the instantiate-parameterized-jsoo branch 2 times, most recently from 81a60a9 to 3093ce9 Compare December 5, 2025 11:12
@art-w art-w marked this pull request as ready for review December 5, 2025 11:12
@art-w art-w force-pushed the instantiate-parameterized-jsoo branch from 3093ce9 to 129c90d Compare December 5, 2025 11:18
| Not_parameterised -> false
| Complete | Partial -> true)
in
(* jsoo supports only whole program compilation of parameterised instances,
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this limitation permanent or will it be relaxed in a later jsoo version?

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It would be good to know if support is needed inside the jsoo compiler or if one just need to fix the dune rule ..

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I've added some explanations in #12564 (comment) regarding the bytecode error I'm seeing when doing separate compilation in jsoo, so I think it requires an oxcaml-specific patch in jsoo before we can change the dune rules for separate compilation :)

@rgrinberg rgrinberg self-requested a review December 5, 2025 11:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

oxcaml Related to the support to OxCaml functionnalities

Projects

None yet

Development

Successfully merging this pull request may close these issues.

js_of_ocaml and wasm_of_ocaml support for parametric libraries

4 participants