From zero to running code in under 5 minutes. No complicated setup, no hidden dependencies.
Build system for compiling Quartz from source
Clang 7+ or GCC 8+ recommended
For cloning the repository
Windows support coming soon
sudo apt update
sudo apt install cmake g++ git
sudo dnf install cmake gcc-c++ git
sudo pacman -S cmake gcc git
git clone --branch development https://github.com/franieri/quartz.git
cd quartz
bash build.sh
./build/quartz --version
# Quartz v0.5.0
xcode-select --install
# Install Homebrew if you haven't
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
# Install CMake
brew install cmake
git clone --branch development https://github.com/franieri/quartz.git
cd quartz
bash build.sh
./build/quartz --version
# Quartz v0.5.0
git clone --branch development https://github.com/franieri/quartz.git
cd quartz
# Using the build script (recommended)
bash build.sh
# Or manually with CMake
mkdir -p build && cd build
cmake ..
make -j$(nproc)
bash build.sh --cleanbash build.sh --verbosecmake -DCMAKE_BUILD_TYPE=Debug ..
./build/quartz --version
# Quartz v0.5.0
import system.io as io;
io.out.println("Hello, Quartz!");
let name = "World";
io.out.println("Welcome to Quartz,", name);
// Let's do some math!
let numbers = [1, 2, 3, 4, 5];
let sum = 0;
for (i in numbers) {
sum = sum + numbers[i];
}
io.out.println("Sum:", sum);
$ ./build/quartz hello.qz
Hello, Quartz!
Welcome to Quartz, World
Sum: 15
Run code directly for rapid development and prototyping. No compilation step needed.
./quartz script.qz
Compile to bytecode for optimized execution. Best for production use.
# Compile only
./quartz --compile script.qz
# Compile and run
./quartz --compile-run script.qz
# Run compiled bytecode
./quartz script.qzb
Join our community and get support from other Quartz developers.