skip to content
cint

news

Measured results from the cint development tree and notes for each public release, newest first. Dates are US Eastern.

sections
development tree · releases
syndication
Atom feed (/news/feed.xml)

development tree

These entries report measured results from the development tree before they are tagged in a release. The releases section below and the release notes state what each tagged release includes.


development tree

ced, a Text Editor Written in cint, Passes 63 of 63 Checks on Windows from Its Linux Source

ced.language
cint, 12 modules, 2,775 lines, no C and no shell script
ced.services
console/1 and fs/1
ced.checks
63: 42 unit tests, 21 keystroke replays
ced.windows
MSVC on Windows 11, the Linux source unchanged, 63 of 63 pass
ced.windows.save
abcé😀 saved as 61 62 63 c3 a9 f0 9f 98 80
ced.windows.console
5 problems over three rounds, all in cint's Windows console runtime, none in ced
ced.windows.fix
in v0.2.4
ced.release
none

ced, a terminal text editor written in cint, builds with MSVC on Windows 11 from the same commit that passes on Linux, with no change to its source, and passes 63 of 63 of its checks there. Typed into the Windows build, abcé😀 saves as the nine bytes 61 62 63 c3 a9 f0 9f 98 80. The console fixes behind that result are in v0.2.4.

ced edits one file, with undo, redo and search, and uses the common desktop keys: Ctrl+S saves, Ctrl+Z undoes, Ctrl+F finds. It reaches the terminal and the file only through cint's console/1 and fs/1 services, so its core is a function of the file bytes, the window size and the input bytes. Of the 63 checks, 21 replay a recorded keystroke log through that core and compare the text, the selection and the screen; the other 42 are unit tests.

Three rounds on Windows found five problems, all in cint's Windows console runtime. None needed a change to ced.

  • Resize. Any input record signals a console's handle, but a read returns only for a character. After a resize the wait ended, the read that followed blocked until the next key, and ced did not redraw until then.
  • Ctrl+Z. cint read the console with ReadFile, which in raw mode takes Ctrl+Z (0x1A) as the end of input. cint reported the console closed and ced's loop ended, so the undo key quit the editor.
  • Emoji. Windows Terminal sends a character past U+FFFF as an Alt+Numpad entry, one surrogate half per Alt release. The first version of the fix discarded those releases and dropped U+1F600.
  • End. The fix's record reader dropped keys that carry no character, so End did nothing.
  • é. The runtime never set the console's output code page, so ced's UTF-8 showed in code page 437 and é appeared as ├⌐.

v0.2.4 reads console input records with ReadConsoleInputW in place of a byte stream. A key with a character gives that character, Ctrl+Z, Ctrl+Y and Ctrl+C included, so Ctrl+Z is undo on Windows. A key without one, such as an arrow, Home or End, gives the sequence xterm sends. Resize, focus, menu and mouse records are skipped. Raw mode sets the output code page to UTF-8 and restores the console's own when raw mode ends. Line mode, pipes, files and POSIX systems behave as before. The final version passes 61 of 61 simulated-queue checks under GCC 13 and Clang 18, at -O0 and -O2, with and without AddressSanitizer and UndefinedBehaviorSanitizer.

Against a Linux terminal, four differences remain: Shift+Tab arrives as Tab, Alt with a character arrives without its ESC prefix, F1, F2 and F4 to F12 give nothing, and outside raw mode the output code page stays the console's. ced binds none of these keys. ced itself is not in a release.


development tree

Treating the Unknown as a Fault

problem
Pythagorean three-body, masses 3 4 5, leapfrog in checked integers
collapse
no fault, energy +109 from t=1.87, all three bodies escape
collapse.double
the same blow-up, no signal
fault
stops at t=1.544, energy error 1.7e-7, before the blow-up
fault.record
E_ASSERT, gap 1006288 against a budget of 1000000
fault.figure-eight
passes 100 periods, worst gap 77% of the budget
escalate
known ending: bodies 4 and 5 bound, body 3 escapes
escalate.cost
546011 steps, energy error 6.9e-5
status
the fault case runs today; the branch rule is not in cint yet

