> Oh, so OCaml is a toy language from academics.
What? Why did you conclude so?
> but no one mentioned that aspect of it.
Really? Did you open the documentation? It's stated explicitly.
https://caml.inria.fr/pub/docs/manual-ocaml/libref/Marshal.h...
> There should be a law about putting a warning in Big Red Letters on the box so someone doesn't make the mistake of using it in a large, long lived project.
It's documented, and it's not intended to be used for serialization, you use it in very particular cases, for example for faster object sharing with IPC for multicore. We use Json or S-expressions or other stuff for that purposes.
I really don't know why unison people don't switch to a proper serialization.