Who is deox for?
Is it worth an afternoon?
Kinds of programmers, and for each one where deox makes the work easier, with the source of every claim.
Status: deox is young and its design is still a draft that moves. Here is what it already does well, and where it is going.
Today is in the compiler, the standard library or the tools now. On the roadmap is a design sketch or an open issue, not a promise.
Strong fit today
System and CLI developers
PainC reaches every library and system call, and forgives nothing.
deoxC's reach, with checks that stay on and cleanup at the end of every scope.
Network developers
PainThousands of connections, without a thread each or a pile of callbacks.
deoxCheap tasks, channels and select, with data races refused at compile time.
Backend developers
PainServices that should be small, fast and safe, without a VM or a collector to tune.
deoxHTTP, SQL, JSON and exact decimals in the standard library, and errors you cannot ignore.
Cryptographers and security engineers
PainCrypto in C is fast and dangerous; in a managed language it is safe and leaks timing.
deoxPrimitives written in deox itself, branch-free on secrets, with no C underneath.
Fintech and money code
PainFloats for money, and integers that overflow without a word.
deoxExact decimals with the rounding named at every division, and overflow that always traps.
Language and tool builders, and teachers
PainTrees, enums and pattern matching, without fighting the memory model.
deoxEnums with payloads, exhaustive match, and arenas that free a whole tree at once.
AI agents writing code, and the people who run them
PainModels write a new language badly: there is no training corpus.
deoxA language designed for that: one reference, and errors that carry their fix.
On the roadmap
deox is weaker here today. Each section says what works now and which issue tracks the rest.
Sysadmins and DevOps
PainShell scripts that break on a space in a file name.
deoxArguments as lists and no shell today; command literals are planned.
Kernel and embedded developers
PainBare metal in C, with no safety net.
deoxFreestanding objects with the checks still on; the low-level pieces are planned.
Game, physics and HPC developers
PainFrame budgets that a collector pause can blow.
deoxNo collector and native speed today; SIMD and units of measure are planned.
Mathematicians
PainExact arithmetic past 64 bits, in types that read like the maths.
deoxBig integers today; rationals, complex numbers and exact literals are planned.
Frontend and WebAssembly
PainThe same code on the server and in the page.
deoxA WebAssembly build and a page that runs it; no DOM access yet.
Mobile, desktop GUIs and machine learning: not covered yet.
01 System and CLI developers
Strong fit todayThe problem
C reaches every library and every system call, and one wrong index is a security bug. Rust closes that gap but asks for lifetimes first, and Go's collector makes memory shared with C awkward.
Today
Cleanup you can see.
A value is destroyed when its scope ends, and
deferanderrdeferrun on the way out. No collector decides when.fn report(name: string, text: string) -> Result[string, Error] { defer print(f" {name}: done") errdefer print(f" {name}: giving up") let cfg = load(text).wrap(f"loading {name}")? // or with a value: the default. let retries = cfg.retries or 3 return Ok(f"{cfg.host}:{cfg.port}, {retries} retries") }Source: SPEC §2.8 · examples/errors.dx
Checks that cannot be turned off.
Integer overflow, out-of-bounds indexes and an empty
Optiontrap in every build, and no flag removes them. Wrapping is a function you call by name.let wrapped = u8.wrapping_add(a, 10) // 250 gives 4: asked for by name let checked = a + 10 // 250 traps: integer overflow
A C header is a package.
import "zlib.h"reads the header when the program is checked. Foreign calls sit inunsafeblocks that grep finds, callbacks and variadic C functions work, anddeox bindwrites bindings to edit when a header needs help.import "zlib.h" link "z" fn zlib_version() -> string { unsafe { return ffi.from_cstring(zlib.zlibVersion()) } }Source: SPEC §9 · §2.7 · tutorial, chapter 10
One binary for the whole toolchain.
Build, test with coverage, format, document, profile, debug with gdb or lldb, and a language server are all
deoxsubcommands;os,os/process,os/ptyandos/termare in the standard library. Linux (amd64, arm64) and macOS (arm64) are tested, Windows (x86-64) and FreeBSD are newer ports, and musl is a target of its own.$ deox build -o tool main.dx $ deox test -cover ./... $ deox fmt . $ deox build -target linux-musl/amd64 -o tool main.dx
wordcount: 16.1 ms with the C backend, against 60.7 ms for C at
-O2. 2026-11-28, AMD Ryzen AI MAX+ 395, Arch Linux. bench/RESULTS.mdSource: README, the commands · README, cross-compiling · editors
On the roadmap
Not yet a fit if you target a CPU other than amd64 or arm64 (32-bit or riscv64), or you need inline assembly.
Start here: Tutorial, chapter 11: a complete tool
02 Network developers
Strong fit todayThe problem
A server holds thousands of connections that mostly wait. A thread per connection costs too much, callbacks scatter the logic, and a collector pauses at the worst time.
Today
Tasks that cost nothing while they wait.
Stackful tasks run on a pool of worker threads. A task waiting on a socket, a channel or a timer holds no thread, and
selectwaits on several at once.fn run_all(jobs: List[string]) { let ctx = context.with_timeout(context.background(), time.seconds(5)) let done = chan string(jobs.len()) for j in jobs { spawn job(ctx.copy(), j.copy(), done.copy()) } for _ in 0..jobs.len() { select { case name := <-done: print(f"{name or ""} done") case <-ctx.done(): print("deadline passed") return } } }Source: README, the runtime · SPEC §6 · tutorial, chapter 8
A data race is a compile error.
A value crosses to another task only if the compiler proves it shareable, so safe code cannot race on shared data.
let hits = ref mut Counter{ n: 0 } spawn fn() { hits.n += 1 }deox check says:
spawned task captures hits of type ref mut Counter, which is not shareable (SPEC §6.3)
Source: SPEC §6.3
The protocols are in the standard library.
TCP and UDP, HTTP/1.1, HTTP/2 with HPACK (RFC 9113, chosen by ALPN), TLS through the system's OpenSSL 3, WebSocket (RFC 6455 with permessage-deflate), and
contextfor cancellation and deadlines.fn (s: Site) handle(req: http.Request) -> http.Response { s.inbox <- Hit let p = req.path() if req.method == "POST" { return http.response(200, strings.to_upper(req.body)) } if p == "/" { return http.response(200, "hello from deoxlang")Source: README, tls and https · websocket · std/net · examples/http.dx
A real server to read.
kv.dxis a key-value server with a line protocol, one task that owns the map, a sweeper on a timer, and a load test in the same program.chat.dxis a chat broker.$ deox run examples/kv.dx load 1000 10its first line:
1000 workers x 10 rounds: 30000 of 30000 answers right, counter 10000, keys=10001 ops=30002
Source: examples/kv.dx · examples/chat.dx
On the roadmap
- #17 Structured concurrency: task scopes that join, cancel and carry deadlines.
- #18 Deterministic simulation testing, with a virtual clock and fault injection.
- #14 Wire formats declared as structs.
Not yet a fit if you need QUIC, HTTP/3 or gRPC, or you stream large HTTP bodies: the HTTP package holds a body whole.
Start here: Tutorial, chapter 8: tasks, channels, select and context
03 Backend developers
Strong fit todayThe problem
A service spends its life between HTTP and a database. It should start fast, stay small in memory and fail loudly, without a VM or a collector to tune.
Today
HTTP servers and clients.
net/httpserves and calls HTTP/1.1;net/httpsis the same over TLS and speaks HTTP/2 to clients that ask for it.struct Api : http.Handler { } fn (a: Api) handle(req: http.Request) -> http.Response { if req.path() == "/health" { return http.response(200, "ok") } return http.response(404, "not found") }Source: std/net/http · README, https and HTTP/2
SQL without injection.
database/sqlbinds each parameter by its type and never splices it into the query text, and gives typed rows back. A transaction left by a panic or an early return is rolled back.fn rename(db: mut sql.Conn, id: int, name: string) -> Result[(), Error] { db.transaction(fn(tx) { // ? binds name and id by type: they never become query text. discard tx.exec("update item set name = ? where id = ?", [sql.text(name), sql.int(id)])? return Ok })? return Ok }Source: std/database/sql · README, sql
Drivers and data formats.
sqlitebinds the system's libsqlite3;postgresspeaks PostgreSQL's wire protocol, written in deox, with SCRAM-SHA-256 and TLS.encoding/json,log,timewith IANA zones andmath/decimalare there too.let v = json.parse(body)? let paris = time.load_zone("Europe/Paris")? let price = decimal.parse("19.99")?Source: README, sqlite and postgres · std/database/postgres · time zones
Errors are values.
?passes an error up,orsupplies a default or a return,wrapadds context, and an ignoredResultis a compile error.save("draft")deox check says:
this Result is unused; propagate it with ?, match on it, use or, or write discard in front of it
Source: SPEC §7.5 · examples/errors.dx
On the roadmap
- #8 Typed JSON and SQL rows through compile-time reflection.
- #17 Structured concurrency, for request-scoped tasks.
Not yet a fit if you want an ORM, JSON decoded straight into your structs, or a large package ecosystem; an ecosystem is a stated non-goal for now.
Start here: examples/http.dx: a server and its client in one program
04 Cryptographers and security engineers
Strong fit todayThe problem
Cryptography in C is fast and one slip away from a memory bug. In a managed language it is memory-safe, but a hidden branch or a collector can leak timing.
Today
Written in deox, branch-free on secrets.
SHA-2, SHA-3, BLAKE2, BLAKE3, HMAC, HKDF, PBKDF2, Argon2, scrypt, bcrypt, ChaCha20-Poly1305, AES-GCM, X25519 and Ed25519 are written in the language, with no C, and without a branch or a table index that depends on a secret.
fn verify(key: string, msg: string, tag: string) -> bool { let expected = hmac.sum(sha256.hash, key, msg) return subtle.equal(tag, expected) // reads every byte, whatever it finds }Source: README, cryptography · std/crypto
Arithmetic says what it does.
The operators trap on overflow, and a trap is a branch on the operands; code on secrets uses the wrapping forms, which are straight-line.
crypto/subtlecompares, selects and wipes.// Arithmetic on secrets wraps by name: no overflow check, so no branch. fn mix(a: u32, b: u32) -> u32 { return u32.wrapping_add(a, b) ^ u32.wrapping_mul(a, 0x9e3779b9) }Source: SPEC §4.3 · std/crypto/subtle
libcrypto only when asked for.
RSA, ECDSA, ECDH and X.509 bind the system's libcrypto, and a program links it only if it imports one of them. Ed25519 and X25519 need nothing.
import "crypto/ed25519" import "crypto/hmac" import "crypto/sha256" import "crypto/subtle"
Source: README, what links what
Built to be audited.
Every
unsaferegion and foreign call is marked in the source, and dependencies are pinned by commit indeox.lockand by hash indeox.sum.$ grep -rn unsafe --include='*.dx' . $ deox mod verify .
Source: SPEC §2.7 · README, deox.lock and deox.sum
On the roadmap
- #16 Secret types the checker holds to constant time. Today that is the code's discipline, not the compiler's promise.
- #13 Portable SIMD.
- #19 Capabilities per package and
deox audit; it starts with #3, an open bug that lets any package reach the runtime through@builtin.
Not yet a fit if you need audited implementations, post-quantum algorithms or assembly-level speed: SHA-256, for one, is portable scalar code, several times slower than libraries that use the CPU's SHA instructions.
Start here: examples/sum.dx: SHA-256 or BLAKE3 over a tree of files, hashed by a pool of tasks
05 Fintech and money code
Strong fit todayThe problem
0.1 + 0.2 is not 0.3 in a float, and a balance that overflows quietly becomes another balance. Money needs exact numbers, and arithmetic that stops when it goes wrong.
Today
Exact decimals, rounding by name.
math/decimalholds 38 digits and a scale. Addition and multiplication are exact, and where a result cannot be, the caller names the scale and the rounding.fn split(total: decimal.Decimal, count: int) -> Result[decimal.Decimal, Error] { // Division cannot be exact, so the scale and the rounding are named. return Ok(total.div(decimal.from_int(count), 2, decimal.Rounding.HalfEven)?) }Source: std/math/decimal · README, decimal
Overflow traps, in every build.
There is no release mode that wraps. The checked forms give
Nonewhere the true result does not fit.fn cents(balance: i64, fee: i64) -> Option[i64] { return i64.checked_sub(balance, fee) // None instead of a wrong number }Source: SPEC §4.3
Integers of any size.
math/bigint, checked against Python's integers.let big = bigint.parse("123456789012345678901234567890")?.pow(3)Source: std/math/bigint · README, bigint
On the roadmap
- #10 Exact literals for decimals and big integers.
- #11 Units of measure, so that adding EUR to USD would not compile.
Proposed syntax, from docs/literals.md (#10). A sketch, not a decision; none of it is implemented:
let price: decimal.Decimal = 19.99 // coefficient 1999, scale 2: exact let fee: decimal.Decimal = 2.50 // scale 2, prints 2.50 let limit: decimal.Decimal = 1_000_000 // an integer is a decimal too let total = price.mul(fee)? // no operator: add and mul return a Result
Not yet a fit if you need business-day calendars or dataframes.
Start here: std/math/decimal, or deox doc math/decimal
06 Language and tool builders, and teachers
Strong fit todayThe problem
Interpreters, compilers and teaching tools are trees all the way down. They need sum types and pattern matching, and a cheap way to build a tree and drop it whole.
Today
Enums with payloads, and match that names them all.
Add a variant and every
matchthat forgets it stops compiling.enum Expr { Num(value: int) Add(left: ref Expr, right: ref Expr) Neg(inner: ref Expr) }// The match names every variant: add one to Expr and this stops compiling. fn eval(e: ref Expr) -> int { return match e { Num(value) => value Add(left, right) => eval(left) + eval(right) Neg(inner) => -eval(inner) } }Source: SYNTAX.md · examples/shapes.dx
Arenas: make a tree, free it in one go.
Values made in an arena are released together when it ends or is reset, with no count and no free per node.
with a = arena.new() { let leaf = a.make(Node{ value: 1, left: None, right: None }) let root = a.make(Node{ value: 2, left: Some(leaf), right: None }) print(f"{sum(root)}") } // the whole tree is released here, in one gobinarytrees over arenas: 172.8 ms and 20 MiB, against 701.2 ms and 34 MiB for C at
-O2. 2026-11-28, AMD Ryzen AI MAX+ 395, Arch Linux. bench/RESULTS.mdSource: std/arena · docs/arenas.md
Worked examples to read.
A Lisp with closures, a Pratt calculator, an assembler and its virtual machine, regular expressions on a Pike VM, and a CHIP-8 emulator.
$ deox run examples/lisp.dxMaterial to teach from.
A tutorial and four pages of equivalents, for readers of Go, Rust, Python and C.
11 tutorial chapters, 4 from-X pages.
Source: docs/tutorial · Go · Rust · Python · C
On the roadmap
- #7 Arenas finished: owned fields,
mutfields, a real program moved onto them. - #8 Compile-time reflection, the planned answer to what other languages use macros for.
Not yet a fit if you want macros or a parser generator: there are neither.
Start here: examples/lisp.dx: a small Lisp, with the cycles its closures make
07 AI agents writing code, and the people who run them
Strong fit todayThe problem
A model writes a language well when it has read a lot of it, and nobody has read much deox yet. The language has to make up the difference.
Today
Close to what models already know.
Syntax that would diverge from Rust, Go and Swift for the sake of brevity is ruled out:
Option[T]andResult[T, E], not new sigils.fn find(names: List[string], wanted: string) -> Option[size] { for i in 0..names.len() { if names[i] == wanted { return Some(i) } } return None }Source: SYNTAX.md §1 · SPEC §1, goal 5
Errors written as instructions.
A compiler error says what edit fixes it.
var count = 0
deox check says:
a mutable binding is declared with mut, not var: mut x = ...
Source: SPEC §1, goal 5
Fixes applied, one style.
deox fixmakes the edits the errors spell out, anddeox fmthas one style and no options.$ deox fix ./... $ deox fmt .
Source: README, fmt and fix
One reference that fits in a context window.
How the language is spelled is one document, short enough to read whole, with a context-free grammar.
SYNTAX.md: 1,179 lines.
Source: SYNTAX.md
On the roadmap
Not yet a fit if your agent needs a streaming HTTP client, for server-sent events from an LLM API: the client reads a body whole today.
Start here: SYNTAX.md
08 Sysadmins and DevOps
On the roadmapThe problem
Scripts glue other programs together, and in sh a variable holding a space or a leading dash quietly changes the command. Python is safer, but every machine needs the right interpreter.
Today
Scripts, cached.
deox runbuilds into a cache keyed by its inputs, so an unchanged script is not built again, and a file that starts with#!/usr/bin/env deoxruns as a script.$ deox run deploy.dx --dry-runSource: README, deox run · README, the cache
No shell in the middle.
os/processtakes the arguments as a list: each is one argument, whatever it holds.fn head() -> Result[string, Error] { mut args = List[string]() args.push("rev-parse") args.push("--short") args.push("HEAD") let out = process.run("git", args)? // no shell: each argument is one argument if out.status != 0 { eprint(out.stderr) } return Ok(out.stdout.copy()) }Source: std/os/process
Archives and compression.
tar, zip, gzip, zstd and lz4 are read and written; xz and bzip2 are read. Extraction refuses entries that would land outside the target directory.
fn unpack(path: string) -> Result[(), Error] { let f = os.open(path)? mut r = tar.reader(f) discard tar.extract(&r, "dest", tar.options())? // refuses ../ and absolute names return Ok }Source: README, compression and archives · std/archive
On the roadmap
- #20 Command literals, split into arguments at compile time so injection is impossible, and a script mode.
- #19 Capabilities per package.
Proposed syntax, from docs/commands.md (#20). A sketch, not a decision; none of it is implemented:
cmd"tar -czf {out} -C {dir} {..files}".run()?
let head = cmd"git rev-parse --short HEAD".output()?
let n = cmd"journalctl -u app --since today | grep -c ERROR".output()?
cmd"pg_dump {db} > {path} 2>> {log}".run()?Not yet a fit if every machine that builds a script needs a C compiler; start-up is slower than sh or Python (0.10 s for an unchanged script, against 0.016 s for python3, as measured in #20); and there is no YAML or TOML package yet.
Start here: Tutorial, chapter 9: modules and tools
09 Kernel and embedded developers
On the roadmapThe problem
Kernels and firmware run with no OS and no C library underneath. Most safe languages need a lot of help to get there, so what is left is usually C.
Today
Freestanding objects.
-target none/amd64andnone/arm64build one relocatable object with no OS and no libc, which asks its host for five functions.$ deox build -target none/amd64 -o part.o main.dxwhat the object leaves undefined:
dx_host_alloc dx_host_free dx_host_realloc dx_host_write dx_host_panic
Source: docs/freestanding.md, step 3
The checks stay on.
Bounds and overflow checks work as in a hosted build, and a panic runs every frame's cleanup before it reaches
dx_host_panic.Tested by
TestFreestanding: an object linked with a host that has no C library, run natively and on arm64 under qemu.Source: docs/freestanding.md
On the roadmap
- #6 Volatile, atomics,
@packedand a boot test. - #14 Bit-field structs and MMIO registers.
- #15
@noallocand@nopanic, checked through every call.
Not yet a fit if you need inline assembly or a 32-bit target, which rules out most microcontrollers.
Start here: docs/freestanding.md (a sketch, not a decision)
10 Game, physics and HPC developers
On the roadmapThe problem
A frame has a budget of milliseconds, and a collector pause can spend it. Simulations also want floats that give the same bits on every run.
Today
No pauses, native speed.
Memory is freed when its owner goes, never by a collector, and the numeric benchmarks run with C.
nbody: 196.0 ms with the C backend, 197.2 ms for C. mandelbrot: 163.1 ms and 164.5 ms. 2026-11-28, AMD Ryzen AI MAX+ 395, Arch Linux. bench/RESULTS.md
Source: bench/RESULTS.md
Floats you can predict.
No multiply-add is fused behind the program's back, and a math call gives the same bits on a target whatever the build. The LLVM backend has an open bug against this, #2.
mathsame.dxholds both backends to the same results.Source: SPEC §4.3
Operators on your own types.
+,-,*and the rest call methods with well-known names.fn (a: Vec) add(b: Vec) -> Vec { return Vec{ x: a.x + b.x, y: a.y + b.y } } fn (a: Vec) neg() -> Vec { return Vec{ x: -a.x, y: -a.y } } fn main() { let a = Vec{ x: 1.0, y: 2.0 } let b = Vec{ x: 0.5, y: 0.5 } let c = a + -b // a.add(b.neg())Source: SYNTAX.md, operators
On the roadmap
Not yet a fit if you need SIMD, the GPU, f16, or bindings to a game engine.
Start here: docs/from-c.md
11 Mathematicians
On the roadmapThe problem
Number theory and exact computation need integers of any size. They also want types that behave like the objects they model.
Today
Integers of any size.
math/biginthas the arithmetic, modular powers and a primality test.let p = bigint.parse("57896044618658097711785492504343953926634992332820282019728792003956564819949")? print(f"{p.is_prime()}") // 2^255 - 19Source: std/math/bigint
On the roadmap
Not yet a fit if you need complex numbers, rationals or a REPL.
Start here: std/math/bigint
12 Frontend and WebAssembly
On the roadmapThe problem
Some code belongs on both sides: a parser, a validator, a simulation. That takes a WebAssembly build a browser can load.
Today
A page that runs your program.
deox webbuilds awasi/wasm32module and writes the page that runs it.$ deox web -o site examples/maze.dxSource: README, deox web · docs/freestanding.md
The page's fetch.
webgives the module the page'sfetch. Fetching and sleeping need the browser's JavaScript Promise Integration (JSPI); without it a sleep spins and a fetch fails.let r = web.get("/data.json")? // the page's fetch; the module waits for itSource: std/web
On the roadmap
- A JavaScript FFI for the browser is listed in #21 as not yet covered by a sketch.
Not yet a fit if you need the DOM, calls into JavaScript, or a browser without JSPI.
Start here: README: deox web