The story
Rail started as a Rust project in January 2026. Three months later, it has four backends and trains its own AI.
Programming languages. Autonomous systems. AI that writes code verified by the compiler it runs on. I like making things that work with minimal resources.
See what I buildAbout meBuilt from scratch in 3 months. It compiles itself — the output is byte-identical. Runs on ARM, x86, Linux, and in your browser via WebAssembly. Try it live below.
The compiler verifies the AI's output. If it compiles, the code is correct. 7,600+ verified programs and counting. The model gets better at writing the language it's tested by.
Real-time neural control running at microsecond speed. The language IS the inference engine. Competition entry in progress.
Three machines, three architectures. Mac Mini compiles and serves. RTX 3070 trains models. Pi Zero runs at the edge. All coordinated by software written in the language.
v2.0.0 // 2026-04-03
4,200 lines of Rail compile to ARM64, x86_64, Linux, and WASM. Native IEEE 754 floats. Conservative GC in assembly. Try/catch with setjmp. Zero C dependencies.
View on GitHubRead the story
I like building things that work with minimal resources. Most of my time goes into Rail and the infrastructure around it. Before that I spent nine years running a food production business, which taught me that systems need to be reliable before they can be clever.
Rail started as a Rust project in January 2026. Three months later, it has four backends and trains its own AI.
4,212 lines. Source in, native binary out. Four targets from one compiler.
1GB bump arena
+ free list
Conservative
mark-sweep
Tagged pointers
TCO + closures
Full technical details on /system
These Rail programs are compiled to WebAssembly and run in your browser. No server. No install.
main =
let _ = print "Hello from Rail!"
let _ = print "Running as WebAssembly."
0fib n =
if n < 2 then n
else fib (n - 1) + fib (n - 2)
main =
let _ = print (fib 10)
let _ = print (fib 20)
let _ = print (fib 30)
0square x = x * x
cube x = x * x * x
main =
let _ = print (square 7)
let _ = print (cube 5)
let _ = print (square 12 + cube 3)
0fizzbuzz n =
if n > 30 then 0
else
let _ = if (n % 15) == 0 then print "FizzBuzz"
else if (n % 3) == 0 then print "Fizz"
else if (n % 5) == 0 then print "Buzz"
else print n
fizzbuzz (n + 1)
main = fizzbuzz 1The compiler is the oracle. If it compiles, the code is correct. The model gets better at writing the language it is verified by.
verified examples
curriculum levels
nodes (M4 + 3070 + Pi)
Real-time neural control with native float MLP. Rail as the inference engine. Competition entry in progress.
Mac Mini M4 Pro + RTX 3070 + Pi Zero. Rail fleet agents, CUDA QLoRA training, cross-compilation. 3 architectures.
Rail compiles to WebAssembly. Built-in HTTP server and REPL. Programs run in browsers, on servers, and at the edge.
Autonomous oversight. One file, one loop, one LLM. Open source.