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