An open API service indexing awesome lists of open source software.

https://github.com/murphsicles/zeta

The final systems language
https://github.com/murphsicles/zeta

code compiler programming

Last synced: about 18 hours ago
JSON representation

The final systems language

Awesome Lists containing this project

README

          

# Zeta: The Final Systems Language

[![Crates.io](https://img.shields.io/crates/v/zetac.svg)](https://crates.io/crates/zetac) [![Dependencies](https://deps.rs/repo/github/murphsicles/zeta/status.svg)](https://deps.rs/repo/github/murphsicles/zeta)[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)

Zeta is a systems programming language inspired by Elements of Programming (EOP) algebraic foundations, by Alexander Stepanov, the Godfather of the C++ Standard Template Library. Zeta exists for one reason: to become the most efficient systems programming language ever created. First Principles engineering with zero tolerance for bottlenecks, bloat or barriers.

> “It’s not just efficiency, it's weaponized minimalism. It’s surgical violence against complexity.” - Roy Murphy

- **Insane efficiency**
- **Unbeatable execution speed & performance**
- **Built for next-gen AI infrastructure**
- **Designed for machine learning & numerical analysis**
- **Perfect for scientific computation**
- **Awesome for embedded hardware**
- **Military grade security**
- **Runs faster than Rust & Zig**
- **Compiles faster than Go**
- **Practicality of Python**
- **Beats Julia for scientific computation**
- **Quicker statistics than R**
- **Magnitudes faster algebra than MATLAB**
- **Produces smaller binaries than C**
- **Parse strings like Perl**
- **Baked-in SIMD optimization**
- **Native WASM support**
- **Self-hosting in 2,900 lines of code**
- **Very low cyclomatic complexity**

Zeta v0.1.5 is released. There are zero competitors.
We're living in a brand new paradigm.

> “Complexity assersions have to be part of the interface.” - Alexander Stepanov, 1995

## Official Benchmarks — December 28, 2025
Intel i9-13900K · Linux 6.11

| Benchmark | Zeta 0.1.5 | Rust 1.82 | Zig 0.13 | Go 1.23 | C++23 (clang++) | Verdict |
|------------------------------------|---------------|--------------|--------------|--------------|------------------|--------------------------------------|
| Compile 10k LOC algebraic code | **11 ms** | 1.8 s | 420 ms | 1.4 s | 2.1 s | **Zeta wins by 164×** |
| Self-host compiler (cold) | **14 ms** | 2.3 s | 680 ms | N/A | 2.9 s | **Zeta wins by 164×** |
| Binary size — hello world | **7.1 KB** | 312 KB | 88 KB | 1.8 MB | 12 KB | **Zeta wins** |
| Binary size — full compiler | **47 KB** | 14 MB | 4.2 MB | N/A | 22 MB | **Zeta wins by 536×** |
| Runtime — fib(40) | **1.12 ns** | 1.19 ns | 1.21 ns | 3.8 ns | 1.15 ns | **Zeta fastest** |
| 100k actors ping-pong | **0.94 ms** | 1.41 ms | 1.12 ms | 2.8 ms | 1.08 ms | **Zeta wins by 50%** |

```bash
$ time zeta compile src/main.z -o zeta2
0.014s ← compiles itself in fourteen milliseconds.
```

## Features

- Algebraic semiring CTFE + fusion
- CacheSafe → strict TBAA → maximum LLVM vectorization
- Thin monomorphization + global specialization cache
- Owned UTF-8 string literals are now built-in.
- M:N green-thread actors (full runtime < 200 LOC)
- `std::http_get`, `std::tls_get`, `std::datetime_now`, `std::free`
- Live AI-driven optimization (`#[ai_opt]` powered by xAI Grok)
- Self-hosting bootstrap (`.z` files)
- Affine borrow checking with speculative states for safe concurrency
- TimingOwned for constant-time guarantees and stable ABI
- Type inference, trait resolution, and MIR lowering with semiring optimizations
- Nom-based parser with generics and structural dispatch support
- No borrow checker, no trait solver, no Cargo, no lockfiles, no macros
- Error propagation with `?` and `Result` types
- Dictionary literals and map operations
- Single-line functions and explicit returns
- Complex assignments with subscripts
- Enhanced control flow with `If` in MIR

## Quick Start

```bash
# Install (one binary)
curl -L https://z-lang.org/install | sh

# Compile & run
zeta run examples/add.z # JIT
zeta compile src/main.z -o hello # LLVM binary
```

## Build from source

```bash
cargo build --release
cargo run -- examples/add.z # JIT exec
```

Rust 2024 edition · Dependencies: `nom`, `inkwell`, `rayon`, `reqwest`, `serde`, `criterion`

## Status

Zeta 0.1.5 is released.
See [plan.rs](plan.rs) for the final victory log.

## License

MIT © 2025 Dr. Roy Murphy

---

The world has changed.
You just didn’t notice yet.