Every numerical program makes decisions. It decides whether a step was good, whether a value passed a limit and which branch to take. When its numbers carry error, each decision has three outcomes: yes, no and unknown. Most number systems fold the third outcome into one of the other two without saying so. In IEEE 754 floating point, every ordered comparison with a NaN (not a number) is false, so if (x > limit) takes the false branch and if (x <= limit) takes the false branch as well. The program goes on, and unless it tests the floating-point status flags, nothing records that it never knew.

I ran the Pythagorean three-body problem three ways to see what that costs. It starts three bodies of mass 3, 4 and 5 at rest, and its close encounters break any fixed step I tried. The integration is a leapfrog in cint's checked integers.

  • Collapse. The program takes every step as if it were certain. At a step of 10-3 the energy jumps by 109 from t = 1.87, and all three bodies fly apart. No fault fires, because every value stays in range. The same program in floating-point double fails the same way, just as silently.
  • Fault. Each step is also taken as two half steps, and the run stops when the two disagree by more than a budget fixed in advance. It stops at t = 1.544 with an energy error of 1.7e-7, before the blow-up. A second orbit, the figure-eight, passes 100 periods under the same check, with a worst gap of 77% of the budget.
  • Escalate. The program halves the step and retries, and it faults only if the smallest step still fails. It reaches the known ending: bodies 4 and 5 leave as a bound pair and body 3 escapes. That took 546,011 steps and ended with an energy error of 6.9e-5.

The fault case works in cint today with an ordinary assertion and no new feature. An assert(gap <= TOL) stops the run with the error code E_ASSERT, and the fault record names both numbers, 1,006,288 against 1,000,000. The cint run command and the emitted C stop at the same step.

What I want cint to have, and it does not have yet, is a default: a branch on an unknown never silently picks a side. Either it stops with a record, or the caller takes the unknown as a value and handles it. The _result forms of cint already return arithmetic errors as values in this way. None of the ingredients are new. Three-valued logic, intervals, assertions and adaptive steps are all decades old. What would be new is a language that will not let the third answer pass in silence. It would also behave the same way on every engine.

Stopping is not always safe, and a fault can itself be the failure. That is why the handled form matters as much as the stop. The check above is also an estimate, not a bound. A run that passes it can still be wrong, as the 6.9e-5 energy error shows. I want cint to adopt a branch rule for unknowns, and it is not part of the language yet.


development tree

Deterministic Binary64: A Probe Gives the Same Bits on Eight Builds, x86-64 and arm64

f64.operations
add sub mul div sqrt
f64.pairs-per-operation
9997512
f64.exact-check
300000 per operation, 0 mismatches, x86-64 and arm64
f64.orbit-steps
63260
f64.strict-builds
8 of 8 same bits
f64.contracting-builds
5 of 5 change the orbit, 0 of 5 change an operation
f64.compilers
MSVC-19.44 gcc-13.3 gcc-16.2 clang-18.1 clang-22.1 apple-clang-21

cint has no floating-point type today. Work has started on F64, an IEEE 754 binary64 floating-point type that is always finite. Each of its operations is the exact result rounded once, so an F64 program would give the same bits on every engine that passes verification. F64 is to run on the hardware instruction only where those bits are verified, and to fault where IEEE 754 would produce an infinity or a NaN.

A C probe tests whether hardware gives those bits. It digests the result bits of addition, subtraction, multiplication, division and square root on 9,997,512 seeded operand pairs per operation, subnormals included. It also digests every state of a 63,260-step figure-eight orbit in double. Eight builds that do not fuse operations give the same digests:

  • GCC 13.3 at -O2 and -O0 and Clang 18.1 on x86-64 Linux;
  • GCC 16.2 and Clang 22.1 on x86-64 Linux;
  • MSVC 19.44 on x64, with /fp:strict and with /fp:precise;
  • Apple Clang 21 on the M4.

The same orbit written in JavaScript and in Python gives the same digest under Node 22 and CPython. On x86-64 and on arm64, 300,000 results per operation equal the exact rational result rounded once, computed in Python with exact fractions.

The five builds that may fuse a multiply and an add into one instruction still give the same bits for the five operations, but each one changes the orbit. They are GCC and Clang with -march=native or -march=haswell and Apple Clang with its default flags. An F64 build must therefore turn contraction off. WebAssembly, Linux on arm64, 32-bit x87 and the cost of the checks are not tested yet. F64 is not in a release or in the development tree.


