-
Notifications
You must be signed in to change notification settings - Fork 197
Js_of_ocaml can now compile cmo and cma #313
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
Conversation
|
Wow, Great work! I think that is going to be very useful! cc @andrewray Pretty sure you can simplify iokerneljs with that. |
|
We can currently dynamically load libraries but that tends to lead to stack overflows. Will need to test if this improves matters. If so, then this is very interesting! @avsm Its possible we could set up a build service for ocaml libraries with this. |
Complier: Js_of_ocaml can now compile cmo and cma
|
@andrewray I'll happily set up the bulk builds to expose this via opam.ocaml.org as a HTTP service! Just ping me whenever there's a released version of js_of_ocaml and I'll make sure that the right build artefacts are made available from the bulk engine. /cc @dsheets @samoht |
|
@andrewray do you know what's causing the stack overflows you're talking about ? |
|
This looks cool, but I got an error when trying this feature |
|
I am using the master branch, so it should include this thing |
|
a cmo should start with |
|
@hhugo , we are also getting stack overflows with dynamic compilation. I'm trying to debug them, meanwhile you can see an example using firefox and loading ssreflect as instructed in (https://x80.org/rhino-coq/). Chrome will also SO if loading ssr in the standard way: Thanks, |
|
there is now an example of separate compilation 9b59580 |
Example:
Compile the stdlib and an ml file (test_cmo.ml)
Run with