The Modern, High-Performance Systems & Application Language

SP merges the bare-metal execution speed of LLVM native compilation with modern developer ergonomics: safe null navigation, expressive pattern matching, zero-cost generics, and a unified production toolchain.

$winget install SPLang.SP
Installs official SP compiler and packages to system PATH.SHA-256 Verified
LLVM Native
Zero VM overhead (-O3)
218 Tests (100%)
Continuous matrix CI
All-in-One CLI
spc, spm, spls, spd
Crypto Safe
SHA-256 lockfiles
Interactive Code Tour

Expressive Syntax. Zero Overhead.

Write clear, high-level code that lowers directly to optimized native machine instructions.

basics.sp
1import std.io;
2
3fn greet(string name, int times = 1) -> void {
4 for (int i = 0; i < times; i = i + 1) {
5 println("Hello, ${name}! [Visit #${i + 1}]");
6 }
7}
8
9fn main() -> void {
10 let language = "SP";
11 let speed = 99.8;
12 println("Welcome to ${language}! Execution efficiency: ${speed}%");
13 greet(language, 2);
14}
Type inference, clean string interpolation, and concise functions.Compiled with spc -O3
Program Output
exit code 0
Welcome to SP! Execution efficiency: 99.8% Hello, SP! [Visit #1] Hello, SP! [Visit #2]
spc run basics.spRuntime: ~0.02s
Architecture & Capabilities

Engineered for Systems & Applications

Every feature in SP is deliberately crafted to provide modern developer joy without compromising on raw hardware execution speed.

Native LLVM 18+ Backend

Compiles directly to optimized machine code (.exe, ELF, Mach-O) via LLVM intermediate representation with -O0 through -O3 optimization passes.

Expressive Type & Null Safety

Static type checking with bidirectional inference, nullable types (T?), safe navigation (?.), and null-coalescing (??) catching errors before code generation.

Zero-Cost Generics

Specializes generic classes (Box<T>, List<T>, Map<K,V>) and functions via monomorphization, eliminating runtime boxing and dynamic casting overhead.

Clean Object-Oriented Architecture

Full support for classes, constructors, single inheritance, vtable virtual dispatch, interface contracts, struct value types, and type-safe enums.

Built-In Package Manager (spm)

Complete dependency resolution, cycle detection, semantic versioning, and deterministic sp.lock generation backed by cryptographic SHA-256 validation.

Unified Developer Tooling

Shipped with an idempotent formatter (spc fmt), native test runner (spc test), documentation generator (spc doc), and official VS Code LSP/DAP support.

Verifiable Real-World Benchmarks

Speed on Par with C & Rust

Evaluated across 5 standard computing workloads on identical hardware (AMD Ryzen 9 / 32GB RAM).

Benchmark: Recursive Fibonacci (n=40) — Evaluates function call overhead, stack frame management, and recursion speed without caching.
SP(spc -O3)Target
62.5x312 ms
C(gcc -O3)
64.1x304 ms
C++(clang++ -O3)
63.3x308 ms
Rust(rustc --release)
61.3x318 ms
Java(OpenJDK 21 (HotSpot))
38.1x512 ms
Node.js(Node.js v20 (V8))
19.9x980 ms
Python(CPython 3.12)
1.0x19500 ms

Source code and replication instructions available in repository at docs/BENCHMARKS.md.

Developer Experience

Complete Tooling Out-of-the-Box

No need to configure 10 disparate third-party tools. Everything you need to format, test, document, and debug SP code comes installed in the standard binary distribution.

spc fmt

Formatter

Standardized, deterministic code formatting with strict idempotency (fmt(fmt(x)) == fmt(x)). Eliminates bike-shedding on team codebases.

$spc fmt src/ --write
  • Custom indent width
  • Preserves docstrings
  • Blazing fast AST formatter
Included in SP v1.0.0Read Docs →

spc test

Test Runner

First-class test blocks embedded right in your source files or tests/ directory. Zero boilerplate setup, test filtering, and colored reporting.

$spc test tests/ --filter math
  • test "name" { ... } blocks
  • Assert & panic interception
  • Detailed failure diffs
Included in SP v1.0.0Read Docs →

spc doc

Documentation

Generates clean Markdown and modern responsive HTML documentation directly from your /// doc comments and function signatures.

$spc doc src/ --out docs/
  • Live search index
  • Dark mode web UI
  • Symbol reference hierarchy
Included in SP v1.0.0Read Docs →

spls & spd

LSP & DAP

Official JSON-RPC 2.0 Language Server and Debug Adapter. Autocomplete, hover tooltips, go-to-definition, and breakpoints in VS Code.

$code --install-extension sp-lang
  • Real-time diagnostics
  • Variable inspection
  • Step over/into/out debugger
Included in SP v1.0.0Read Docs →
Production Milestone

Ready for Your Next Production Systems Project

SP 1.0.0 is officially released and production-ready. Start building blazing-fast CLI utilities, backend microservices, or computational kernels with confidence.