Hacker GitHub

← All repos

tokio-rs/loom

View on GitHub ↗ ★ 2,859 Rust

Concurrency permutation testing tool for Rust.

24 mentions on Hacker News by 17 people: 1 story, 23 comments · first 2020-06-22 · latest 2026-04-03

Mentions per year 24 mentions · busiest year 2021 (8)
20082026
  1. For Rust we have Loom [0], but do not expect for it to work on your whole application. [0]: https://github.com/tokio-rs/loom
    comment by newpavlov · 2026-04-03 · in Big-Endian Testing with QEMU
  2. …to simulate the queue in Loom, which would be a very, very good idea. Loom is apparently this: https://github.com/tokio-rs/loom I've used tokio a bit in the past, but wasn't aware of that tool at all, looks really useful and probably I'm…
  3. See Tokio's Loom as an example: https://github.com/tokio-rs/loom In development, you import Loom's mutex. In production, you import a regular mutex. This of course has zero overhead, but the simulation testing itself is usually quite slow.…
  4. …lower than i.e. TLA+ and is not a proof but super useful as you check the actual implementation. https://github.com/tokio-rs/loom
  5. …[1] or awslabs/shuttle [2]? IMO that would go a long way towards building trust in this impl. [1] https://github.com/tokio-rs/loom [2] https://github.com/awslabs/shuttle
  6. …Kani https://model-checking.github.io/kani/ - I wonder if Servo could use it in this case? Or maybe https://github.com/tokio-rs/loom
    comment by nextaccountic · 2024-08-14 · in Re-fixing Servo's event-loop
  7. …were previously caught and fixed [3]. [0] https://github.com/kaymanb/todc/tree/main/todc-mem [1] https://github.com/tokio-rs/loom [2] https://github.com/awslabs/shuttle [3] https://github.com/kaymanb/todc/blob/0e2874a70ec8beed8fae773...
  8. …[2] https://github.com/reitzensteinm/temper/blob/main/memlog/tes... [3] https://github.com/tokio-rs/loom [4] https://www.youtube.com/watch?v=4fFDFbi3toc [5] https://antithesis.com/
    comment by reitzensteinm · 2024-07-06 · in Properly testing concurrent data structures
  9. …tests both on x86 and ARM. It might be worth testing/forking the library to test on Loom ( https://github.com/tokio-rs/loom ), which can model atomic orderings and check for concurrency errors to some degree (though I last used it years…
  10. Rust's tokio has a project called loom as well which can do permutation testing of async code: https://github.com/tokio-rs/loom
    comment by bbatha · 2023-09-19 · in JDK 21 Release Notes
  11. See Also: Loom ( https://github.com/tokio-rs/loom ), a concurrency permutation testing tool.
  12. …I say this only because CS degrees has preached mutices to as the silver bullet for decades. [2]: https://github.com/tokio-rs/loom
  13. https://github.com/tokio-rs/loom perhaps? It also models weak memory reordering, but takes some work to integrate into existing apps. For triggering race conditions in compiled binaries, you could try https://robert.ocallahan.org/2016/02/in…
    comment by nyanpasu64 · 2021-12-03 · in The Deadlock Empire
  14. …code. Though as far as I can tell it is designed for debugging threads, not async tasks. [1] https://github.com/tokio-rs/loom
    comment by paavohtl · 2021-11-03 · in What could Go wrong with a mutex
  15. …from std's (and worse yet, some people report Loom returns false positives/negatives in some cases: https://github.com/tokio-rs/loom/issues/180 , possibly https://github.com/tokio-rs/loom/issues/166 ).
  16. Have i told you about our lord and savior Rust? Anyways, https://github.com/tokio-rs/loom is used by any serious library doing atomic ops/synchronization and it blew me away with how fast it can catch most bugs like this.
  17. …"maximum thread switch count"), as well as modeling atomic/weak memory effects to some degree. [1]: https://github.com/tokio-rs/loom
  18. ▲ 2
    Concurrency permutation testing tool for Rust
    story by styluss · 2021-06-01 · 0 comments
  19. …where you specify the ordering. [0] https://preshing.com/20120930/weak-vs-strong-memory-models/ [1] https://github.com/tokio-rs/loom
    comment by troutwine · 2021-05-13 · in Multicore OCaml: April 2021
  20. …a tool called Loom that helps with that, as a powerful complement to what ThreadSanitizer provides: https://github.com/tokio-rs/loom . You can think of Loom sort of like QuickCheck, except the permutations are all the possible thread…
    comment by kibwen · 2021-04-06 · in Eliminating Data Races in Firefox
  21. …semantics. The Tokio team needs an additional model checker to ensure no data race in Tokio: - https://github.com/tokio-rs/loom If you want to ensure no data races you need formal verification not a borrow checker, I've compiled my…
    comment by mratsim · 2020-10-20 · in Nim 1.4
  22. …with concurrency bugs (beyond memory safety) to write a model checker for Rust code called Loom https://github.com/tokio-rs/loom . Nethertheless this proves that Rust should grow beyond the fearless concurrency/borrow checker narrative…
  23. …story of concurrent code forward. On the Rust side, i feel like Loom has a lot of potential https://github.com/tokio-rs/loom and I'm keeping tabs on them.
  24. …[2]: https://en.wikipedia.org/wiki/Lamport%27s_bakery_algorithm [3]: https://github.com/tokio-rs/loom