There is nothing wrong with binary protocols.<p>Sharing c structs across languages is brave but it is doable as long as padding&#x2F;offsets&#x2F;lengths are expertly crafted and very strictly controlled.<p>but on the other hand sharing pointers would be madness.