development tree

Wide Integers: cintc Agrees with the Reference on All 56 Signed Boundary Tables

cintc.tables
agree 56/56, 14336 records
cintc.tables.2026-10-09
agree 44/56, 11264 records
cintc.wide-programs
agree 25/51
cintc.wide-programs.2026-10-09
agree 8/51
cintc.c-compilers
gcc-13.3.0 clang-18.1.3
cintc.new
shift-counts reductions dot kernels slices arenas pools folding print assert
cintc.refused
U128 U256 U512

cintc now agrees with the reference on all 14,336 records in the 56 boundary tables of I128, I256, I512 and I1024. The 12 tables of checked and wrapping shifts agree for the first time; the 44 tables of addition, subtraction, multiplication, division and remainder agreed on 2026-10-09. cintc also agrees on 25 of the 51 wide conformance programs, up from 8 in the 2026-10-09 entry: 23 compile and run to the reference's output under GCC 13.3.0 and Clang 18.1.3, and 2 stop with the reference's compile error.

cintc now compiles shifts by a wide count and reductions such as sum, sum_wrap, sum_sat, min, max and dot with a wide element or result, both in sequential code and in the reduce statements of kernels. It also compiles copy, fill, reshape and strided slices on wide arrays and views, and arenas and pools of wide elements. It compiles format specifications and failed asserts on wide values to calls to runtime helpers, and evaluates constant expressions of the four types at compile time. Kernels with wide elements compile to C, but the CUDA backend refuses them.

The unsigned types U128 to U512 are still among the forms cintc refuses with C9102. The remaining 26 wide programs and the 42 unsigned tables require these types.


development tree

Performance: Orbit Benchmark Runs at 2.80x to 4.40x the Time of Double

orbit-1e8.vs-double
2.80x to 4.40x
orbit-1e8.vs-double.before
2.91x to 5.14x
orbit-1e8.time-cut
3.5% to 14.3%
orbit-1e8.allowance
8x
orbit-1e8.runs
11, median
orbit-1e8.integer-digest
same on 4 compilers

The orbit benchmark now runs at 2.80x the time of the same integrator in double under Apple Clang on the M4, 3.33x under GCC, 3.43x under Clang and 4.40x under MSVC, each under the allowance of 8x. The 2026-10-09 entry gave 2.91x under Apple Clang, 3.49x under GCC, 3.74x under Clang and 5.14x under MSVC. Both sets come from paired runs on 2026-10-09 of the tree that entry measured and of the same tree with one change to the runtime, on the same machines and compilers. Each ratio is cint's median time over 11 runs in the built-in helper mode divided by the double build's median time.

With that change, cint's median time fell 14.3% under MSVC, 7.7% under Clang, 4.9% under GCC and 3.5% under Apple Clang. In the built-in helper mode, the runtime's fast path for muldiv now forms its 128-bit intermediate product with the 128-bit integer multiply of GCC and Clang, and with _umul128 under MSVC on x64. Under MSVC on x64, the fast paths of muldiv and div_round also divide with _udiv128. GCC and Clang builds still use the runtime's long division, since a 128-bit quotient under those compilers would call a support routine. The integer program's output has the same digest on all four compilers before and after the change. The portable helper mode still uses the runtime's own multiply and divide routines.


development tree

Wide Integers: cintc Compiles I128 to I1024, and 44 Boundary Tables Agree with the Reference

cintc.types
I128 I256 I512 I1024
cintc.tables
agree 44/56, 11264 records
cintc.wide-programs
agree 8/51
cintc.c-compilers
gcc-13.3.0 clang-18.1.3
cintc.refused
U128 U256 U512, reductions, dot, kernels, wide shift counts
runtime.types
I128 I256 I512 I1024 U128 U256 U512
runtime.vs-reference
agree 230541/230541, 50 kinds
runtime.compilers
gcc-13.3.0 clang-18.1.3 msvc-19.44 apple-clang-21.0.0

cintc now compiles and runs I128, I256, I512 and I1024. Its programs, built by GCC 13.3.0 and Clang 18.1.3, agree with the reference on 11,264 records in 44 boundary tables: addition, subtraction and multiplication in their checked, wrapping and saturating forms, and checked division and remainder. They also agree on 8 of the 51 wide conformance programs.

