fumieval / winery

Preservative serialisation format
BSD 3-Clause "New" or "Revised" License
89 stars 12 forks source link

Binary Specification? #6

Open HuwCampbell opened 2 years ago

HuwCampbell commented 2 years ago

Looking at this library I see a lot of overlap with Avro's aims, but it looks quite a lot stronger in terms of its types and composability. Is there a binary specification at all one could rely on for porting to other languages?

The other thing one might want to think about is an IDL for specifying schemas.

fumieval commented 2 years ago

There's no written spec about the format, but the implementation of decodeTerm is kinda self-documenting. Namely, it translates a schema into a decoder of the binary representation.

A human-readable language might indeed be useful if one wants to generate code like protobuf. The Pretty instance for Schema is something like that but there's no parser yet