News for hackers. Stuff that matters.
Re:Properly testing concurrent data structures by skybrian on Saturday July 06, 2024 @11:23AM (#40890940)
It looks like you need to use conditional compilation to use Loom, which probably works okay for testing one library, but is pretty intrusive:

    #[cfg(loom)]
    pub(crate) use loom::sync::atomic::AtomicUsize;

    #[cfg(not(loom))]
    pub(crate) use std::sync::atomic::AtomicUsize;
I wonder if there are any languages that do a better job of letting you use your own scheduler?
Re:Properly testing concurrent data structures by kriper on Saturday July 06, 2024 @11:32AM (#40891002)
in C# it's basically automatic https://github.com/microsoft/coyote/