Jérôme Vouillon
Jérôme Vouillon
In this functor, one should be able to lift without wrapper both `f ` and `g`. ```ocaml module F (X : sig end) = struct let f x = prerr_endline...
I'm afraid this is not supported at the moment. I'm not sure how we could implement this since Wasm module exports are defined statically while OCaml functions are allocated dynamically.
> It would be much easier if testing was based on the latest public release of janestreet packages (v0.17.*). It is a significant amount of work to patch these packages...
> I would prefer to have tests for this, to make sure the wasm and js runtime agree (and document minor differences if any) Also, we have an optimization in...
It is possible that the new compilation scheme results in larger stack frames. I'm not sure how to reproduce this since I don't have access to a Mac.
I'm afraid you have to take the time to insert conversions wherever needed. In the meantime, you can patch `lib/js_of_ocaml/js.mli` and `lib/js_of_ocaml/js.ml` and define `type number_t = float`.
At the moment, the code generated by Wasm_of_ocaml relies quite a lot on JavaScript. But I was thinking about hacking the runtime support to get rid of this dependency, at...