.. | ||
src | ||
Cargo.toml | ||
README.md |
Background
Like many, I also watched the 4 Chords music video from the The Axis of Awesome on youtube roughly a decade ago. At the time, it provided a possible explination on why pop songs seemed somewhat unoriginal to me despite most of my peers enjoying pop. After that thought I resumed playing side two of The Wall and queued up Quadrophenia to play next.
Playing around with the provided popgen.py is both neat and addictive. I have decided that the focus of this portolio objective will be to reimpliment this program in rust, for the following reasons:
- Rust is more efficient, and it would be fun to run this on an embedded device which could be resource constrained.
- Rust is cool and it would serve me well to practice and keep up better with it
- Reimplementing the code forces me to essentially understand every line
- Despite being given explicit permission to do so with proper attribution, I prefer not to officially commit the code of another to my repository having a commit matching my name.
Setup
It is required to install the rustup rust toolchain
Run
# Basic
cargo run
# See help
cargo run -- --help
# Example with flags
cargo run -- -b 80 --root C[2]