I'm currently thinking on using the OCaml memory model as a way to communicate over the network, but then we need to ensure types signatures are always the same and a way to implementations in other languages to handle the data.
My solution for this is generate a manifest with the memory model so that we can do checking of network data and also generate decoders and encoders on other languages, namely Rust and JavaScript.
Another possibilities
@anchpop suggested protobuf because it has a canonical representation and also it's portable
I'm currently thinking on using the OCaml memory model as a way to communicate over the network, but then we need to ensure types signatures are always the same and a way to implementations in other languages to handle the data.
My solution for this is generate a manifest with the memory model so that we can do checking of network data and also generate decoders and encoders on other languages, namely Rust and JavaScript.
Another possibilities
@anchpop suggested protobuf because it has a canonical representation and also it's portable