OQL
A verb-first, pipeline-oriented server-side execution language built in Rust. Zero external dependencies for core operations.
What it is
OQL is the Ocalt Query Language. Every statement starts with a verb. Every query compiles to an execution graph before a single instruction runs. The language is deterministic, auditable, and parallelisable by construction.
OQL runs on Ocalt servers and is accessed over HTTPS. Send a query in a JSON envelope. The server compiles it, executes it, returns the result.
What it does
CALCULATE — math expressions including SQRT, POW, ABS, FLOOR, CEIL, ROUND, LOG, SIN, COS, TAN. HASH — SHA-256 from scratch. SIGN/VERIFY — JWT using HMAC-SHA256 from scratch. Full string verb set: UPPER, LOWER, REPLACE, SPLIT, JOIN, TRIM, LENGTH, ENCODE, DECODE. PARSE JSON. NEW JSON OBJECT.
WRITE, READ, EXEC — filesystem and shell. COLLAPSE — converges parallel multivariable branches into an indexed array. RAW IMAGE — pixel-level image construction, PNG and BMP output, all from scratch.
AND runs branches in parallel simultaneously. AFTER chains sequentially. OR falls back on failure. A multivariable is a variable bound across parallel branches — it holds N live instances and fans out downstream operations automatically.
How it works
Implemented in Rust. Tokio for I/O-bound ops, Rayon for CPU-bound ops, wgpu GPU pool in progress. Lexer, parser, IR lowerer, and executor are all hand-written. SHA-256, HMAC-SHA256, JWT, PNG encoding (CRC-32, Adler-32, deflate), and BMP encoding are written from scratch in oql-runtime.
Auth is sessionless. Credentials travel in the JSON request envelope on every HTTPS request. Each Ocalt account namespace is isolated.
Who it is for
Developers who want a programmable execution layer without managing infrastructure. Starter tier and above includes OQL API access.