cintc compiles wide scalars, locals, parameters and results, arrays, struct fields, module-level structs and views. The operators in their checked, wrapping and saturating forms, comparisons, conversions with as and as%, printing and the scalar built-ins compile to calls to the runtime's helpers. Among the forms cintc still refuses with C9102 are the unsigned types U128 to U512, reductions, dot and kernels over wide elements, and wide shift counts. The 12 shift tables and 43 of the wide programs use such forms and are not compiled yet.

The runtime now has the same helpers for U128, U256 and U512 as for the signed types, and new helpers for rotations of the unsigned types, uabs of I128 to I512 and mul_full of U64 to U256. They convert between any two of the seven wide types and between each of them and I8 to U64. The wide helpers, signed and unsigned, agree with the reference on all 230,541 test cases over 50 kinds of operation under GCC 13.3.0, Clang 18.1.3, MSVC 19.44 and Apple Clang 21.0.0, at two optimization levels and in both helper modes.


development tree

Performance: Orbit Benchmark Runs at 2.91x to 5.14x the Time of Double

orbit-1e8.vs-double
2.91x to 5.14x
orbit-1e8.vs-double.2026-10-08
3.93x to 6.88x
orbit-1e8.allowance
8x
orbit-1e8.runs
11, median
orbit-1e8.integer-digest
same on 4 compilers

The orbit benchmark now runs in 2.91x the time of the same integrator in double under Apple Clang on the M4, 3.49x under GCC, 3.74x under Clang and 5.14x under MSVC. On 2026-10-08 the figures were 4.11x under Apple Clang, 4.36x under GCC, 3.93x under Clang and 6.88x under MSVC. The program, from the orbit paper, steps an orbit 108 times in checked fixed-point integers. Each ratio is cint's median time over 11 runs divided by the double build's median time, on the same machines and compilers as on 2026-10-08, and each is under the allowance of 8x.

The runtime's integer square root now starts from a 768-entry table of roots and takes two Newton steps, and in the built-in helper mode the C compiler inlines the fast path of cint's built-in functions, such as isqrt and muldiv, at every call site. In paired runs on 2026-10-09 against the tree just before these two changes, cint's time fell 24.4% under MSVC, 21.2% under Apple Clang, 18.5% under GCC and 1.9% under Clang. The integer program's output has the same digest on all four compilers.


development tree

Fixed Point: The Reference Runs Q Types from 8 to 64 Bits, with 47 New Conformance Cases

reference.types
Q<i>.<f>, storage 8 to 64 bits
reference.forms
values constants module-state struct-fields arrays views kernels
conformance.fixed.cases
47: 23 values, 14 faults, 10 compile errors
cintc.fixed-point
refused, C9102

The reference sets the expected output of 47 new conformance cases for the fixed-point types Q<i>.<f>: 23 end in a value, 14 in a fault and 10 in a compile error. It now runs these types, stored in 8 to 64 bits, as values, constants, module state, struct fields, elements of arrays and views, and kernel parameters. It reads fraction literals and round clauses, rounds a reduction or dot once, and prints a value as its shortest exact decimal.

cintc stops with C9102 at the first fixed-point type or fraction literal: it does not compile fixed point yet.


development tree

Wide Integers: Runtime Helpers for I128 to I1024 Agree with the Reference on 126,423 Cases

runtime.types
I128 I256 I512 I1024
runtime.vs-reference
agree 126423/126423, 47 operations
runtime.compilers
gcc-13.3.0 clang-18.1.3 msvc-19.44 apple-clang-21.0.0
runtime.builds
16: 4 compilers, 2 optimization levels, 2 helper modes
reference.types
I128 I256 I512 I1024 U128 U256 U512
reference.wide-elements
arrays views slices struct-fields arenas pools kernels
conformance.wide.cases
51, 28 unsigned
conformance.wide.tables
98 tables, 25088 records, 42 unsigned
cintc.wide-types
refused, C9102

