{"by":"ygoldfeld","descendants":57,"id":40028118,"kids":[40029054,40024280,40005504,40032445,39987737,40010197,40036852,40032189,40005544,40024248,40030960],"score":88,"text":"If you work in C++, and you would like 2+ programs to share data structures (and&#x2F;or native I&#x2F;O handles a.k.a. FDs) among each other, there is a good chance Flow-IPC<p>- will make it considerably less annoying to code than typical approaches; and<p>- may massively reduce the latency involved.<p>Those sharing Cap&#x27;n Proto-encoded data may have particular interest. Cap&#x27;n Proto (<a href=\"https:&#x2F;&#x2F;capnproto.org\" rel=\"nofollow\">https:&#x2F;&#x2F;capnproto.org</a>) is fantastic at its core task - in-place serialization with zero-copy - and we wanted to make the IPC (inter-process communication) involving capnp-serialized messages be <i>zero-copy, end-to-end</i>.<p>That said, we paid equal attention to other varieties of payload; it&#x27;s not limited to capnp-encoded messages. For example there is painless (&lt;-- I hope!) zero-copy transmission of arbitrary combinations of STL-compliant native C++ data structures.<p>To help determine whether Flow-IPC is relevant to you we wrote an intro blog post. It works through an example, summarizes the available features, and has some performance results. <a href=\"https:&#x2F;&#x2F;www.linode.com&#x2F;blog&#x2F;open-source&#x2F;flow-ipc-introduction-low-latency-cpp-toolkit\" rel=\"nofollow\">https:&#x2F;&#x2F;www.linode.com&#x2F;blog&#x2F;open-source&#x2F;flow-ipc-introductio...</a><p>Of course there&#x27;s nothing wrong with going straight to the GitHub link and getting into the README and docs.<p>Currently Flow-IPC is for Linux. (macOS&#x2F;ARM64 and Windows support could follow soon, depending on demand&#x2F;contributions.)","time":1713060915,"title":"Show HN: Comprehensive inter-process communication (IPC) toolkit in modern C++","type":"story","url":"https://github.com/Flow-IPC"}