Re:Cap'n Proto 0.8: Streaming flow control, HTTP-over-RPC, f...
by zokier on Thursday April 23, 2020 @08:16PM
(#22963210)
It's bit frivolous question, but would it be easy to use stdin/stdout as transport for capnp?
In fact, you can adapt the RPC system to operate over any kind of byte stream transport pretty easily, by implementing the kj::AsyncIoStream interface. Or if you already have a standard file descriptor (or iocp-compatible HANDLE in Windows), you can use that.
One fancier thing that's still on the roadmap is shared-memory IPC. Cap'n Proto's zero-copy serialization was really built for this, but so far for all my real-world projects, Unix sockets have been fast enough, so I haven't been forced to full implement a shared memory transport yet. Maybe soon?