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.
Subscribe to:
Post Comments (Atom)
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...
-
Puppeteer is a powerful tool to control web application at server side using headless chromium. This is mainly used for automated testing,...
-
There are several reverse proxy server. Following crate seems easy to use. https://docs.rs/hyper-reverse-proxy/0.4.0/hyper_reverse_proxy/...
-
There is an interesting article demonstrating how to write channel using Rust: Multithreading in Rust with MPSC (Multi-Producer, Single ...
No comments:
Post a Comment