New checked, wrapping and saturating helpers in cint's C runtime for I128, I256, I512 and I1024 agree with the reference on all 126,423 test cases under GCC 13.3.0, Clang 18.1.3, MSVC 19.44 and Apple Clang 21.0.0. Each compiler builds the helpers at two optimization levels, once with its own built-ins and once without. The cases test 47 operations, from addition, division and shifts to the rounding and square-root built-ins and conversions among all widths, at each width's boundaries and on seeded random values. A case that faults writes the same fault record as the reference, including the exact result.

The reference now runs I128 to I1024 as elements of arrays, views, slices, struct array fields, arenas and pools, as kernel parameters and in reductions, where the v0.1.1 reference refused any array of these types. It also runs the unsigned types U128, U256 and U512. The reference sets the expected output of 51 new conformance programs and 98 boundary tables holding 25,088 records, including 28 programs and 42 tables for the unsigned types.

cintc stops with C9102 at the first wide type: it does not compile I128 to I1024 or U128 to U512 yet, and no compiled program reaches these helpers. The reference does not compute a dot product over I1024 elements yet.


development tree

Performance: Within 1.10x of Hand-Checked C in All Eight Measurements

builds
msvc-19.44 gcc-13.3.0 clang-18.1.3 apple-clang-21.0.0, each -O2
vs-checked-c.within-1.10x
8/8
vs-checked-c.at-or-below-1.00x
5/8
vs-rust.at-or-below-1.00x
1/8
gcc.table.vs-2026-10-08
0.483x
clang.table.vs-2026-10-08
0.500x
timings.valid
8/8
agreement.checks
agree 24/24

cint is within 1.10x of hand-checked C in all eight measurements, up from seven, now that the two runtime changes projected in the 2026-10-08 performance entry are timed on that entry's four builds. The table loop under GCC and Clang runs in half its earlier time: 200,039 ns against 414,464 ns under GCC 13.3.0, and 201,873 ns against 403,415 ns under Clang 18.1.3 (medians). On both compilers, it now measures 1.010x Rust's time, down from about 2.0x.

Both projections held. The GCC ledger loop, projected at about 1.08x hand-checked C, measured 1.021x, down from 1.179x. The same loop measured 0.938x Rust's time, down from 1.175x, after the second change brought it to Rust's instruction count.

cint builds each loop with cint build's release settings, the same compiler builds the hand-checked C with the same flags, and the Rust versions use checked_* arithmetic (1.98.0 on Windows, 1.99.0 on Linux, 1.97.1 on macOS). Each variant has 110 samples, timed on the 2026-10-08 machines with the same compilers and loops. No CI job ran on a machine while it was timed, and all 24 agreement checks matched the reference.

cint's median time divided by the other program's, per toolchain and loop, after both runtime changes
Build EnvironmentLedger vs CTable vs CLedger vs RustTable vs Rust
MSVC 19.44, Windows 11, Ryzen 9 5900X0.984x0.812x1.280x1.777x
GCC 13.3.0, Ubuntu 24.04, Ryzen 9 5900X1.021x0.508x0.938x1.010x
Clang 18.1.3, Ubuntu 24.04, Ryzen 9 5900X1.070x0.501x1.003x1.010x
Apple Clang 21.0.0, macOS 27, Apple M40.914x1.034x1.020x1.033x

Two measurements that were at or below 1.00x on 2026-10-08 are now above it, against both C and Rust. Under Clang, the ledger loop rose from 1.000x to 1.070x hand-checked C and from 0.917x to 1.003x Rust: cint's time grew 1.5%, while the C and Rust builds ran 5.1% and 7.1% faster than on 2026-10-08 with the same compilers. On the M4, the table loop rose from 0.999x to 1.034x hand-checked C and from 1.000x to 1.033x Rust, and cint's time grew 3.4%. Under MSVC, the ledger and table loops still measure 1.280x and 1.777x Rust's time.


development tree

GCC 16 Performance Update: Ledger Loop Outperforms Rust

machine
intel-core-i7-8700K fedora-linux-44
builds
gcc-16.2.1 clang-22.1.8 rustc-1.96.1, each -O2
gcc.ledger.vs-checked-c
0.998x
gcc.ledger.vs-rust
0.927x
vs-rust.at-or-below-1.00x
3/4
vs-checked-c.within-1.10x
3/4
timings.valid
8/8
agreement.checks
agree 24/24

