一个闪亮快活的,安全的记忆重写经典Unix'yes'命令. 写入 Rust!
A blazingly fast, memory-safe rewrite of the classic Unix
yescommand
yes in Rust?Because the original yes command (written in shudders C) is:
cargo install yes-rsOr build from source:
git clone https://github.com/jedisct1/yes-rs
cd yes-rs
cargo build --releaseJust like the original yes, but better:
# Output "y" forever (blazingly fast!)
yes-rs
# Output custom string forever (memory-safe!)
yes-rs "hello rust"| Command | Language | Lines of Code | Memory Safety | Speed |
|---|---|---|---|---|
yes (GNU) |
C | ~50 | ❌ | Fast |
yes-rs |
Rust | ~1302 | ✅ | BLAZING FAST |
Benchmarks conducted on my laptop
We welcome contributions! Please ensure all code is:
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:
Because if it's not written in Rust, it's not worth using.
⚡ Powered by Rust ⚡
暂无开放 Issues,或尚未同步最近议题。