Atracode. One compiler for every language, checked against the real one.
Atracode compiles code from many languages into one verified form. It checks the result against each language's own compiler, gives the behavior a name you can compare, and runs it anywhere. Here's how, from source to proof.
In four steps. What happens to your code.
You keep writing code the way you do now. Atracode adds a proof that it does what the original would, and a single file that runs it.
- 01
Bring your code
Write in any supported language, or let an agent write it. Your editor, repository and review process stay as they are.
- 02
Compile it to a graph
Atracode turns the code into a Semantic Execution Graph: an exact description of what the program computes, with no hidden state.
- 03
Check it against the real compiler
The graph and the language’s own toolchain run side by side on thousands of inputs. Code only passes when both agree.
- 04
Name it and run it
The result gets a behavior hash, a name for what it does, and runs on the open-source runtime anywhere, or on Atra OS.
The Semantic Execution Graph. The program's behavior, with nothing hidden.
Every program becomes a typed dataflow graph, the SEG. It has no hidden state and no side effects it doesn't declare, and its limits are known before it runs.
Pure dataflow
Every value has exactly one producer and explicit consumers. There are no variables that change behind the graph's back, so any node can be traced to everything that fed it.
Memory as one value
All memory is modeled as a single value threaded through the graph, the membrane. Every read and write is an explicit edge, which makes aliasing and out-of-bounds effects visible.
Closed world
A program can only touch what it declares. Reading the clock, the network or an environment variable has to come in as an input, or the compiler refuses it.
Bounded before it runs
Integer widths, types and resource use are fixed at compile time, and every execution runs on a fuel budget, so nothing loops forever.
RAVEN behavior hashes. A name for what code does.
RAVEN writes the graph out in one canonical byte form and hashes it with SHA-256. Two programs share a hash only when they compute the same thing, whatever language they started in, and a one-line change in behavior gives a new one.
- INTEREST.cblCOBOLraven:13803fe6908d64b3301b931688e6244c99d9b80f15c781f5de7581abb7c3d2af
- interest.pyPythonraven:13803fe6908d64b3301b931688e6244c99d9b80f15c781f5de7581abb7c3d2af
- interest.rsRustraven:13803fe6908d64b3301b931688e6244c99d9b80f15c781f5de7581abb7c3d2af
- interest.rsRust · rounds half to evenraven:9c41e07b52aa0f6e3d19c8b4407f2e15a6d0b93e7c58124f0e6ab3d9f1c27e85
- Build settings don't count
- Compiler version, flags and platform leave the hash unchanged.
- Behavior does
- Change what the program computes, even the rounding of one value, and the hash changes.
- Migrations you can check
- Hash the old code and the new one. If they match, the rewrite kept its behavior.
Checked against the real compiler. On thousands of inputs per build.
Each program is built twice: once by Atracode and once by its own native toolchain. Both run over thousands of inputs and must match bit for bit in output and memory, then again against published test vectors.
Toolchains we test against
Case counts for each language are on the security page.
It refuses instead of guessing
When Atracode can't reproduce the native result exactly, it stops and points at the cause.
refused rotate.sh:12:9 reads $(date), which differs on every run pass the timestamp in as an argument and compile again
Some engines, replaced outright.
For query languages, markup and templates, data formats, infrastructure artifacts and hardware description, Atracode also stands in for the database, browser, template server, parser or simulator that would normally run the code.
SQL, PostgreSQL, DuckDB, Spark SQL, Cypher, SPARQL, MongoDB MQL, Redis, GraphQL
Query engines
Queries compile into a deterministic query engine and run with no database server or cluster. Each one becomes a portable object with its own hash.
HTML, CSS, Markdown, Jinja, Liquid, Handlebars
Style and templates
Pages, styles and templates render the same way every time, with no browser or template server involved.
JSON, XML, YAML, TOML, Protocol Buffers, Parquet, Arrow and 11 more
Data and configuration
Documents and data files become hashable objects, and decoding them is checked against the reference implementation.
Kafka wire protocol, Nginx, Apache httpd, Dockerfile, Nix, Kubeflow, MLflow
Infrastructure
Wire protocols, server routing, builds, pipelines and model signatures compile to graphs you can hash, compare and prove.
Verilog
Hardware simulation
Combinational logic, clocked blocks, state machines, memories and generate blocks, simulated exactly cycle by cycle.
Cryptography you can audit.
Each primitive is written as ordinary source, compiled like any other program, and checked against both the native compiler and the official test vectors.
- SHA-256
- SHA-512
- HMAC-SHA256
- AES-128
- AES-256
- AES-GCM
- ChaCha20
- Poly1305
- X25519
- Ed25519
- Bignum
- How we test them →
The runtime and Atra OS. Where your code runs.
Every build carries the open-source runtime, so it runs anywhere as a single file. Atra OS is the host we build for it, subscribed per machine on servers you run.
Media, made verifiable. Coming to the platform.
Image, audio and video formats the compiler and runtime understand natively. Every pixel, sample and frame is content-addressed, so integrity and dedup come with the file, and every device decodes it the same way.
Compile something of your own. It's free to start.
The free plan includes 250 compilations a month, which is enough to run your own code through every step on this page.