The two runtime changes projected in the 2026-10-08 performance entry are now timed on a second machine: an Intel Core i7-8700K running Fedora Linux 44, with GCC 16.2.1, Clang 22.1.8 and Rust 1.96.1. After both changes, cint's ledger loop under GCC runs in 0.927x Rust's time (1,058,061 ns against 1,141,463 ns, median) and matches hand-checked C at 0.998x (1,060,602 ns).

The benchmark method matches the earlier runs: cint built with cint build's release settings (-O2, built-in overflow helpers, fuel metering off), hand-checked C built by the same compiler with the same flags and its overflow builtins, and Rust with checked_* arithmetic and overflow checks on at opt-level=2. Each ratio is cint's median time over 110 samples divided by the other program's. All eight timings were valid on the first run, and all 24 agreement checks matched the reference.

cint's median time divided by the other program's on the second machine, after the first runtime change and after both
Loop and Compilervs C, First Changevs C, Both Changesvs Rust, First Changevs Rust, Both Changes
Ledger Loop, GCC 16.2.11.096x0.998x1.021x0.927x
Table Accumulation, GCC 16.2.11.413x1.176x1.000x0.830x
Ledger Loop, Clang 22.1.81.003x1.018x1.032x1.045x
Table Accumulation, Clang 22.1.81.000x1.000x1.000x0.996x

After both changes, cint outperforms Rust in three of the four configurations: the GCC ledger loop (0.927x), GCC table accumulation (0.830x) and Clang table accumulation (0.996x). The Clang ledger loop trails Rust by 4.5% (1.045x).

Against hand-checked C, cint matches or beats it on the GCC ledger loop (0.998x) and Clang table accumulation (1.000x), and stays within 1.10x on the Clang ledger loop (1.018x). The one exception is GCC table accumulation at 1.176x, down from 1.413x after the first change. There, GCC 16 compiles the hand-checked C into markedly faster code (322,533 ns, median) than everything else measured: cint (379,384 ns), Rust (456,851 ns) and the same C built by Clang (455,062 ns).

These measurements complement the 2026-10-08 runs. Its figures for GCC 13.3, Clang 18.1, MSVC and Apple Clang stand as measured, and its two GCC 13.3 projections remain untimed on that machine.


development tree

Workbench: Differential Debugging and Execution Replay

builds
gcc-13 clang-18 msvc-19.44 apple-clang-21, each -O0 and -O2
sessions.matching
3/3 in 8/8 builds
debug.diff
agree 3/3
debug.replay
ok 9/9
receipts.same-in-every-build
12/12

The interactive workbench gains three diagnostic commands. cint explain shows what the compiler knows about a function without running it, including every operation that can fault, with its source position and fault code. cint debug diff runs a saved case as compiled C and on the interpreter, then reports that the two agree or names the first point where they part. cint debug replay runs a recording again to check that it reproduces, and cint debug locate replays a recording straight to its first fault.

Three scripted sessions were run on GCC 13.3.0, Clang 18.1.3, MSVC 19.44 and Apple Clang 21.0.0, each at -O0 and -O2. In all eight builds, every session matched its transcript, all three diffs agreed, all nine replays reproduced, and all twelve receipts had the same identity. The workbench is 13,455 lines of C. Its GPU commands stay off until cint build --lib can build a GPU library.


development tree

Interpreter Engine & State Checkpointing

conformance.programs
513
conformance.records
1842927
conformance.disagree
0
executors
compiled-c interpreter
builds
24 each
case.saved
msvc-19.44 x86-64-windows
case.replayed
ok 4/4

cint programs can now run directly on the interpreter, cint-interp, with no C compiler involved. The interpreter executes the same semantic IR that the C backend compiles, so a program means the same thing in both modes. On the conformance suite, 513 programs and 1,842,927 records, the interpreter and the compiled C both matched the reference on every record, in 24 builds each across GCC, Clang, MSVC and Apple Clang, with and without sanitizers. The sanitizers reported nothing.

Checkpointing arrived with it. A program's state can be saved, inspected and restored exactly, across operating systems and processor architectures. A case saved on Windows with MSVC replayed with the same outcome and the same receipt on Linux under GCC and Clang and on an Apple M4 under Apple Clang. An edit that changes only whitespace leaves a checkpoint valid. The interpreter is 6,999 lines of C.


