Skip to content

Repository files navigation


AHA! Lang

AHA! Lang

Advanced Hybrid Architecture

Easy to read. Powerful to wield.

A modern programming language with an LLVM backend — designed to be understood at a glance, yet strong enough to build real software.

Docs License: MIT Rust


👋 Welcome

We're building AHA! — a language that feels obvious when you read it and effortless when you run it. No magic, no ceremony. Just clear code that compiles to LLVM IR and runs at native speed through a built-in JIT.

✨ What makes AHA! different

  • ⚡ LLVM-Powered — Source compiles to LLVM IR and executes through a built-in JIT. Native-level performance from day one.
  • 🧠 Real Type Discipline — First-class Int, Bool, and String with a genuine compile-time type-checking pass. Type errors are caught before you run.
  • 🔢 Boolean Algebra That Composes — Every boolean-producing operator (==, !=, <, >, <=, >=, &&, ||) returns Int 0/1, so logic flows straight into arithmetic: is_even(n) * 100 just works.
  • 📦 Strings Done Right — Strings are a real {pointer, length} struct: safe concatenation, ==/!= comparison, and an O(1) len().
  • 🔁 Modern Control Flowif/else, while, for with break/continue, functions with parameters, return, forward references, and mutual recursion.

🧩 A taste of AHA!

fn is_even(n) {
    n % 2 == 0
}

let count = 0;
for i 0..10 {
    if is_even(i) {
        count = count + 1;
    }
}
count  // 5

🗂️ Projects

Repo What it is
aha-lang The compiler — Rust + LLVM (via inkwell), lexer → Pratt parser → type system → codegen → JIT
aha-lang-docs Documentation site (Next.js + Fumadocs) — guides, tutorials, language tour

📚 Learn more

🤝 Contributing

We welcome contributions of all kinds — bug reports, feature ideas, and code. Check the individual repositories for their CONTRIBUTING.md guidelines.


Join us in writing the next chapter of computing.

Licensed under MIT.

About

No description, website, or topics provided.

Resources

Code of conduct

Contributing

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors