A simple, fast, and systems-level programming language — for modern and older machines.
Alpha Status – This project is in active development. It's full of bugs, not production-ready, and more educational than industrial. Use it for learning and testing new features.

Quick Install

One-liner for Linux / macOS:

curl -sL https://raw.githubusercontent.com/pouya1dev/lpa/main/install.sh | bash

Windows: download lpa-setup.exe

GPL-3.0   D 98.9% Nim

Hello World

generate main() {
    write("Hello World!\n");
    return 0;
}

"Hello World!"

Why P/?

We all love C, but it's hard to use in large projects and pointers make many people suffer. The goal of P/ is the same as C — systems-level control — but with a simple, human-friendly syntax, inspired by Turbo C, and designed for a modern workflow.

Fast
Compiles to native machine code via NASM + LD
Simple
Clean syntax, easy to read and learn
Self-contained
Single binary, no external dependencies

More Examples

generate main() {
    string name = "World";
    write("Hello " + name + "\n");
    return 0;
}
generate main() {
    int x = 10;
    write("x = " + x + "\n");
    if (x > 5) {
        write("Bigger\n");
    }
    return 0;
}

More examples in src/examples/  ·  Full Documentation →

Get Started

Linux Windows    or build from source