xguerin / bitstring

OCaml Bitstring - bitstring matching for OCaml

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Plans for jsoo support

monstasat opened this issue · 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?

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.

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.