Towards Zero-Copy Binary (De)Serialisation in TypeScript
Talk rust typescript webassembly
JSON is neither type-safe nor cheap to parse — yet it remains the default for data exchange between backend services. I showed how Cap’n Proto, a zero-copy binary protocol used at Cloudflare and created by the author of Protobuf 2, eliminates parsing overhead entirely for Rust and TypeScript applications.
The talk walked through modeling non-trivial datatypes in Cap’n Proto’s schema language and the binary layouts that make zero-copy deserialization work in practice.