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.
Expressive Syntax. Zero Overhead.
Write clear, high-level code that lowers directly to optimized native machine instructions.
1import std.io;23fn 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}89fn main() -> void {10 let language = "SP";11 let speed = 99.8;12 println("Welcome to ${language}! Execution efficiency: ${speed}%");13 greet(language, 2);14}
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.
Speed on Par with C & Rust
Evaluated across 5 standard computing workloads on identical hardware (AMD Ryzen 9 / 32GB RAM).
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
FormatterStandardized, deterministic code formatting with strict idempotency (fmt(fmt(x)) == fmt(x)). Eliminates bike-shedding on team codebases.
- Custom indent width
- Preserves docstrings
- Blazing fast AST formatter
spc test
Test RunnerFirst-class test blocks embedded right in your source files or tests/ directory. Zero boilerplate setup, test filtering, and colored reporting.
- test "name" { ... } blocks
- Assert & panic interception
- Detailed failure diffs
spc doc
DocumentationGenerates clean Markdown and modern responsive HTML documentation directly from your /// doc comments and function signatures.
- Live search index
- Dark mode web UI
- Symbol reference hierarchy
spls & spd
LSP & DAPOfficial JSON-RPC 2.0 Language Server and Debug Adapter. Autocomplete, hover tooltips, go-to-definition, and breakpoints in VS Code.
- Real-time diagnostics
- Variable inspection
- Step over/into/out debugger
The Complete SP Ecosystem
A cohesive suite of portals and tools built to empower developer productivity.
Official Documentation
Comprehensive language specification, getting-started guides, 46-feature syntax tour, and standard library API references.
SP Package Registry
Discover, publish, and inspect packages with verified SHA-256 checksums and real-time integration with the spm CLI.
VS Code Extension
Official editor support featuring TextMate syntax highlighting, code snippets, LSP autocompletion, and DAP stepping debugger.
Standard Library (8 Modules)
Rich native modules for I/O, strings, mathematics, collections (List, Map, Set), filesystem, clocks, and child processes.