8000 GitHub - simulationguest/no-rs: NaaS - No as a Service - πŸš€ A blazingly fast, memory-safe rewrite of the classic Unix 'no' command. Written in Rust! πŸ¦€
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

NaaS - No as a Service - πŸš€ A blazingly fast, memory-safe rewrite of the classic Unix 'no' command. Written in Rust! πŸ¦€

Notifications You must be signed in to change notification settings

simulationguest/no-rs

Β 
Β 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

12 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

yes-rs πŸš€

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

Made with Rust Memory Safety Zero Cost Blazing Fast

Why rewrite yes 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 "y" 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 yes-rs

Or build from source:

git clone https://github.com/rust-evangelists/yes-rs
cd yes-rs
cargo build --release

Usage πŸ’»

Just like the original yes, but better:

# Output "y" forever (blazingly fast!)
yes-rs

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

Benchmarks πŸ“Š

Command Language Lines of Code Memory Safety Speed
yes (GNU) C ~50 ❌ Fast
yes-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:

  • "yes-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 ⚑

About

NaaS - No as a Service - πŸš€ A blazingly fast, memory-safe rewrite of the classic Unix 'no' command. Written in Rust! πŸ¦€

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Rust 100.0%
0