百科.dev
全部条目在线工具AI 编程趋势榜开源项目技术资讯提交条目
登录
< 返回工具列表
Y

yes-rs

> 编程语言
开源

一个闪亮快活的,安全的记忆重写经典Unix'yes'命令. 写入 Rust!

329 stars0 点赞0 次浏览
访问官网GitHub

工具介绍

一个闪亮快活的,安全的记忆重写经典Unix'yes'命令. 写入 Rust!

yes-rs

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

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

bash
cargo install yes-rs

Or build from source:

bash
git clone https://github.com/jedisct1/yes-rs
cd yes-rs
cargo build --release

Usage

Just like the original yes, but better:

bash
# 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 ⚡

Issues· 0 开放

查看全部 Issues在 GitHub 打开

暂无开放 Issues,或尚未同步最近议题。

> 标签

Rustrustwritten-in-rustwritteninrustyes

暂无评论,来聊聊你的看法吧

> 工具信息

发布日期2026年8月1日
最后更新2026年9月18日
分类编程语言
定价开源

> 相关工具

T
TypeScript
JavaScript 的超集,为前端与全栈提供静态类型
P
Python
通用编程语言,广泛用于 Web、数据与 AI
G
Go
Google 推出的简洁高效系统语言