Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make number representations compatible with Wasm #1649

Merged
merged 5 commits into from
Aug 30, 2024

Conversation

OlivierNicole
Copy link
Contributor

This is best reviewed commit by commit. It adds a number of missing conversions, and other changes that have been performed in Wasm_of_ocaml in order to expose number-manipulating functions that are compatible with both the JS and Wasm backends.

This is part of a series of PRs intending to reduce the diff between js_of_ocaml and wasm_of_ocaml.

compiler/lib/effects.ml Outdated Show resolved Hide resolved
compiler/lib/effects.ml Outdated Show resolved Hide resolved
compiler/lib/eval.ml Outdated Show resolved Hide resolved
compiler/lib/eval.ml Outdated Show resolved Hide resolved
compiler/lib/code.ml Outdated Show resolved Hide resolved
compiler/lib/eval.ml Outdated Show resolved Hide resolved
@hhugo
Copy link
Member

hhugo commented Aug 28, 2024

Thanks. Looks good.
Can you fix the CI and squash the fixup ?

@OlivierNicole
Copy link
Contributor Author

Done. It looks like the failing test will only work if I integrate the single commit from #1650, which redefines Js.number_t as being Js.number Js.t.

This may break programs that do not perform explicit float conversions yet.

@hhugo hhugo force-pushed the converge-jsoo-tip-02 branch from 2b4f30e to 256b031 Compare August 29, 2024 19:56
@hhugo
Copy link
Member

hhugo commented Aug 29, 2024

Done. It looks like the failing test will only work if I integrate the single commit from #1650, which redefines Js.number_t as being Js.number Js.t.

This may break programs that do not perform explicit float conversions yet.

I removed the last commit, and fixed the hypertree example to use number_t

@hhugo hhugo merged commit 613cbcc into ocsigen:master Aug 30, 2024
16 of 17 checks passed
@OlivierNicole OlivierNicole deleted the converge-jsoo-tip-02 branch September 2, 2024 12:57
@OlivierNicole
Copy link
Contributor Author

Thank you

OlivierNicole added a commit to ocaml-wasm/wasm_of_ocaml that referenced this pull request Sep 3, 2024
OlivierNicole added a commit to ocaml-wasm/wasm_of_ocaml that referenced this pull request Sep 3, 2024
OlivierNicole added a commit to ocaml-wasm/wasm_of_ocaml that referenced this pull request Sep 9, 2024
OlivierNicole added a commit to OlivierNicole/wasm_of_ocaml that referenced this pull request Sep 9, 2024
OlivierNicole added a commit to ocaml-wasm/wasm_of_ocaml that referenced this pull request Sep 12, 2024
OlivierNicole added a commit to OlivierNicole/wasm_of_ocaml that referenced this pull request Sep 12, 2024
OlivierNicole added a commit to ocaml-wasm/wasm_of_ocaml that referenced this pull request Sep 13, 2024
OlivierNicole added a commit to OlivierNicole/wasm_of_ocaml that referenced this pull request Sep 19, 2024
@hhugo hhugo added the wasm label Nov 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants