marigold-dev / deku

MIT License
80 stars 16 forks source link

Network communication model #7

Open EduardoRFS opened 3 years ago

EduardoRFS commented 3 years ago

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

d4hines commented 3 years ago

The authors of protobuf wrote a faster replacement: https://capnproto.org/