Skip to content

Conversation

@hhugo
Copy link
Member

@hhugo hhugo commented May 16, 2016

Following #313
Allow to dynlink precompiled ocaml units (aka javascript files).

In the toplevel, one can already do the following to compile bytecode to javascript and execute it.

#load "/static/test_dynlink.cmo

One can now load precompiled javascript directly.

#load_js "test_dynlink.js"

#369
#450

hhugo added a commit to hhugo/jsoo-dynload-test that referenced this pull request May 17, 2016
fix example using ocsigen/js_of_ocaml#480
One can now dynlink javascript file directly
@hhugo hhugo merged commit c053957 into master May 17, 2016
@hhugo hhugo deleted the dynlink branch May 17, 2016 09:49
@ejgallego
Copy link
Contributor

This is fantastic, thanks!

hhugo added a commit that referenced this pull request Nov 14, 2022
This logic was broken due to #1324
which made the it run before the toplevel/dynlink was initialized.

These generated primitives where never used in practice because the generated
code always uses jsoo_runtime to access primitives.
#480
hhugo added a commit that referenced this pull request Nov 14, 2022
This logic was broken due to #1324
which made the it run before the toplevel/dynlink was initialized.

These generated primitives where never used in practice because the generated
code always uses jsoo_runtime to access primitives.
#480
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants