It doesn&#x27;t seem that ocamlscript and js_of_ocaml are using the same memory representation for OCaml values, so that&#x27;s a first issue.<p>At least for the integration between the js world and the ocaml world, I do believe it is possible. yes.
For readability of the js produced, I really can&#x27;t tell. It&#x27;s probably pretty easy to improve js_of_ocaml on that though, given the current state. :)