Top 1K Features Creators Events Podcasts Books Extensions Interviews Blog Explorer CSV

Faber

< >

Faber is an open source programming language created in 2026 by Ian Zepp.

#1495on PLDB 0Years Old
Download source code:
git clone https://github.com/faberlang/faber
Homepage · Source Code · Twitter · Docs

Faber (Faber Romanus) is a statically typed language designed to be written by language models and read by people. Every operator is a single glyph with one meaning, types come before names, and failure is a typed second channel. The same analysed program can be rendered in several reader languages (English, Latin and others). Programs compile to native code through Cranelift by default, code generators also emit Rust, Go, TypeScript, Swift, Python, C and LLVM IR, and kernels run on CPU threads and on Metal, CUDA and AMD GPUs. Experimental through version 1.x.


Example from the web:
fn greet(string name) → string { return "Salve, §!"(name) } fn divide(int a, int b) → int ⇥ string { if b ≡ 0 then throw "division by zero" return a / b } main { let list<string> names ← ["Ana", "Ben"] for from names let name { print greet(name) } print divide(7, 0) ⊥ -1 }

Language features

Feature Supported Example Token
Zero-based numbering ✓ print xs[0]
File Imports ✓ import from "norma:text"
Conditionals ✓ if ready { print xs[0] }
While Loops ✓ while n ≺ 3 { n ← n + 1 }
Assignment ✓ mut int n ← 0 n ← n + 1
Lists ✓ let list xs ← [1, 2, 3]
Booleans ✓ let bool ready ← true
Exceptions ✓ fn divide(int a, int b) → int ⇥ string { if b ≡ 0 then throw "division by zero" return a / b }
Generics ✓ fn first(list items, T fallback) → T { return items.get(0) coalesce fallback }
Type Inference ✓ let _ answer ← 42
Static Typing ✓ fn add(int a, int b) → int { return a + b }
Functions ✓ fn add(int a, int b) → int { return a + b }
Integers ✓ let int answer ← 42
Line Comments ✓ # A comment #
Comments ✓ # A comment
Strings ✓ "Hello world" "
Print() Debugging ✓ print "Hello world" print
Semantic Indentation X

- Build the next great programming language · Add · Add Prompt · Issues · About · Search · Keywords · Livestreams · Labs · Resources · Acknowledgements · Theme: System

Built with Scroll v180.0.1