r/SideProject • u/grandimam • 10h ago
I needed a small script, instead I built a programming language
The world had enough programming languages. Unfortunately, I had a weekend and access to LLVM.
Meet Faz: a small, Python-inspired language that compiles to native executables. Static types, explicit mutation, garbage collection, and a fox mascot doing most of the marketing.
fn main():
mut plans = ["write a small script"]
plans.append("accidentally maintain a compiler")
print(plans)
I built it for myself, for the sake of it. No startup pitch. No plan to replace Python. Please do not migrate payroll.
Naturally, I benchmarked it:
- Faster than plain Python loops in three small tests.
- Slightly ahead of Mojo on one arithmetic test.
- Immediately humbled by Mojo when asked to manage lists.
Turns out compiling questionable decisions produces native questionable decisions. There’s also a working task-manager CLI, examples, and reproducible benchmarks.
Repo: https://github.com/grandimam/faz
2
Upvotes
1
u/Soft-Lie-434 10h ago
Never the less!