A fast, zero-copy Transit-format reader and writer written in C
7 points by delaguardo
7 points by delaguardo
Transit is a format and a set of libraries for conveying values between applications written in different languages. It is layered on top of JSON and MessagePack, so you get their tooling and speed, but with a much richer type system and built-in payload compression. Think of it as "JSON that round-trips real types":
:foo, symbols, instants (timestamps), UUIDs, URIs, big integers/decimals, characters, byte arrays, sets, and lists^N code, so verbose, key-heavy payloads shrink dramatically{"__type": "Date", "value": "..."} hacksLearn more: Official Transit specification
It does look vibecoded, but in a clean way! Would be keen to know the process and models used. Also I think benchmarks would be good (like, how faster is the C implementation compared to JS), as I imagine the value of the C implementation is in embedding as a faster runtime (in Python, or as WASM for Web/workers).