Monday, January 13, 2020

Crossbeam: MPMC channel in Rust

I found Rust is not yet officially supporting Multi Producer Multi Consumer channel yet.
It only supports mpsc  lib i.e, Multi Producer Single Consumer channel.

This make difficult to write Go style channel program in Rust.
There has been quite intensive research activity to support MPMC recent years. see:

https://stjepang.github.io/2019/01/29/lock-free-rust-crossbeam-in-2019.html

Basically at the begging of 2019, crossbeam became available to fulfill this requirements.
Servo is already using it.
I don't know what happened year 2019 for this library, but the github is still active these days.



No comments:

Post a Comment

Recursive Matrix and the parallel matrix multiplication using crossbeam and generic constant

This was planned project I posted before. Basically in order to evaluate Rust's claim for zero cost abstraction and the effectiveness o...