|2 months ago||4 days ago|
|Apache License 2.0||Apache License 2.0|
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
pub/sub Event bus in rust
7 projects | /r/rust | 10 Oct 2022
Is there any part of the Standard Library that really impresses you?
6 projects | /r/rust | 30 Aug 2022
I also like flume, it has impressive performance (although not the best). More importantly, it's written only with safe rust. https://github.com/zesterer/flume
appreciating fearless concurrency
4 projects | /r/rust | 24 Apr 2022
The most commonly suggested replacement for mspc is crossbeam-channel; flume is also relatively popular.
Rust has a small standard library (and that's ok)
6 projects | /r/rust | 30 Jan 2022
It's not officially deprecated, but the alternatives on crates.io are considered better. flume and crossbeam-channel feature less unsafe code and offer better performance. Benchmarks.
Why are so many important features not in standard library yet?
9 projects | /r/rust | 20 Nov 2021
it's slow (checkout flume's benchmarks for example)
A mini-Erlang/Elixir -- tell me if/why my idea sucks
5 projects | /r/ProgrammingLanguages | 14 Oct 2021
For concurrency/parallelism, you launch at most 2 * CPU Cores, PIN them and use a fast broker to spread the task (like a ring buffer or an MPSC). But you keep linear scan, tight loops, SIMD friendly data, on each. You are not switching context that much, and instead, bet you will process the batch fast. (CPUs are fast today!)
Whats your favourite open source Rust project that needs more recognition?
66 projects | /r/rust | 11 Oct 2021
PlaintDB Serves - another milestone reached
6 projects | dev.to | 14 Apr 2021
First, I was becoming more and more confident that the channel library Daxpedda and I fell in love with, flume, was misbehaving, but I couldn't seem to reproduce it outside of the massive PliantDB codebase. I finally called up Daxpedda on Discord and screen shared my debugging session, showing him how the tests succeeded if I retained a channel. If I allowed the sender to drop after successfully sending, sometimes the tests would fail. He agreed, something was odd. It took me a while, but I finally whittled it down to about 30 lines of code and reported the issue. In an amazingly quick fashion, the maintainer fixed the issue and released an update. And for the record, I still fully love and recommend this library if you're mixing async and non-async code using channels. It's a wonderful implementation.
single-producer single-consumer concurrent queue
5 projects | /r/rust | 29 Mar 2021
Sort of? Here's the closest thing you'll probably find: https://crates.io/crates/flume
Hey Rustaceans! Got an easy question? Ask here (6/2021)!
12 projects | /r/rust | 8 Feb 2021
My first try was with flume, which uses a single producer, multi-consumer setup, and while it compiles and runs, it's magnitudes slower than the serial version. Here's a psuedocode rendition:
Where can I read about how to write a safe API for unsafe code?
3 projects | /r/rust | 16 Sep 2023
Shooting from the hip, crossbeam might be a good candidate for understanding the thread safety aspects of Rust. I kind of feel like this is probably "too big" of a project if you're just learning, but I can't think of something smaller off the top of my head that would be suitable.
crossbeam VS scalable-concurrent-containers - a user suggested alternative
2 projects | 13 Apr 2023
Rust Tips and Tricks #PartOne
3 projects | dev.to | 8 Apr 2023
The crossbeam crate offers a powerful alternative to standard channels with support for the Select operation, timeouts, and more.
This implementation is actually unsafe since we don't check if the index is in-bounds. But this is fine since this is only used internally.
2 projects | /r/rustjerk | 26 Dec 2022
Rust vs Go
9 projects | /r/rust | 19 Oct 2022
Deadlocks and leaks are easy as other languages.
Help with package licensing issues
2 projects | /r/golang | 19 Oct 2022
Kanal: Channels 80x faster than the standard library!
7 projects | /r/rust | 16 Oct 2022
Ouch, didn’t know about https://github.com/crossbeam-rs/crossbeam/issues/821, thanks for pointing that out, that’s a big update for me!
Hey Rustaceans! Got a question? Ask here! (21/2022)!
9 projects | /r/rust | 24 May 2022
The last option I can think of is using two threads (like above) and epoch GC instead of a lock (i.e. using crossbeam-epoch). But I don't have enough experience with this to say anything about it.
what are the resources for writing multi threaded programs in rust
4 projects | /r/rust | 19 May 2022
You should definitely look at the Rayon crate. After I figured that out, my productivity vs multi threaded C was exponentially better (literally did many days of equivalent C work in less than an hour). Rayon is focused on data processing, other multi threaded stuff can benefit from other crates like crossbeam (Channels, scoped threads), and tokio (async networking).
Audio Libraries Considered Challenging
4 projects | /r/rust | 16 May 2022
What are some alternatives?
rayon - Rayon: A data parallelism library for Rust
tokio - A runtime for writing reliable asynchronous applications with Rust. Provides I/O, networking, scheduling, timers, ...
rust-threadpool - A very simple thread pool for parallel task execution
RxRust - The Reactive Extensions for the Rust Programming Language
coroutine-rs - Coroutine Library in Rust
Bus Writer - Single-reader, multi-writer & single-reader, multi-verifier; broadcasts reads to multiple writeable destinations in parallel
dashmap - Blazing fast concurrent HashMap for Rust.
libfringe - a Rust library implementing safe, lightweight context switches, without relying on kernel services
flapigen-rs - Tool for connecting programs or libraries written in Rust with other languages
uniffi-rs - a multi-language bindings generator for rust
rust - Empowering everyone to build reliable and efficient software.
rust - Rust for the xtensa architecture. Built in targets for the ESP32 and ESP8266