Skip to content
ํ”„๋กœ์ ํŠธ

์†Œ๊ฐœ

๐Ÿš€ ํด๋ž˜์‹ Unix `yes` ๋ช…๋ น์„ ๋งค์šฐ ๋น ๋ฅด๊ณ  ๋ฉ”๋ชจ๋ฆฌ ์•ˆ์ „ํ•˜๊ฒŒ ๋‹ค์‹œ ๊ตฌํ˜„ํ–ˆ์Šต๋‹ˆ๋‹ค. Rust๋กœ ์ž‘์„ฑ๋˜์—ˆ์Šต๋‹ˆ๋‹ค! ๐Ÿฆ€

๊ธฐํƒ€ ํ”„๋กœ์ ํŠธ

์ด ์ˆ˜์น˜๋ฅผ ์ธก์ •ํ•˜๋Š” ๋ฐฉ๋ฒ•

What you can do

  • ๐Ÿš€ 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!)

์ธก์ •๋œ ์Šคํƒ€ ์ฆ๊ฐ€

in 24h
0
in 7 days
0
in 15 days
0
in 1 month
๊ธฐ๋ก ์ˆ˜์ง‘ ์ค‘

์„œ๋กœ ๊ฒน์น˜๋Š” ๊ธฐ๊ฐ„์˜ ์ˆœ์ฆ๊ฐ€๋Ÿ‰์ด๋ฉฐ ์ผ๋ณ„ ํ•ฉ๊ณ„๊ฐ€ ์•„๋‹™๋‹ˆ๋‹ค. ์ธก์ •๊ฐ’์ด ์—†์œผ๋ฉด ๋น„์›Œ ๋‘ก๋‹ˆ๋‹ค. ์Šคํƒ€๋Š” ๊ด€์‹ฌ๋„๋ฅผ ๋‚˜ํƒ€๋‚ด๋ฉฐ ํ’ˆ์งˆ์„ ๋ณด์žฅํ•˜์ง€ ์•Š์Šต๋‹ˆ๋‹ค.

README.md

Original

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/jedisct1/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 โšก

๊ด€๋ จ ํ”„๋กœ์ ํŠธ ์‚ดํŽด๋ณด๊ธฐ

๋ถˆ๋Ÿฌ์˜ค๋Š” ์ค‘โ€ฆ