Readable
Explicit LET, typed variables, honest
END IF / END WHILE / END FUNCTION
blocks. Programs read top to bottom like they were written —
because they were.
A modern, typed BASIC for programs, games, and real systems. Readable like a book, checked like a contract.
Free and open source · sixteen compile targets · the compiler bootstraps itself byte-for-byte.
VERSION 1.0.0.0
FUNCTION Gcd(a AS U64, b AS U64) AS U64
REQUIRE a > 0 AND b > 0
LET t AS U64 = 0
WHILE b > 0
t = b
b = a MOD b
a = t
END WHILE
RETURN a
END FUNCTION
BEGIN
LET n AS U64 = 252
LET d AS U64 = 18
PRINT "gcd(" | n | ", " | d | ") = " | Gcd(n, d)
END
ALB keeps BASIC's first promise — code a human can read — and adds the checks a systems language owes you.
Explicit LET, typed variables, honest
END IF / END WHILE / END FUNCTION
blocks. Programs read top to bottom like they were written —
because they were.
Contracts on routines — REQUIRE/ENSURE —
range-checked subtypes, and a self-hosting compiler whose own
rebuild comes out byte-identical. Determinism you can audit.
Sixteen compile targets: native x86-64 via FASM and NASM, C, TypeScript, WebAssembly for the browser, Ada — and down to 6502 assembly for the machines that started it all.
Three doors, one compiler — take whichever you like.
Every tagged build: albt, the MALBR micro compiler, the stdlib, and the examples kit.
Browse releases ↗Mirrored installers and archives served straight from alb-lang.dev — streamed, checksummed, and attachment-downloaded.
/filesThe main site hosts the full download tree — every platform build, plus the Windows toolchain bundles.
alb-lang.org/downloads ↗> albt.exe gcd.alb -t FASM --build --metrics > gcd.exe gcd(252, 18) = 18
The flagship — the complete ALB dialect to all sixteen backends.
Prolog-style logic (KNOWS/FIND), inline
assembly, SIMD math, reversible and temporal blocks.
Micro ALB Rust — emits #![no_std] Rust for
embedded boards. Static memory, no heap, no OS underneath; the
compiler itself is tiny enough to read.
ALB written in ALB — the self-hosted compiler that compiles itself and produces the same bytes every time. A bootstrap you can verify by diffing.
Prefer zero install? The browser IDE compiles and runs ALB right in the tab.
Documentation, samples, and lessons live on the main site — this page stays focused on the compiler.
The language reference — types, contracts, blocks, stdlib — written like a manual, not a blog.
alb-lang.org/handbook →Runnable programs — graphics, windows, games — compiled with the real toolchain and open to read.
alb-lang.org/examples →Interactive lessons checked in the browser, from the first
PRINT to real projects.
The real-time live code editor — free to use, fully sandboxed, runs right in the browser.
alb-lang.org/alb-ide →