-
Notifications
You must be signed in to change notification settings - Fork 188
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
Merge wasm_of_ocaml #1724
Merge wasm_of_ocaml #1724
Conversation
* Support for dialogElement * Added cancel and close events --------- Co-authored-by: Hugo Heuzard <[email protected]>
* Compiler: fix free variable for classes
…ith OCaml libraries Use: js_of_ocaml --toplevel --no-runtime runtime.js library.cma
Integrate "added 'ellipse' method to canvasRenderingContext2D" (ocsigen#1555)
Runtime: remove some unimplemented primitives
This reverts commit f428e0e.
Thanks for all the hard work |
Bravo! Is there some high level docs on how to use the stuff ? |
There is a short |
Incredible! This is awesome. |
This looks to good to be true :–) The browsers APIs can be used as is ? However it is possible to make it work over the I have a number crunching app (computing thousands of polygon intersections) that I distribute as a single double-clickable |
Right.
Not at the moment. Source Phase Imports might make it possible at some point. Or maybe we could have an option to somehow embed the Wasm code in the JavaScript code.
I'm not sure. What problem could there be?
This might just work if we embed the Wasm code. |
I'm concerned about data transfers. With webworkers you are supposed to transfer JavaScript values that that go through the structured clone algorithm. As we once discussed that worked relatively flawlessly with js_of_ocaml's encoding of OCaml values encoded as JavaScript values. Now I don't know how OCaml values are represented in |
OCaml values are represented using Wasm GC values, so indeed the structured clone algorithm will not work on them. You have to serialize them somehow. You can try I have some experimental code to embed the Wasm code within the JavaScript code. Maybe you could give it a try. |
Congrats @vouillon @OlivierNicole @hhugo 🎉 ! |
The attempts to update the workflow as Wasm_of_ocaml has been merged upstream in ocsigen/js_of_ocaml#1724 and the wasm-dune branch is gone. Signed-off-by: Marek Kubica <[email protected]>
The attempts to update the workflow as Wasm_of_ocaml has been merged upstream in ocsigen/js_of_ocaml#1724 and the wasm-dune branch is gone. Signed-off-by: Marek Kubica <[email protected]>
This aims to merge wasm_of_ocaml, currently hosted at https://github.com/ocaml-wasm/wasm_of_ocaml, back into this repo.
This is pending on Dune support ocaml/dune#11029. For now, Dune is pinned for the CI jobs.