https://github.com/rhhen122/fib
'fib' is a Fibonacci calculator written across multiple languages
https://github.com/rhhen122/fib
brainfuck c cpp docker golang javascript lua php python ruby
Last synced: about 1 year ago
JSON representation
'fib' is a Fibonacci calculator written across multiple languages
- Host: GitHub
- URL: https://github.com/rhhen122/fib
- Owner: rhhen122
- License: other
- Created: 2025-04-30T22:27:20.000Z (about 1 year ago)
- Default Branch: master
- Last Pushed: 2025-05-07T23:27:30.000Z (about 1 year ago)
- Last Synced: 2025-05-08T00:18:21.073Z (about 1 year ago)
- Topics: brainfuck, c, cpp, docker, golang, javascript, lua, php, python, ruby
- Language: Rust
- Homepage:
- Size: 819 KB
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: .github/README.md
Awesome Lists containing this project
README

# _β°fib_ β‘οΈ
## A Fibonacci calculator written in multiple languages to see what out-preforms what.

Copyright
|
License
|
Codeberg
|
Github
|
Fibonacci Sequence Wikipedia
|
Leonardo Fibonacci Wikipedia
|
Who is rhhen122?
|
Web Docs
Special thanks to:
π³ Docker
|
π¨βπ» Visual Studio Code
|
π± Github
|
βοΈ Codeberg
|
π« Debian
|
π² Git
For making this project possible!
######
If you are not very technologically sassy then don't worry! We have done all the hard work for you using `Docker`
First install the codebase, then run one of the commands inside of the `fib` dir and boom!
Within seconds your runnning the code on your machine without ever installing any dependencies.
When you run the program you are starting up a tiny linux machine install the dependencies to that and then running it on the machine.
#
### Tutorial.rs
Go into the `Tutorial/tutorial.rs` file and change any of the functions to `0` to run them.
```
docker build -t fib-dock-tut ./Tutorial
docker run fib-dock-tut
```
### How to use
#### Ruby
```
docker pull rokyh/fib-dock
docker run rokyh/fib-dock
```
Or compile the image yourself. Run the following in your terminal:
```
docker build -t fib-dock-rb ./RUBY-Docker
docker run fib-dock-rb
```
This will make a `docker` container and run the script `fib-op.rb`
#### C
Compile from source:
```
docker build -t fib-dock-c ./C-Docker
docker run fib-dock-c
```
#### JS
```
docker build -t fib-dock-js ./JS-Docker
docker run fib-dock-js
```
#### PHP
```
docker build -t fib-dock-php ./PHP-Docker
docker run fib-dock-php
```
#### Rust
```
docker build -t fib-dock-rust ./RUST-Docker
docker run fib-dock-rust
```
#### Java
```
docker build -t fib-dock-java ./JAVA-Docker
docker run fib-dock-java
```
#### Go
```
docker build -t fib-dock-go ./GO-Docker
docker run fib-dock-go
```
#### C++
```
docker build -t fib-dock-cpp ./CPP-Docker
docker run fib-dock-cpp
```
#### Python
```
docker build -t fib-dock-py ./BF-Docker
docker run fib-dock-py
```
### Credits
Max Hendra