Skip to content

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 Flow β€” if/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.

Pinned Loading

  1. aha-lang aha-lang Public

    Rust 4 2

Repositories

Showing 2 of 2 repositories

People

This organization has no public members. You must be a member to see who’s a part of this organization.

Top languages

Loading…

Most used topics

Loading…