development tree

Performance: Matching or Beating Hand-Checked C in Six of Eight Measurements

vs-checked-c.at-or-below-1.00x
6/8
vs-checked-c.within-1.10x
7/8
vs-rust.at-or-below-1.00x
2/8
orbit-1e8.vs-double
3.93x to 6.88x
compiler.self-build.vs-before-v0.1.0
0.53x to 1.13x

The benchmarks time two loops from a ledger program: checked addition and subtraction in sequence, and checked accumulation over a 256-entry table, 1,000,000 iterations each. cint builds them the way cint build builds any program (-O2, built-in overflow helpers, fuel metering off). The C versions check overflow by hand with __builtin_*_overflow where the compiler has it and are built by the same compiler with the same flags. The Rust versions use checked_* arithmetic with overflow checks on, at opt-level=2. Each ratio is cint's median time over 110 samples divided by the other program's, so below 1.00x means cint is faster. Every variant was checked against the reference before it was timed.

cint's median time divided by the other program's, per toolchain and loop
Build EnvironmentLedger vs CTable vs CLedger vs RustTable vs Rust
MSVC 19.44, Windows 11, Ryzen 9 5900X0.951x0.789x1.238x1.715x
GCC 13.3.0, Ubuntu 24.04, Ryzen 9 5900X1.179x1.012x1.175x2.032x
Clang 18.1.3, Ubuntu 24.04, Ryzen 9 5900X1.000x0.982x0.917x2.012x
Apple Clang 21.0.0, macOS 27, Apple M40.948x0.999x1.059x1.000x

Against hand-checked C, cint is as fast or faster in six of the eight measurements and within 1.10x in seven. The one exception is the ledger loop under GCC, at 1.179x. A change already in the development tree is projected to bring it to about 1.08x; the projection comes from instruction counts and has not been timed.

Against Rust, cint is faster on the ledger loop under Clang, at 0.917x, and ties on the M4's table loop, at 1.000x. Rust leads in the other six, by as much as 2.03x on the table loop under MSVC, GCC and Clang, where the hand-checked C trails Rust by about 2x as well. On the GCC ledger loop, a second change in the tree brings cint to 19 instructions per iteration, the same as Rust and one fewer than the C. Its speed is projected too and has not been timed.

The orbit paper's program steps an orbit 108 times in checked fixed-point integers. In the paper, built with the compiler behind this site's C and timed in single runs, it was 25 to 44 times slower than the same integrator in double. In the development tree, its median over 11 runs is 3.93x the double build's time on Clang, 4.11x on the M4, 4.36x on GCC and 6.88x on MSVC, inside an allowance of 8x. The double build does not agree with itself: built by GCC with and without fused multiply-add, it ends 93 cm apart, while the integer version reaches the same digest on all four compilers.

The self-hosted build, cintc compiling itself, now takes 0.53x its time from the day before v0.1.0 on GCC, 0.68x on Clang and 0.93x on the M4. On MSVC it takes 1.13x, inside an allowance of 1.25x. Each figure comes from one machine and one toolchain.


development tree

NVIDIA PTX Code Generation & CUDA Execution

backend
gpu-cuda
device
nvidia-rtx-3090-ti
builds
msvc-19.44 gcc-13 clang-18, blocks 32 and 256
conformance.programs
504
conformance.records
1840878
conformance.disagree
0
conformance.refused
8

Kernels written in cint now run natively on NVIDIA GPUs and match the CPU backend exactly: the same output buffers, reduction values, fuel consumed, dispatch counts and fault records. cintc, itself written in cint, generates the PTX.

On an RTX 3090 Ti, the GPU backend ran the conformance suite 24 times, from MSVC, GCC and Clang builds at block sizes 32 and 256, and matched the reference on all 1,840,878 records it compared. It refuses eight cases that use operators the CUDA backend does not lower: saturating add, subtract and multiply, division and remainder, and the three shifts. Those programs are turned away outright rather than run with different results. From Python, a stencil and a matrix multiply written as cint kernels run on the GPU over NumPy and CuPy arrays and PyTorch tensors, on Windows and under WSL2.

releases

