A programming language forged from scratch — its own lexer, its own compiler, its own virtual machine — and already written in Corros itself.
GitHub repository InstallCorros has a syntax that belongs to no other language — the foundry vocabulary: forge for variables, craft for functions, when/whilst/each for control flow, speak to print, flaw to raise an error. Rust is written in Rust; Corros is written in Rust and already compiles itself — a byte-identical bootstrap chain (bash demo.sh) proves the compiler and VM written in Corros are the real thing.
// This is Corros. Read it out loud.
forge greet = craft(name) {
return "hello, " + name
}
each i in 1..=5 {
when i % 2 == 0 { onward }
speak(greet("corros"), i)
}
corros --compile types your program, emits C, and builds a native binary with cc -O3 — compiled Corros sits at the C ceiling and beats Rust, Go, and Python on the repo's benchmark suite (bash bench/run.sh).
| fib(30) | time |
|---|---|
| Corros --compile | ~0.03s |
| hand-written C | parity (same compiler) |
| Rust (-O) | ~0.04s |
| Go | ~0.06s |
The language ships host services: sockets and an HTTP client, file and process access, and a dynamic FFI (load_lib / lib_call) — enough to write a local LLM server (crucible) entirely in Corros.
curl -fsSL https://raw.githubusercontent.com/CocoCopi/corros/main/install.sh | sh
Or build from source: cargo build --release then put corros on your PATH. Requires nothing but a C compiler for --compile.
Corros — the language that corrodes the competition. 🦀