This is an implementation of the yes command.
yes [word]
yes will output word, or, by default, y
, forever.
An implementation of the `yes` command in Rust
License: MIT License
Running yes with more than one argument ignores other argument and does not print them.
Example:
./yes a b
a
a
a
..
Expected:
./yes a b
a b
a b
a b
..
This is different from both GNU binutils, uutils and bsdutils which print all arguments.
So I decided to package yes
for Fedora and it definitely conflicts with coreutils' yes
binary. Do you think I should use rust-yes
binary name or yes-rs
or ...? What about package name?
fill_up_buffer
keeps doubling the amount it fills with each iteration, but this means that it doesn't fill up as much as it could.
For example, let's say the buffer size is 16 bytes, and the output slice is 3 bytes. fill_up_buffer
will end up producing a 12-byte result when it could have produced a 15-byte result.
Incidentally, is doubling the buffer length over and over actually faster than just reading the output slice into the buffer repeatedly?
➜ yes git:(master) timeout 10s ./target/release/yes | pv -r >/dev/null
[9.30GiB/s]
➜ yes git:(master) timeout 10s yes | pv -r >/dev/null
[9.87GiB/s]
Does this compare at all to GNU's yes?
https://www.reddit.com/r/unix/comments/6gxduc/how_is_gnu_yes_so_fast/
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.