You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am currently using ts2ocaml to generate bindings to a fairly large TypeScript library. ts2ocaml produces an mli file approximately 8.2MB in size, which causes both ocamlopt and ocamlc to stack overflow at the default system stack limit on my Macbook Pro.
I am fairly certain this could be solved by generating separate interface files, since modules can't be recursively dependent anyway.
i.e. transform src.mli:
moduleX : sig
...
endmoduleY : sig
...
end
into x.mli, y.mli withsrc.mli:
moduleX=XmoduleY=Y
I recognize that this is a "nice-to-have" and probably doesn't represent a widespread need, but would be very helpful in making builds of my library easier!
The text was updated successfully, but these errors were encountered:
I am currently using ts2ocaml to generate bindings to a fairly large TypeScript library.
ts2ocaml
produces anmli
file approximately 8.2MB in size, which causes bothocamlopt
andocamlc
to stack overflow at the default system stack limit on my Macbook Pro.I am fairly certain this could be solved by generating separate interface files, since modules can't be recursively dependent anyway.
i.e. transform
src.mli
:into
x.mli
,y.mli
withsrc.mli
:I recognize that this is a "nice-to-have" and probably doesn't represent a widespread need, but would be very helpful in making builds of my library easier!
The text was updated successfully, but these errors were encountered: