xguerin / bitstring

OCaml Bitstring - bitstring matching for OCaml
GNU General Public License v2.0
67 stars 8 forks source link

Plans for jsoo support #15

Open monstasat opened 6 years ago

monstasat commented 6 years ago

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?

xguerin commented 6 years ago

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 commented 4 years ago

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.