Pakistan's first high-performance programming language

Write simply.
Compile to Go.

ScarScript is a statically typed programming language with Express-like syntax that transpiles to Go — readable code in, native binaries out. No runtime, no virtual machine, no compromise on speed.

Built by Scarfaze
hello.scarSCAR
func greet(name: str) {
    print("Hello, {name}!")
}

greet("world")
OUTPUTHello, world!
01 Static types02 Go toolchain03 Native binaries04 Zero runtime
BENCHMARKS

Native speed.
Zero overhead.

ScarScript transpiles to Go and compiles to native binaries — raw metal performance with a cleaner syntax.

10 million loop iterations

Simple accumulation: for i in 1..10000000 { sum = sum + i }

LanguageTimevs ScarScriptRuntime
ScarScript0.165 s1.00× (baseline)Native binary
Go Go (reference)~0.155 s1.06× fasterNative binary
JS Node.js (v20)~0.95 s5.8× slowerV8 JIT
Py Python (3.11)~3.8 s23× slowerCPython interpreter
Key takeaway: ScarScript adds < 7% overhead vs hand-written Go, while being 6–23× faster than Node.js and Python. No warmup, no JIT — instant native speed from the first run.

Run it yourself

bench.scar
mut sum = 0
for i in 1..10000000 {
    sum = sum + i
}
print("Sum: {sum}")

Terminal

build & run
$ scar build bench.scar -o bench
$ time ./bench
# Output
Sum: 50000005000000
WHY SCARSCRIPT

Familiar to write.
Powerful when it runs.

ScarScript keeps the language approachable while relying on a real compiler and Go's native toolchain.

Compiled & fast

Transpiles to Go, then compiles to a native binary. No interpreter, no VM — just raw performance.

Static type checking

Catch bugs at compile time with full type inference, strict rules, and precise file:line:col errors.

Express-like syntax

func, val / mut / const, for..in, string interpolation — feels familiar from day one.

Multiple returns

Go-style (int, bool) tuples with destructuring: val a, b = divide(10, 2).

Zero dependencies

Built-in modules: math, file, sys, time. No package manager needed.

Anonymous functions

Full closures with variable capture. Functional patterns work out of the box.

FROM SOURCE TO BINARY

One simple path
from code to native.

Write a .scar file. The compiler checks it, generates Go, and hands off to the Go toolchain.

Get set up in the docs
Writehello.scar
Check & compilescar build hello.scar
Run./hello
THE DOCUMENTATION

Everything you need
to get moving.

Start with installation, learn the language, then keep the references close as you build.

BUILT IN THE OPEN

Made better
by the community.

ScarScript is open source. Meet the people who have contributed to its code.

Meet all contributors
READY WHEN YOU ARE

Your next program
starts here.

Pick up the guide, get the compiler, and start writing ScarScript.