Skip to content
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

A .js subpackage? #63

Closed
djs55 opened this issue May 31, 2015 · 1 comment · Fixed by #64
Closed

A .js subpackage? #63

djs55 opened this issue May 31, 2015 · 1 comment · Fixed by #64

Comments

@djs55
Copy link
Member

djs55 commented May 31, 2015

I was just experimenting creating a 'tutorial' iocamljs notebook for [mirage/ocaml-vchan] in the style of [avsm/ocaml-dockerfile]. Several Mirage libraries use a small number of C bindings which would need to be implemented somewhere for javascript.

Does it make sense to create a cstruct.js which would contain the needed external functions?

djs55 pushed a commit to djs55/ocaml-cstruct that referenced this issue May 31, 2015
This allows javascript programs to use the full cstruct library.

Note: to link the stubs you must add the argument
  `+cstruct/cstruct.js`
to the js_of_ocaml command-line.

Fixes mirage#63

Signed-off-by: David Scott <dave.scott@citrix.com>
@talex5
Copy link
Contributor

talex5 commented Jun 1, 2015

Would be useful. I also defined my own versions of some of these: https://github.com/talex5/cuekeeper/blob/master/js/helpers.js

djs55 pushed a commit to djs55/ocaml-cstruct that referenced this issue Jun 2, 2015
This allows javascript programs to use the full cstruct library.

Note: to link the stubs you must add the argument
  `+cstruct/cstruct.js`
to the js_of_ocaml command-line.

Fixes mirage#63

Signed-off-by: David Scott <dave.scott@citrix.com>
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 a pull request may close this issue.

2 participants