Get the latest tech news

IPC in Rust – A Ping Pong Comparison


wanted to explore different ways of communicating between different processes executing on the same machine, and doing so as fast as possible. We're focussing on high speed inter-process communication (IPC), but some of these approaches can be extended across a network.

To learn about the pain of synchronising multiple clocks like this on a network, read or listen this incredible in-depth piece from Jane Street: https://signalsandthreads.com/clock-synchronization/ With more complex data structures it might be annoying as some decision would have to be made on a delimiter between messages that wasn't just newlines, but it feels fairly extendable as well. System calls on Linux are complex, and there are various mitigations, but having to wipe registers, validate, drop down into the kernel ring, get the output, and then undo those steps takes time.

Get the Android app

Or read this on Hacker News

Read more on:

Photo of Rust

Rust

Photo of IPC

IPC

Photo of ping pong comparison

ping pong comparison

Related news:

News photo

Enhancing Code Completion for Rust in Cody

News photo

Htmd: A turndown.js inspired HTML-to-Markdown converter for Rust

News photo

Rust's Foundation Announces a New 'Safety-Critical Rust Consortium'