Hacker ApprovedDepartments

Miri

Hacker Approved

Ranked 2 of 6 sanitizers by recommenders

Free Rust tool that runs your tests and flags undefined behavior and memory violations in unsafe code. Critics say it has bugs and limitations and cannot catch everything.

Free Rust tool that runs your tests and flags undefined behavior and memory violations in unsafe code. Critics say it has bugs and limitations and cannot catch everything.

29 people gave an opinion

recommend it
26
criticize it
3
approval share
90%
Each figure is one person. RecommendsCriticizes

Recommended in 12 of 13 months

  1. November 2025: recommended
  2. December 2025: recommended
  3. January 2026: recommended
  4. February 2026: recommended
  5. March 2026: recommended
  6. April 2026: recommended
  7. May 2026: recommended
  8. June 2026: recommended
  9. July 2026: recommended
  10. August 2026: recommended
  11. September 2026: recommended
  12. October 2026: recommended
  13. November 2026: not recommended (month in progress)

Why it carries the badge

  • 26 people recommend itNeeds 10 or more, met.
  • 8.7 recommenders for every criticNeeds 2 to 1 or better, met.
  • Recommended in 12 of 13 monthsNeeds 4 or more, met.

The same three rules apply to every product, and the badge can’t be bought. How the badge works

What people say about it

The reasons people give, with the number of comments that give each one. Open a reason to read what they said.

Why people recommend it

Each mark is one comment

  • Catches undefined behavior at runtime

    “Unsafe Rust actually has a great runtime analyzer: Miri. It's very easy to just run cargo +nightly miri test in your project”

    Comment from 2 Nov 2025 in “Notes by djb on using Fil-C”

    “you can also verify the unsafe implementation using Miri which is a significantly strong runtime checker”

    Comment from 11 Nov 2025 in “Memory Safety for Skeptics”

    “run those tests under Miri, which will loudly complain if you perform any memory-unsafe operations”

    Comment from 29 Apr 2026 in “Bugs Rust Won't Catch”
  • Easy to run from the command line

    “Unsafe Rust actually has a great runtime analyzer: Miri. It's very easy to just run cargo +nightly miri test in your project”

    Comment from 2 Nov 2025 in “Notes by djb on using Fil-C”

    “Rust has things like miri that can help you write your unsafe code and it's just a command line invocation away.”

    Comment from 20 Jul 2026 in “Claude Code uses Bun written in Rust now”
  • Useful for crates that use unsafe

    “If you have a codebase that uses unsafe, I highly recommend running your tests through Miri”

    Comment from 2 Jan 2026 in “Miri: Practical Undefined Behavior Detection for Rust [pdf]”

    “It is a great tool for those of us that have crates that need to use unsafe”

    Comment from 2 Jan 2026 in “Miri: Practical Undefined Behavior Detection for Rust [pdf]”
  • Stronger than sanitizers

    “run `miri`, which is like a sanitizer on steroids”

    Comment from 19 Feb 2026 in “Zero-day CSS: CVE-2026-2441 exists in the wild”

    “Miri is a stronger proof than sanitizers”

    Comment from 22 Oct 2026 in “Rust Style Guide”

Other sanitizers people recommend

The four most recommended other sanitizers, with the same counts for each, so you can compare like for like. The tick on each bar marks the 2 to 1 line the badge needs.

Miri compared with 4 alternatives
ProductRecommendCriticizeApprovalMonthsOwnedBadge
Valgrind29878%13—Approved
MiriThis page26390%12—Approved
AddressSanitizer21484%7—Approved
UndefinedBehaviorSanitizer120100%5—Approved
Go race detector5183%4——
See all 6 sanitizers, ranked

What people said

31 of the 33 comments that mention it, newest first. Each links to the original comment.

“Miri is a stronger proof than sanitizers”

RecommendsComment from 22 Oct 2026 in “Rust Style Guide”

“miri and loom both have analyzers that can check some non-sequentially-consistent behavior”

RecommendsComment from 30 Sep 2026 in “What TLA+ can and can't check”

“Miri stores all environment variables to target/,”

CriticizesComment from 22 Sep 2026 in “GitHub Actions leaking secrets when Miri output is cached”

“do it unsafe there, test with miri”

RecommendsComment from 8 Sep 2026 in “Replacing a Rust Enum with a 64-Bit Word Made My Interpreter 17% Faster”

“Not to mention the availability of advanced tooling like MIRI.”

RecommendsComment from 31 Aug 2026 in “Zig: Pointer Stability for ArrayLists”

“they just want to maintain their url”

