Compilers
A compiler determines how the code you review will run. Our compilers translate Solidity into EVM bytecode and turn user-written formulas into live calculations.
We wrote oksolc in Zig to shorten the wait between Solidity edits. It compiles independent contracts in parallel and can reuse work when you change a file.
GitHubon Uniswap v4
- solc 0.8.38
- 36.1 s
- oksolc · 1 job
- 14.0 s
- oksolc · 8 jobs
- 3.37 s
What did we measure?
On October 27, 2026, we timed complete, optimized via-IR builds on an 18-core Apple M5 Max with 64 GiB of memory. Each result is the median of three interleaved runs after a warmup, with fresh processes and the persistent cache off.
A single oksolc 0.2.3 job was 2.4 to 2.6 times as fast as solc 0.8.38 on these three snapshots. Eight jobs let independent contracts compile in parallel at the cost of higher peak memory. We included EigenLayer because it showed the largest eight-job gain in our initial screening.
We also compared the creation and runtime bytecode, including metadata, against a separately pinned solc 0.8.36. All three snapshots matched. We use oksolc for development and recommend upstream solc for deployment.
How soon can you test an edit?
Keep the compiler running and it can reuse parts of the project the edit leaves untouched.
| First edit | Fresh | Session kept |
|---|---|---|
| Pendle V2Oracle interval, 12 h to 13 h | 2.14 s | 0.44 s |
| Uniswap v4Shared math library expression | 3.47 s | 1.52 s |
Both modes used eight oksolc jobs. Timing began after the initial build. Each edit was new to its session and returned the same output as a clean build.
What else can a compiler check?
The bytecode in a build
For a small Solidity contract, oksolc produces evidence that connects the source to its exact creation and runtime bytes. The checker can tell when an altered build changes the result.
Explore formal verification →The formula inside an app
LambdaScript checks the types in a user’s formula before compiling it into live Cells. The host application chooses which values and functions the formula can use.
Try the LambdaScript compiler →