Hasty Briefsbeta

Bilingual

Cap'n Proto

3 months ago
  • #RPC
  • #performance
  • #data-interchange
  • Cap’n Proto is a fast binary data interchange format and RPC system, faster than Protocol Buffers.
  • Cap’n Proto's encoding is platform-independent, designed for efficient manipulation on modern CPUs.
  • Backwards-compatibility is maintained by adding new fields to the end of structs.
  • Fixed-width integers and padding can be compressed efficiently with Cap’n Proto's packing scheme.
  • Cap’n Proto includes security measures like pointer validation and has been reviewed for security.
  • Advantages include incremental reads, random access, mmap support, and inter-language communication.
  • Cap’n Proto is optimized for performance with arena allocation and tiny generated code.
  • The RPC system features time-traveling RPC, where results can be returned before the request arrives.
  • Cap’n Proto was developed by Kenton Varda, the primary author of Protocol Buffers version 2.
  • To get started, visit the installation page or join the discussion group for contributions.