⚡ Systems Programming Reimagined

Clean Python Syntax.
Bare-Metal Machine Control.

Spike is a purely object-oriented systems programming language engineered as a pragmatic alternative to Rust. Featuring deterministic thread-safe ARC, stack-allocated value structs, and transparent C ABI compatibility.

TRANSIENT CURRENT SPIKE — 100 GS/s
Spike Lang v.01 -- Released Aug 23, 2026
drivers/vga.spike Spike Pure OOP
# Pure data struct (0 bytes vtable overhead)
struct CursorPos {
    row: int
    col: int = 0
}

# Behavioral class with hardware access
class VGADriver {
    base_addr: usize

    def VGADriver(addr: usize = 0xB8000) {
        self.base_addr = addr
    }

    def write_char(pos: CursorPos, ch: u8, color: u8): void {
        offset: usize = (pos.row * 80 + pos.col) * 2
        ptr_write8(self.base_addr + offset, ch)
        ptr_write8(self.base_addr + offset + 1, color)
    }
}
main.spike Entry Point & Syscalls
class Syscall {
    static def write(fd: int, buf: usize, count: usize): int {
        res: int = 0
        asm {
            "syscall"
            : "=a"(res)
            : "a"(1), "D"(fd), "S"(buf), "d"(count)
            : "rcx", "r11", "memory"
        }
        return res
    }
}

class App {
    static def main(): int {
        msg: String = "Spike Pure OOP Running\n"
        Syscall.write(1, msg.data as usize, msg.length)
        return 0
    }
}

Designed for Low-Level Velocity

Everything you need for kernels, drivers, and high-frequency user-space applications.

⚡

Pure Object-Oriented

No loose standalone functions. All behavioral logic is strictly encapsulated inside classes and pure-data value structs.

🛡️

Deterministic Thread-Safe ARC

Atomic reference counting with explicit disown and own ownership primitives for interrupt handlers and DMA ring buffers.

🔗

Zero-Mangled C ABI

Top-level methods and functions emit clean, unmangled C symbols, making bidirectional C and Assembly interop completely seamless.

📦

Pure Data Structs

Structs are lightweight, plain-old-data (POD) value types allocated directly on the stack with zero vtable overhead.

💻

Direct Machine Control

Native raw pointers (*T), address-of (&), volatile MMIO intrinsics, and inline GNU assembly blocks.

🚀

Freestanding Bootable Mode

Compile directly to raw flat binaries (.bin) or bootable ELF kernels without any standard library dependencies.

Open Source Toolchain

Modular Python-based tools designed to fit into your existing build pipelines.

🔧 compiler.py

Unified recursive descent lexer, parser, and C99/C11 code generator with pure OOP enforcement and lambda capture analysis.

View Source on GitHub →

🚀 spike_driver.py

One-step driver handling project resolution, C compilation, linker scripts, and flat .bin / .elf extraction.

View Source on GitHub →

🔄 c2spike.py

Automated legacy C-to-Spike transpiler for converting C structs, drivers, and file systems into pure-OOP Spike code.

View Source on GitHub →

📚 spike_rt

Standalone thread-safe runtime header (spike_rt.h) and engine (spike_rt.c) for freestanding and host targets.

View Runtime Header Source on GitHub → View Runtime Implementation Source on GitHub →