CriticizesComment from 15 Aug 2026 in “The Problem”

“I've done this all before and it works fine.”

RecommendsComment from 27 Jul 2026 in “How is the Bun Rewrite in Rust going?”

“Rust has things like miri that can help you write your unsafe code and it's just a command line invocation away.”

RecommendsComment from 20 Jul 2026 in “Claude Code uses Bun written in Rust now”

“Try Miri with the new Bun project. It's currently blowing up.”

RecommendsComment from 13 Jul 2026 in “Zig Creator Calls Spade a Spade, Anthropic Blows Smoke”

“Miri checks aliasing violations dynamically, making it a natural complement.”

RecommendsComment from 6 Jul 2026 in “Kani: A Model Checker for Rust”

“Miri, all respect to it, has bugs, probability-based testing and other limitations and issues.”

MixedComment from 15 Jun 2026 in “Memory safety CVEs differ between Rust and C/C++”

“Rust also has Miri, and a much better baseline for static analysis.”

MixedComment from 14 Jun 2026 in “Twenty One Zero-Days in FFmpeg”

“Will definitely use that going forward”

RecommendsComment from 15 May 2026 in “Bun Rust rewrite: "codebase fails basic miri checks, allows for UB in safe rust"”

“backpressure the rewrite with tools like miri”

RecommendsComment from 15 May 2026 in “Bun Rust rewrite: "codebase fails basic miri checks, allows for UB in safe rust"”

“would have trivially uncovered this error before it made it to the mainline”

RecommendsComment from 15 May 2026 in “Bun Rust rewrite: "codebase fails basic miri checks, allows for UB in safe rust"”

“run those tests under Miri, which will loudly complain if you perform any memory-unsafe operations”

RecommendsComment from 29 Apr 2026 in “Bugs Rust Won't Catch”

“really solid tools like Miri for finding undefined behavior”

RecommendsComment from 21 Mar 2026 in “We rewrote our Rust WASM Parser in TypeScript – and it got 3x Faster”

“This sucks because there's no way to configure it to skip over the crate”

MixedComment from 19 Feb 2026 in “Zero-day CSS: CVE-2026-2441 exists in the wild”

“run `miri`, which is like a sanitizer on steroids”

RecommendsComment from 19 Feb 2026 in “Zero-day CSS: CVE-2026-2441 exists in the wild”

“Rust with miri/cargo-deny/cargo-check/cargo-fmt”

RecommendsComment from 30 Jan 2026 in “Show HN: Amla Sandbox – WASM bash shell sandbox for AI agents”

“I almost always find I have made mistakes that Miri catches.”

RecommendsComment from 2 Jan 2026 in “Miri: Practical Undefined Behavior Detection for Rust [pdf]”

“Many of them were real unsoundness bugs due to reference aliasing.”

RecommendsComment from 2 Jan 2026 in “Miri: Practical Undefined Behavior Detection for Rust [pdf]”

“If you have a codebase that uses unsafe, I highly recommend running your tests through Miri”

RecommendsComment from 2 Jan 2026 in “Miri: Practical Undefined Behavior Detection for Rust [pdf]”

“It is a great tool for those of us that have crates that need to use unsafe”

RecommendsComment from 2 Jan 2026 in “Miri: Practical Undefined Behavior Detection for Rust [pdf]”

“You can run your pointer-fiddling code in Miri today to check that you're following the rules.”

RecommendsComment from 11 Dec 2025 in “Rust in the kernel is no longer experimental”

“Miri cannot catch everything, and is magnitudes slower than regular program running.”

CriticizesComment from 5 Dec 2025 in “Thoughts on Go vs. Rust vs. Zig”

“There are tools like Miri that allow us to test that we haven't broken the rules.”

RecommendsComment from 5 Dec 2025 in “Thoughts on Go vs. Rust vs. Zig”

“you can also verify the unsafe implementation using Miri which is a significantly strong runtime checker”

RecommendsComment from 11 Nov 2025 in “Memory Safety for Skeptics”

“it lets us exercise safe code to ensure there aren't memory violations caused by incorrect MIR lowering”

MixedComment from 7 Nov 2025 in “A Note on Fil-C”

“Unsafe Rust actually has a great runtime analyzer: Miri. It's very easy to just run cargo +nightly miri test in your project”

RecommendsComment from 2 Nov 2025 in “Notes by djb on using Fil-C”

“use tools like Miri to make sure they upheld”

RecommendsComment from 1 Nov 2025 in “Hard Rust requirements from May onward”

Counts come from 1,795,640 Hacker News comments, November 2025 to November 2026. How we count. Report a mistake.