Results 127 comments of Adam Gausmann

Any further discussion needed before `AsRef` and `AsMut` are implemented? Newtypes are pretty straightforward, but if we want to do it for other structs, it's not as easy and would...

I'd avoid using multiple top-level attributes. It would be better to use a single attribute name like `#[derive_more(as_ref, as_mut)]`, similar to the pattern that Serde uses.

I don't see anything here that would prevent it from loading the function from the build output. I looked one step higher, and found out that the function I'm looking...

Here's a [godbolt example](https://godbolt.org/z/UftQJr), demonstrating: 1. the opaque type itself (`Iter`), 2. a wrapper struct around the explicit type behind the opaque type (`Iter2`), and 3. a wrapper struct around...

Unfortunately, the code for `::next` disappears when compiling with optimizations (`-O`), I ran into problems applying this to my larger use case as well. The wrapper struct method fails to...

Is there still interest in merging this or something like it? It would be useful for a project I'm working on. If the original author doesn't want to work on...

I've been doing some research today; I don't mess around with lock-free code very often so it's an interesting learning experience! I quickly found out that making `readers` atomic is...

That's one idea to try. Another would be to send "add" messages via a channel, similar to the way that it currently handles dropped readers. That way the broadcaster can...

Okay, the lock implementation is [in a working state](https://github.com/agausmann/bus/tree/read_handle/lock), here are the benchmarks on my machine: ## `master` ``` $ cargo run --bin bench --release 1 1000 0.26 μs/op 2...

With `parking_lot::Mutex` there are improvements of around 10-30ns across the board. > I wonder if with this lock, we can now also get rid of the additional thread that does...