Setup
To start "frying" your fat code, you'll need an interpreter for the FatScript programming language.
fry, The FatScript Interpreter
fry is a free interpreter and runtime environment for FatScript. Although it's still in its initial development stage, you can install it on your machine using the following instructions.
Installation
fry
is designed for GNU/Linux, but it might also work on other operating systems.
If you're using an Arch-based distribution, you can install via the AUR package:
fatscript-fry
For other distributions, try the smart setup
script. This script will automatically resolve dependencies on supported platforms and handle the installation for you:
curl -sSL https://gitlab.com/fatscript/fry/raw/main/extras/smart_setup.sh -o smart_setup.sh;
bash smart_setup.sh || sudo bash smart_setup.sh
To install fry
manually:
- Clone the repository:
git clone https://gitlab.com/fatscript/fry.git
- Then, run the installation script:
cd fry
./install.sh
the manual installation may copy the
fry
binary to the $HOME/.local/bin folder, alternatively usesudo
to install it to /usr/local/bin/
- Verify that
fry
is installed by running:
fry --version
Dependencies
If the installation fails, you may be missing some dependencies. fry
requires git
, gcc
, curses
, readline
and libcurl
to build. To install these dependencies on Debian/Ubuntu, run:
apt update
apt install git gcc libncurses5-dev libreadline-dev libcurl4-openssl-dev
OS Support
fry
is primarily designed for GNU/Linux, but it's also accessible on other operating systems:
Android
If you're on Android, you can install fry
via Termux. Just install the required dependencies like so:
pkg install git clang
Then you can follow the standard installation instructions for fry
.
ChromeOS
If you're using ChromeOS, you can enable Linux support by following the instructions here.
MacOS
If you're using MacOS, you'll need to have Command Line Tools installed.
iOS
If you're using iOS, you may use fry
via iSH. First, install the required dependencies:
apk add bash gcc libc-dev ncurses-dev readline-dev curl-dev
Then, according to this thread, configure git
to work properly, like so:
wget https://dl-cdn.alpinelinux.org/alpine/v3.11/main/x86/git-2.24.4-r0.apk
apk add ./git-2.24.4-r0.apk
git config --global pack.threads "1"
although
iSH
kinda works, it's slow andcurses
is plain broken
Windows
If you're using Windows, you can use fry
via Windows Subsystem for Linux (WSL).
Docker image
fry
is also available as a docker image:
docker run --rm -it fatscript/fry
To execute a FatScript file with docker, use the following command:
docker run --rm -it -v ~/project:/app fatscript/fry prog.fat
replace ~/project with the path to your FatScript file
Troubleshooting
If you encounter any issues or bugs while using fry
, please open an issue.