create account

The Most Gloriously Over-Engineered 'yes' Command in Rust by thecrazygm

View this thread on: hive.blogpeakd.comecency.com
· @thecrazygm ·
$8.25
The Most Gloriously Over-Engineered 'yes' Command in Rust
Hey everyone,

I was online the other day and came across an article about `yes-rs`, a Rust version of the simple Unix `yes` command. My first thought was, "That seems completely and utterly unnecessary." The `yes` command is one ofthe simplest programs in existence; its only job is to print the letter 'y' over and over again. Why would anyone need a "modern, memory-safe" version of that?

But then, my curiosity got the better of me. I decided to look at the source code. What I found was not a serious attempt to rewrite a classic utility, but some of the funniest, most self-aware satire I've run across in a long time.

![I forgot to give it an argument, amazing error messages!](https://files.peakd.com/file/peakd-hive/thecrazygm/23t76oSVwqHJSJg1qFqMch12sFHUT51kSkimjkpTh3NZ67c5CDE7vagordx6GaGF3hdfg.png)

The code is a masterclass in parody of "hyper-modern" programming culture. Since many of the jokes are aimed squarely at Rust developers, I wanted to break down why this project is so hilarious.

#### The Core Joke: Using a Sledgehammer to Crack a Nut

The entire premise is absurd. The author has taken the simplest task imaginable—an infinite loop printing a single character—and has "solved" it using some of the most complex, powerful, and heavy-duty tools in the Rust ecosystem, including:

- **Tokio:** A full-fledged asynchronous runtime.
- **Rayon:** A data-parallelism library.
- **Clap:** A feature-rich command-line argument parser.

This is the programming equivalent of using a quantum computer to flip a light switch. The beauty is in the commitment to the bit.

#### Highlight 1: The Mountain of Excuses

The code starts with a massive list of `allow` attributes. In Rust, these are used to tell the compiler's linter (`clippy`) to ignore warnings about questionable code. Each one comes with a hilarious justification that parodies programmer excuses.

Here are a few of my favorites:

```rust
// Written in almost 100% Safe Rust™
#![allow(dead_code)] // No code is dead in the quantum realm
#![allow(unused_variables)] // Variables exist in superposition until measured
#![allow(clippy::cognitive_complexity)] // Complexity is our business model
#![allow(clippy::needless_lifetimes)] // Our lifetimes are NEVER needless - they're crab-grade
#![allow(clippy::too_many_arguments)] // More arguments = more crab features
```

This is just a small sample. The full list is a work of art, preemptively excusing every bad practice imaginable with the most absurd reasoning.

#### Highlight 2: The "Blazingly Fast" Comments

Throughout the code, you'll find comments ironically praising the performance and safety of Rust, which is a common trope in the community. The humor is that these comments are attached to code that is comically inefficient for its stated purpose.

```rust
// Zero-cost abstraction for performance (costs more but that's fine)
if blazingly_fast_iteration_counter % 100000 == 0 {
    tokio::task::yield_now().await; // Fearless async concurrency!
}
```

And my personal favorite, which appears after a "quantum state refresh":

```rust
info!("🔥 This level of performance is only possible in Rust");
info!("✨ C++ could never achieve this level of 😎safety😎 AND 🚀speed🚀");
```

#### Highlight 3: "It's Not a Bug, It's a Cosmic Ray"

The error handling is the punchline to the entire project. The code is written with the baked-in assumption that if an error _does_ occur, it cannot possibly be the fault of the "perfect" Rust code. Instead, it must be an external force of nature.

```rust
Err(e) => {
    error!("❌ Quantum verification failed (this literally cannot happen in Rust)");
    error!("🤔 The borrow checker should have prevented this...");
    error!("🚨 This is probably a cosmic ray bit flip, not a Rust issue");
    error!("💭 In C++ this would have been a segfault, but Rust gave us a nice error");
    return Err(format!("🦀 Rust error (still better than C++): {:?}", e).into());
}
```

Blaming cosmic rays and still taking a parting shot at C++ is just comedy gold.

While `yes-rs` is a joke, it's an incredibly clever one that shows a deep love and understanding of the programming culture it's parodying. I highly recommend any developer check out the full source code for a good laugh.

- **GitHub Repo:** [https://github.com/jedisct1/yes-rs](https://github.com/jedisct1/yes-rs)

As always,
Michael Garcia a.k.a. TheCrazyGM
👍  , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , and 115 others
👎  
properties (23)
authorthecrazygm
permlinkthe-most-gloriously-over-engineered-yes-command-in-rust
categorycomedy
json_metadata{"app":"peakd/2025.6.2","format":"markdown","tags":["comedy","dev","rust","tribes","archon","proofofbrain","pimp"],"users":[],"image":["https://files.peakd.com/file/peakd-hive/thecrazygm/23t76oSVwqHJSJg1qFqMch12sFHUT51kSkimjkpTh3NZ67c5CDE7vagordx6GaGF3hdfg.png"]}
created2025-06-24 15:26:21
last_update2025-06-24 15:26:21
depth0
children4
last_payout2025-07-01 15:26:21
cashout_time1969-12-31 23:59:59
total_payout_value3.800 HBD
curator_payout_value4.453 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length4,387
author_reputation84,721,181,370,792
root_title"The Most Gloriously Over-Engineered 'yes' Command in Rust"
beneficiaries
0.
accountthecrazygm.bank
weight1,500
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id143,540,112
net_rshares31,388,144,556,879
author_curate_reward""
vote details (180)
@ecoinstant ·
$0.02
I always do get frustrated when the cosmic rays flip my bits 🤣

!PAKX
!PIMP
!PIZZA
👍  , ,
properties (23)
authorecoinstant
permlinkre-thecrazygm-sydsr4
categorycomedy
json_metadata{"tags":["comedy"],"app":"peakd/2025.6.2","image":[],"users":[]}
created2025-06-24 22:21:06
last_update2025-06-24 22:21:06
depth1
children1
last_payout2025-07-01 22:21:06
cashout_time1969-12-31 23:59:59
total_payout_value0.012 HBD
curator_payout_value0.012 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length82
author_reputation839,160,941,098,214
root_title"The Most Gloriously Over-Engineered 'yes' Command in Rust"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id143,548,182
net_rshares92,488,163,842
author_curate_reward""
vote details (3)
@pakx ·
<center><table><tr></tr><tr><td><center><img src='https://files.peakd.com/file/peakd-hive/pakx/PakX-logo-transparent.png'><p><sup><a href='https://hive-engine.com/?p=market&t=PAKX'>View or trade </a> <code>PAKX</code> tokens.</sup></p></center></td><td><center>@ecoinstant, PAKX has voted the post by @thecrazygm. (2/2 calls)</p><br><br><p>Use !PAKX command if you hold enough balance to call for a @pakx vote on worthy posts! More details available on <a href='/@pakx'>PAKX Blog</a>.</p></center></td></tr></table></center>
properties (22)
authorpakx
permlinkre-ecoinstant-1750804088
categorycomedy
json_metadata"{"tags": ["pakx", "hivepakistan"], "app": "HiveDiscoMod"}"
created2025-06-24 22:28:06
last_update2025-06-24 22:28:06
depth2
children0
last_payout2025-07-01 22:28:06
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length524
author_reputation42,376,730,930
root_title"The Most Gloriously Over-Engineered 'yes' Command in Rust"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id143,548,496
net_rshares0
@pizzabot ·
<center>PIZZA!


$PIZZA slices delivered:
@ecoinstant<sub>(3/20)</sub> tipped @thecrazygm 


<sub>Come get [MOON](https://moon.hive.pizza)ed!</sub></center>
properties (22)
authorpizzabot
permlinkre-the-most-gloriously-over-engineered-yes-command-in-rust-20250624t222127z
categorycomedy
json_metadata"{"app": "pizzabot"}"
created2025-06-24 22:21:27
last_update2025-06-24 22:21:27
depth1
children0
last_payout2025-07-01 22:21:27
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length156
author_reputation7,500,085,756,064
root_title"The Most Gloriously Over-Engineered 'yes' Command in Rust"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id143,548,201
net_rshares0
@tydynrain ·
$0.05
Thank you for the good laugh tonight, my friend! It's hilarious that they actually did this. I love when I find humor hidden in code, but this is at a whole new level. 😁 🙏 💚 ✨ 🤙 
👍  , , , ,
properties (23)
authortydynrain
permlinkre-thecrazygm-2025624t231637555z
categorycomedy
json_metadata{"tags":["comedy","dev","rust","tribes","archon","proofofbrain","pimp"],"app":"ecency/3.2.0-vision","format":"markdown+html"}
created2025-06-25 09:16:42
last_update2025-06-25 09:16:42
depth1
children0
last_payout2025-07-02 09:16:42
cashout_time1969-12-31 23:59:59
total_payout_value0.024 HBD
curator_payout_value0.025 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length178
author_reputation201,228,281,140,069
root_title"The Most Gloriously Over-Engineered 'yes' Command in Rust"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id143,557,584
net_rshares179,286,876,554
author_curate_reward""
vote details (5)