Quick Start: Install Thagore
Quick Start: Install Thagore
Download a pre-built release from GitHub and write your first program in under 5 minutes. No build step, no bootstrap — CI/CD already did that for you.
Step 1: Install LLVM 21
Thagore needs LLVM 21.1.8 on your PATH. Run the official install script for your platform:
curl -fsSL https://raw.githubusercontent.com/thagore-foundation/thagore/refs/heads/main/scripts/install/ubuntu.sh | bash -s -- --yesInstalls LLVM 21 via the official apt.llvm.org repository.
curl -fsSL https://raw.githubusercontent.com/thagore-foundation/thagore/refs/heads/main/scripts/install/linux.sh | bash -s -- --yescurl -fsSL https://raw.githubusercontent.com/thagore-foundation/thagore/refs/heads/main/scripts/install/macos.sh | bash -s -- --yesInstalls llvm@21 via Homebrew. Requires Homebrew.
irm https://raw.githubusercontent.com/thagore-foundation/thagore/refs/heads/main/scripts/install/windows.ps1 | iexInstalls LLVM 21.1.8 via winget or choco.
curl -fsSL https://raw.githubusercontent.com/thagore-foundation/thagore/refs/heads/main/scripts/install/portable.sh | bash -s -- --yesBuilds LLVM from source using cmake + ninja. Takes 30–60 min. Useful for Termux, FreeBSD, or any non-standard environment.
Verify:
clang --version# clang version 21.1.8 ...Step 2: Download the Compiler
Download the latest pre-built release (v0.3.33-foundation) for your platform:
curl -fsSL https://github.com/thagore-foundation/thagore/releases/download/v0.3.33-foundation/thagore-linux-x86_64.tar.gz | tar xzchmod +x thagorecurl -fsSL https://github.com/thagore-foundation/thagore/releases/download/v0.3.33-foundation/thagore-linux-arm64.tar.gz | tar xzchmod +x thagorecurl -fsSL https://github.com/thagore-foundation/thagore/releases/download/v0.3.33-foundation/thagore-macos-arm64.tar.gz | tar xzchmod +x thagoreInvoke-WebRequest -Uri "https://github.com/thagore-foundation/thagore/releases/download/v0.3.33-foundation/thagore-windows-x86_64.zip" -OutFile thagore.zipExpand-Archive thagore.zip -DestinationPath .Verify:
./thagore --versionStep 3: Write Your First Program
Create a file hello.tg:
func main() -> i32: print("Hello, Thagore!") return 0Compile and run:
./thagore build hello.tg -o hello./hello.\thagore.exe build hello.tg -o hello.exe.\hello.exeHello, Thagore!🎉 That’s it — you’re up and running!
Step 4: Try More Examples
Download and run examples directly from the repo:
# Fibonaccicurl -fsSL -o fib.tg https://raw.githubusercontent.com/thagore-foundation/thagore/refs/heads/main/examples/fib.tg./thagore build fib.tg -o fib && ./fib# 9227465
# Read user inputcurl -fsSL -o input.tg https://raw.githubusercontent.com/thagore-foundation/thagore/refs/heads/main/examples/console_input_i32.tg./thagore build input.tg -o input_demo && ./input_demo
# Structscurl -fsSL -o method.tg https://raw.githubusercontent.com/thagore-foundation/thagore/refs/heads/main/examples/method.tg./thagore build method.tg -o method && ./methodAll Download URLs
LLVM Install Scripts
| Platform | Script URL |
|---|---|
| Ubuntu / Debian | …/scripts/install/ubuntu.sh |
| Linux (generic) | …/scripts/install/linux.sh |
| macOS | …/scripts/install/macos.sh |
| Windows | …/scripts/install/windows.ps1 |
| Portable (Android/BSD) | …/scripts/install/portable.sh |
Base: https://raw.githubusercontent.com/thagore-foundation/thagore/refs/heads/main/
Compiler Releases (v0.3.35-foundation)
| Platform | Asset |
|---|---|
| Linux x86-64 | thagore-linux-x86_64.tar.gz |
| Linux ARM64 | thagore-linux-arm64.tar.gz |
| macOS ARM64 | thagore-macos-arm64.tar.gz |
| Runtime (Linux x86-64) | thagore-runtime-linux-x86_64.a |
| Runtime (Linux ARM64) | thagore-runtime-linux-arm64.a |
What’s Next?
- 📖 Language Syntax — variables, functions, control flow
- ⌨️ Reading Input —
input(),io.input_prompt() - 📚 Standard Library — fs, io, string, process, path, http
- ⚙️ CLI Reference — all compiler flags
- 💡 Patterns & Idioms — best practices