Tagged public releases, newest first. Full conformance counts and source identities are on the releases page.


release

v0.2.8: Constant-Expression Array Extents, Lean Calling Convention, and SPEC-09P.4

release
v0.2.8 (takes in 0.2.5, 0.2.6, 0.2.7)
compiler.source-identity
d4dd6f2ae80e2c689897c82ad88ecae7e7ab4a38664806e7f9325801869bc7a9
conformance.programs
942
conformance.records
1,868,185
specification.editions
SPEC-09P.4

v0.2.8, taking in 0.2.5, 0.2.6, and 0.2.7, accepts any I64 constant expression as a module-level array extent at every rank, including constants declared after the array. cintc preserves every result, fault record, fuel count, and digest of 0.2.4 while emitting lean checked add, subtract, multiply, and negate helpers in rt/cint_rt_lean.h for I8 to I64 and U8 to U64, along with widening as and constant-count right shifts without a checked helper. A call between two functions of a module's lean set passes the fuel count and remaining call depth as parameters and return values, writing to the context only on a fault. The reference agrees with every frozen expectation across the conformance suite's 942 programs and 1,868,185 records, and the release publishes SPEC-09P.4. See the release notes.


release

v0.2.4: Cached Runs, Byte Strings, Array Equality, and Catch Statements

release
v0.2.4
compiler.source-identity
e69970d585520c05671bf811da3443c6bd792e291d21effaa3e06b5d2bd83954
conformance.programs
935
conformance.records
1,868,178
specification.editions
SPEC-03P.3 SPEC-04P.4 SPEC-06P.3 SPEC-09P.3 GLOSSARY-P.4

cint run now keeps the built executable for repeated runs and takes its capability grants from the program's requires list when no --grant flag is given. The language adds byte-string literals b"abc", equal(a, b) on arrays and views, and the catch statement for E!void calls, alongside cint build --app and --frame-arena N. Five updated specification editions are published. See the release notes.


release

v0.2.3: Standard Library Services, Capability Grants, Fixed Point in cintc, and C/C++ Libraries

release
v0.2.3 (takes in 0.2.1, 0.2.2)
compiler.source-identity
337a2fab20860418710421049b908beb92bb55108c674662be321e0f8ccec932
conformance.cpu-c17
732 programs, 1,867,975 records, 0 disagreements
conformance.cpu-sir-interp
1,868,166 records, 0 disagreements
specification.editions
SPEC-01P.3 SPEC-02P.2 SPEC-03P.2 SPEC-04P.3 SPEC-06P.2 SPEC-09P.2 GLOSSARY-P.3

v0.2.3 adds the standard library services fs and console, capability grants, program arguments, extern host functions, and cint build --lib. cintc now compiles fixed-point types Q<i>.<f> stored in 8 to 128 bits, the saturating conversion as|, fixed-point _result forms, module-level arrays up to 65,536 elements, and --width-report. Seven updated specification editions are published. See the release notes.


release

v0.2.0: Debugging Tools and Wide Integers

cint debug, cint explain, cint workbench, cint repl and the interpreter cint interp are now in a release, and cintc compiles I128 to I1024 and U128 to U512. On its two CPU executors cintc agrees with the reference on all 1,868,066 records of 823 conformance cases. Nine new specification editions state the language. See the release notes.


release

v0.1.1: Maintenance Release

Released the same day as v0.1.0. The cint command now counts every runtime source file in a receipt's runtime identity; v0.1.0 counted 8 of the 14. The Python bridge is included, so tutorial 04 and the matrix example run. The compiler is unchanged. See the release notes.


release

v0.1.0: Initial Public Release

release
v0.1.0
conformance.cases
861
conformance.compared
783
specification.editions
SPEC-00P.1 SPEC-01P.1 SPEC-04P.1

The first public release includes cintc, a self-hosting compiler written in cint that emits C17 and rebuilds itself byte for byte; the seed compiler in C that bootstraps it; the runtime; the cint command; the reference implementation, cint_ref; and a conformance suite of 861 cases. cintc agrees with the reference on all 783 cases it is compared on.

The release published the first specification editions, SPEC-00P.1, SPEC-01P.1 and SPEC-04P.1, with a glossary and references. Once published, an edition never changes and keeps its address. See the release notes.