Skip to content

gutenfries/fibber

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Fibber (COMPLETE)


Fibber is a command line program that calculates and prints the fibonacci Sequence in a customizable fasion.


Summary of development

The name "fibber" was chosen for two reasons:

  1. using _ or - can often lead to unneccary confusion & issues in executable names. (e.g., "fibonacci_gen")
  2. i believe having a product name is important, even if it's cheesy :)

The design of the codebase is dynamic, implimenting both Object-Oriented-Programming principals, and Functionally-Oriented-Programming principals, each where is most efficient in a modern programming setting.

Running

From Docker

Fibber can be run from a contained docker image, with no external dependencies.

To build and run the docker image, run the following in your shell of choice: (assuming you have Docker installed on your system)

docker build -t fibber . # build the image
docker run -it --rm --name fibber-instance fibber # run an anstance of the image

any desired args/flags can simply be appended to the run command., i.e.:

docker run -it --rm --name fibber-instance fibber {args_go_here}

NOTE: the first time you build, the build may take ~2 minutes, this is normal and for optimization purposes

From Rust Compiler

If you have Rust installed on your system, you can simply compile and run the application with ne external dependencies.

run in root of repo:

cargo run -- <args/flags here>

the -- is neccesary if running from the compiler cli, else args/flags will be passed to the compiler.

From raw executable

It is unadviasable in development, however you may run fibber directly from the executable provided by the compiler. the executable is avilable at {repo_root}/target/{debug/release}/fibber{.exe}

To compile, run:

cargo build

In this case, args can simply be appended to the path of the executable, as is standard.

Limitations

--count must be <= 186, as anything greater will cause the fibonacci numbers generated to exceed the allocation size of of a unsigned 128-bit integer (unsigned long long)


Screenshots

no args

no args

count 6, numbering, last-only

count 6, numbering, last-only

count 13

count 13

help message

help message-

Big numbers

Alt text

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published