Documentation

Welcome to the Quartz programming language documentation. Quartz is a minimalist language designed for developers who value simplicity, transparency, and control.

📚 New to Quartz? Start with the Getting Started Guide to get up and running in minutes.

Documentation Overview

🚀 Getting Started

Install Quartz, set up your environment, and write your first program.

Start Here →

📖 Language Guide

Learn the syntax, types, control flow, functions, and OOP features.

Learn Syntax →

📚 Standard Library

Explore the built-in modules for I/O, math, strings, and more.

Browse Library →

👨‍🍳 Cookbook

Practical examples and snippets for common tasks and patterns.

View Cookbook →

⚙️ Advanced

Dive into bytecode compilation, native extensions, and architecture.

Go Deeper →

❓ FAQ

Frequently asked questions about technical details and deployment.

Get Answers →

Quick Example

Here's a taste of what Quartz code looks like:

import system.io as io;
import system.math as math;
import system.collection as c;

// Define a class
class Calculator {
    string name;

    fn add(a: int, b: int) -> int {
        return a + b;
    }

    fn power(base: double, exp: double) -> double {
        return math.pow(base, exp);
    }
}

// Create and use an instance
let calc = new Calculator();
calc.name = "MyCalc";

io.out.println("Calculator:", calc.name);
io.out.println("5 + 3 =", calc.add(5, 3));
io.out.println("2^8 =", calc.power(2.0, 8.0));

// Work with collections
let numbers = [1, 2, 3, 4, 5];
let doubled = c.map(numbers, (x) => x * 2);
io.out.println("Doubled:", doubled);

Key Features

Philosophy

Quartz follows the principle of minimal magic. Like Arch Linux, we believe in:

Read more about our design philosophy.

Getting Help