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

js_of_ocaml support #76

Open
zenhack opened this issue Nov 27, 2020 · 1 comment
Open

js_of_ocaml support #76

zenhack opened this issue Nov 27, 2020 · 1 comment

Comments

@zenhack
Copy link

zenhack commented Nov 27, 2020

It would be really nice to be able to use this in the browser. Right now this doesn't build with js_of_ocaml, because of at least the dependency on stdint, though I'm not sure if there's anything else?

If stdint is the only thing, then maybe this just reduces to andrenth/ocaml-stdint#6, but I wanted to ask, lest I discover after putting in some work that it's a much bigger task.

(I'm also interested in getting the rpc layer working in the browser)

@talex5
Copy link
Collaborator

talex5 commented Nov 27, 2020

It probably is just that. I've had capnp-rpc running in a Mirage unikernel before, and I just had to hack uint (the predecessor to stdint) to make that work.

I think I just defined type uint64 = int64 as a hack to get it going. That's not quite right (comparisons between uint64s may give the wrong answer, although capnp itself doesn't care), but it might let you know if anything else is wrong.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants