Zero Copy (De-)Serialization TS <-> Rust
Talk rust typescript webassembly
JSON works until it doesn’t — particularly when Rust and TypeScript services need to exchange complex data structures without paying the parse-serialize tax on every message. I showed how Cap’n Proto, the zero-copy binary protocol used at Cloudflare (created by the author of Protobuf 2), eliminates that overhead.
The talk walked through modeling non-trivial datatypes in Cap’n Proto’s schema language and how the resulting binary layouts make zero-copy deserialization possible across the Rust-TypeScript boundary.