Skip to content

Production Ready

Choose a tag to compare

@rowan-claude rowan-claude released this 25 Aug 23:58

Write your data types once and generate the code that reads and writes them — bit-identical — in C, C++, C#, Go, Rust and JavaScript.

  • Types, enums, flags, unions, constants and bitpacking: the complete language.
  • One declaration produces the reader and the writer in every language, so they cannot disagree.
  • The generated code is the straight-line serializer you would have hand-written — no reflection, no schema walking at runtime.
  • Bounded arrays and integer ranges are validated wire facts: out-of-range input is rejected at read time, and every value costs only the bits its declared range needs.
  • Six-language conformance runs in CI on shared corpora: every target reads and writes the same bits, proven on every commit.
  • On a representative gameplay packet: 28 bytes, against Cap'n Proto's 52, Protobuf's 56 and FlatBuffers' 72 — measured by running the real encoders, reproducible from COMPARISON.md.

The Go module path is github.com/mas-bandwidth/schema/v2.