no-rs

Crates.iono-rs
lib.rsno-rs
version0.7.0
created_at2025-05-27 05:37:28.250376+00
updated_at2025-05-30 20:20:48.019278+00
description🚀 A blazingly fast, memory-safe rewrite of the classic Unix 'yes' command inverted. Written in Rust! 🦀
homepage
repositoryhttps://github.com/jauderho/no-rs
max_upload_size
id1690636
size91,838
Jauder Ho (jauderho)

documentation

README

no-rs 🚀

FORKED: Because sometimes it is better to say no

A blazingly fast, memory-safe rewrite of the classic Unix yes command inverted

Made with Rust Memory Safety Zero Cost Blazing Fast

Why rewrite no in Rust? 🤔

Because the original yes command (written in shudders C) is:

  • ❌ Not memory-safe
  • ❌ Prone to buffer overflows
  • ❌ Lacks modern error handling
  • ❌ Missing zero-cost abstractions
  • ❌ No fearless concurrency
  • ❌ Not written in Rust

Features ✨

  • 🚀 Blazingly fast - Outputs "n" at unprecedented speeds
  • 🛡️ Memory safe - No segfaults, guaranteed!
  • Zero-cost abstractions - Maximum performance
  • 🔥 Fearless concurrency - Ready for async/await (coming soon!)
  • 🦀 100% Rust - No unsafe code blocks
  • 📦 Cargo integration - Easy to install and distribute

Installation 📦

cargo install no-rs

Or build from source:

git clone https://github.com/jauderho/no-rs
cd no-rs
cargo build --release

Usage 💻

Just like the original no, but better:

# Output "n" forever (blazingly fast!)
no-rs

# Output custom string forever (memory-safe!)
no-rs "hello rust"

Benchmarks 📊

Command Language Lines of Code Memory Safety Speed
yes (GNU) C ~50 Fast
no-rs Rust 🦀 ~1302 BLAZING FAST

Benchmarks conducted on my laptop

Contributing 🤝

We welcome contributions! Please ensure all code is:

  • ✅ Written in Rust
  • ✅ Memory-safe
  • ✅ Blazingly fast
  • ✅ Uses zero-cost abstractions

Share the Rust Revolution 🦀

Think this project deserves more recognition? Share it on Hacker News!

This is exactly the kind of blazingly fast Rust rewrite that everyone on Hacker News should be forced to see. Help spread awareness about it.

Suggested HN title:

  • "no-rs: A blazingly fast, memory-safe rewrite of Unix 'yes' WRITTEN IN RUST 🦀"
  • "1302 lines of Rust vs 50 lines of C: The future of systems programming"

Because if it's not written in Rust, it's not worth using. 🦀


⚡ Powered by Rust ⚡

Commit count: 26

cargo fmt