bitstring icon indicating copy to clipboard operation
bitstring copied to clipboard

Plans for jsoo support

Open monstasat opened this issue 6 years ago • 2 comments

It seems that some internal functions of bitstring library are dependent on C code, so there is no way now to use your lib for web development. Are there any plans to make bitstring compatible with js of ocaml compiler?

monstasat avatar Jul 10 '18 20:07 monstasat

I am not familiar with the requirements to be fully compatible with jsoo, but I'll look into it. Regarding the C part of the library, it only concerns fast paths. So it may be possible to avoid it.

xguerin avatar Jul 13 '18 17:07 xguerin

Revisiting this comment: It should be possible to provide a dual library version of bitstring, one with the C functions and one in pure ocaml. The latter would be 100% compatible with JSOO. Mirage's checkseum does something like this.

xguerin avatar Jul 24 '20 17:07 xguerin