OctoFlow mascot

GPU-native.
General-purpose.

A programming language where the GPU is the primary execution target. Designed from scratch. Compiled by itself.

2.3 MB binary
Zero dependencies
Any GPU vendor
octoflow repl
247
Stdlib Modules
1,169+
Tests Passing
62+
GPU Kernels
106K
Lines of Code
0
Dependencies

Built different.

Not a wrapper around CUDA. Not a shader language. A complete programming language that happens to run on GPUs.

GPU Virtual Machine

5 memory regions. Autonomous dispatch chains. Single vkQueueSubmit. The GPU runs your program — the CPU just watches. Learn more →

GPU-First Architecture

Data born on the GPU stays in VRAM. No round-trips until you need results on the CPU. Chain operations without memory transfers.

2.3 MB. Zero Deps.

The entire compiler, runtime, GPU dispatch, and standard library in one binary. No SDK, no package manager, no runtime to install.

Any GPU Vendor

NVIDIA, AMD, Intel — any GPU with Vulkan support. No vendor lock-in, no proprietary toolchains, no compatibility headaches.

Sandboxed by Default

No file access, no network, no subprocesses unless explicitly granted with flags. Run untrusted code safely.

Self-Hosted Compiler

The compiler is written in OctoFlow itself. Lexer, parser, preflight, evaluator, and SPIR-V codegen are all .flow files.

AI-Friendly

Language guide designed as LLM context. Feed it to Claude, ChatGPT, or Copilot and it writes OctoFlow code — no training needed.

Compressed by Default

Weights, DB columns, embeddings — stored compressed in GPU memory. Delta encoding, dictionary lookup, Q4_K quantization. Decompression is just another kernel in the chain.

Real demos. Real GPU.

Watch OctoFlow run. Every recording is a real terminal session.

Hello GPU — 1M element add on GPU
Lambdas — filter, map, reduce, sort
GPU Prime Sieve — 82,354 primes below 1,000,000

Clean syntax. Real power.

Five lines to crunch a million elements on the GPU. No boilerplate, no shaders, no compilation step.

// 1 million elements — GPU parallel — one command
let a = gpu_fill(1.0, 1000000)
let b = gpu_fill(2.0, 1000000)
let c = gpu_add(a, b)
let d = gpu_scale(c, 0.5)
let total = gpu_sum(d)
print("Total: {total}")        // 1500000

// Matrix multiply
let result = gpu_matmul(mat_a, mat_b, rows, cols_a, cols_b)
// First-class functions and closures
let double = fn(x) x * 2 end
print(double(21))              // 42

let nums = [1, 2, 3, 4, 5, 6, 7, 8]
let evens = filter(nums, fn(x) x % 2 == 0 end)
let squared = map_each(evens, fn(x) x * x end)
let total = reduce(squared, 0, fn(acc, x) acc + x end)
print("Sum of even squares: {total}")  // 120

let sorted = sort_by(nums, fn(a, b) b - a end)  // descending
use csv
use descriptive

let data = read_csv("sales.csv")
let revenue = csv_column(data, "revenue")

print("Mean:    {mean(revenue)}")
print("Median:  {median(revenue)}")
print("Std Dev: {stddev(revenue)}")
print("P95:     {quantile(revenue, 0.95)}")

let r = correlation(revenue, costs)   // Pearson r
// Stream pipelines — data flows through operations
stream photo = tap("input.jpg")
stream enhanced = photo
    |> brightness(20)
    |> contrast(1.2)
    |> saturate(1.1)
emit(enhanced, "output.png")

// Reusable pipeline functions
fn warm_filter: brightness(15) |> contrast(1.1) |> saturate(1.3)
stream result = tap("photo.jpg") |> warm_filter
emit(result, "warm.png")
use regression
use preprocess
use metrics

// Train/test split with scaling
let split = train_test_split(features, labels, 0.8)
let scaled = standard_scale(split.train_x)

// Linear regression
let model = linear_fit(scaled, split.train_y)
let predictions = linear_predict(model, split.test_x)

// Evaluate
let acc = r_squared(split.test_y, predictions)
print("R-squared: {acc}")

247 stdlib modules.

AI, media, GPU, ML, stats, science, data, and more. All written in OctoFlow itself.

AI & LLM

Transformer inference, GGUF model loading, BPE tokenization, streaming generation, GPU-accelerated layers

GPU Compute

62+ kernels, GPU VM, SPIR-V codegen, dispatch chains, resident buffers, deferred execution

Media Codecs

PNG, JPEG, GIF, BMP, AVI, MP4/H.264, WAV — all native. No ffmpeg. Terminal graphics (Kitty/Sixel)

Machine Learning

Linear & ridge regression, KNN, k-means, neural nets, decision trees, bagging ensembles, metrics

Statistics

Mean, median, stddev, skewness, kurtosis, Pearson/Spearman, t-test, chi-squared, ANOVA, Sharpe, VaR

Scientific Computing

Calculus, physics (RK4, spring-damper), signal processing (FIR, convolution), interpolation, matrices

GUI Toolkit

Native windowing, 15+ widgets (button, textbox, dropdown, tabs), themes, layout engine, event system

Self-Hosted Compiler

Lexer, parser, evaluator, preflight, SPIR-V IR builder, codegen — the compiler written in .flow

Data & Formats

CSV, JSON, GGUF, columnar DB with SQL-like queries, ETL pipelines, validation

Collections

Stack, queue, min/max heap, weighted directed graph with Dijkstra shortest path

Crypto & Web

SHA-256, base64, CSPRNG, HTTP client, JSON, URL encoding, TCP/UDP sockets

DevOps & System

Process execution, filesystem, logging, config templates, env vars, platform detection, timing

What's in v1.0.0

GPU Virtual Machine. Native media codecs. Terminal graphics. Self-hosted SPIR-V backend. 2.3 MB. Zero dependencies.

GPU Virtual Machine

5 memory regions. Autonomous dispatch chains. HOST_VISIBLE polling. Dormant VMs. The GPU is the computer.

Native Media Codecs

PNG, JPEG, GIF, BMP, AVI, MP4/H.264, WAV — all decoded natively. No ffmpeg. Zero external tools.

Terminal Graphics

GPU-computed images in your terminal. Kitty, Sixel, and halfblock protocols. Native GUI windowing.

v1.0.0 — GPU VM + 247 Stdlib Modules

Your AI assistant already knows OctoFlow.

Our language guide is designed as LLM context. Feed it to Claude, ChatGPT, or Copilot as RAG, system prompt, or project context — and it writes, debugs, and explains OctoFlow code. No training required.

Paste into your AI assistant:
"Use this as context for OctoFlow code"
+ language-guide.md

Download OctoFlow

2.3 MB binary. Unzip. Run. That's it. No installer, no SDK, no account.

Requires any GPU with Vulkan driver (NVIDIA, AMD, Intel)

Or install from terminal:

Windows (PowerShell)
irm https://octoflow-lang.github.io/octoflow/install.ps1 | iex
Linux
curl -fsSL https://octoflow-lang.github.io/octoflow/install.sh | sh