Davis Geometric
← Bee’s notebook

Measured performance · 32-coordinate benchmark

About one-fifth the time—with the same result.

Davis Topological Processor / Software prototype / Recorded experiments

In two recorded runs, my virtual Davis Topological Processor’s structured method took about one-fifth the time of the general matrix version for a tested 32-coordinate operation: 5.17–5.61× faster. Both methods returned the same checked result, with zero error against the fixture’s expected answer.

The job was simple to describe: take 32 numbers, rearrange them, and reverse some signs. The general method represented the operation as a matrix. The structured method stored which number goes where and which signs change. Same task. Same result. Less time.

Figure 1 / Measured interpreter performance

Same task. About one-fifth the time.

Start with 32 coordinates: the structured method took 32.44 microseconds where the general matrix method took 182.11 in the first run. Switch to the second run to see the repeat measurement. Then change the operation or size—the advantage depends on the workload, and the two-coordinate closed loop was slower.

General matrix 182.11 µs
Structured map 32.44 µs

Striped segment: time avoided relative to the general method.

5.17–5.61× faster for the tested 32-coordinate signed transport.

Speed / selected run82.2%less elapsed time149.68 µs saved in this recorded run.
Representation / same input task87.1%fewer input bytes4,490 → 577 bytes of serialized input JSON.
Result / reference checkSame answerMaximum reference error across both runs: general 0; structured 0.

Input size counts the serialized program and state sent to the interpreter. It does not measure RAM, network traffic, disk space or energy use.

Bar length is elapsed time, not work completed. Each value is the median of 11 samples of 256 warm executions, following 32 warmups. Parsing, validation and result handling are included; input construction, HTTP and GIGI persistence are excluded. Two observed runs, not confidence intervals or a production-latency claim. Download the timing records.

That is a measured speed gain in this workload. It is what makes me excited to investigate how much work a representation can save. The next example asks a different question: can we obtain the final effect of a huge repeated journey without replaying it? Its operation counts are recorded; the billion-circuit example has not been timed.

A separate result: three billion steps—or 46 compositions.

Suppose you want the final effect of carrying something around a three-sided route on a globe 1,000,000,001 times. A conventional matrix calculation that replays the route arc by arc would combine the next arc’s transformation with the running answer, then do it again: 3,000,000,003 map compositions. My virtual Davis Topological Processor built the same final map in 46 compositions.

That is the comparison I want to make concrete. Literal replay repeats the journey; this implementation reuses what the journey does. It combines the three arcs into one transformation, then builds larger repetitions by doubling and combining saved maps. Three compositions build the route, and forty-three produce the requested repetition count. Three final applications check the result on a complete basis. Recorded run

Same final map. Two ways to calculate it.

Conventional matrix replay
One composition for every arc
3,000,000,003map compositions in the hypothetical expanded calculation
DTP’s reusable map
Build once, combine powers
46map compositions recorded by the prototype: 3 + 43

Either final map can then be checked with three applications to a complete basis. The replay count is derived from the route; that expanded calculation was not executed or timed. These are high-level map operations with different per-operation costs, not clock cycles or a measured speedup.

An optimized conventional implementation can use the same shortcut. This compares arc-by-arc replay with algebraic reuse. It does not establish an advantage over every CPU or GPU algorithm.

This is a working software prototype on conventional hardware. The billion-circuit experiment establishes avoided computation; it has no elapsed-time or energy measurement yet. I am excited because the complete geometric action is now something the processor can build, check, save and reuse. Let me show you what that means with a globe.

Figure 2 / The geometry behind the computation

Come back to the same place. Face a different way.

Carry two arrows around this triangle on a globe. Keep them tangent to the surface and move them without locally turning them. The route closes, but the arrows turn. Try reversing the route or retracing one side.

The starting point on a globe with two tangent arrows, and a triangular route along three quarter great circles.

Same point after one circuit; a quarter-turn in the directions carried.

Arrow AArrow BPosition from center
Position
[1, 0, 0]
Arrow A
[0, 0, 1]
Arrow B
[0, −1, 0]

The two arrows show independent directions along the surface. Checking both reveals the whole tangent transformation.

Unit sphere; specified quarter great-circle arcs and Levi-Civita parallel transport. Smooth motion illustrates the declared geometry; exact endpoints are checked against saved engine results. No live GIGI service is running in this page.

Why the arrow turns

Imagine drawing a triangle on a globe. Start on the equator, travel a quarter of the way around it, go up to the North Pole, then return to your starting point along another meridian. Each side is a quarter of a great circle.

Now carry a little arrow along the surface. At every step, keep it tangent to the globe and follow the surface's rule for moving it without locally turning it. This rule is called parallel transport. When you return to the beginning, the arrow has turned through a right angle relative to its original direction. You are back where you started. The direction you carried has changed.

Reverse the triangular journey and the turn reverses. Go out along one arc and retrace it, and the arrow returns unchanged. The accumulated transformation around a closed journey is called holonomy. The sphere, the route and the transport rule are all specified in this experiment. Background on parallel transport and holonomy

This is one reason I keep coming back to the globe. A point tells you where you are. To understand what happened to something you carried, you also need the journey and the rule for carrying it.

The transformation becomes something we can reuse

For our particular triangle, the complete return map has a wonderfully small description:

(x, y, z) → (x, −z, y).

Keep the first coordinate. Take the third coordinate, reverse its sign, and put it second. Move the old second coordinate into the third position. That is the whole action. The starting position stays fixed, while the two independent directions along its tangent plane rotate.

The processor represents this directly as a signed permutation: which coordinate goes where, and whether its sign changes. These particular maps need no approximation when they compose. A value merely close to +1 or −1 does not qualify; the processor refuses it rather than quietly rounding it into the exact domain.

Once we have the map for one circuit, we can reuse it. Two circuits compose that map with itself. Four compose the two-circuit map with itself. Then eight, sixteen, thirty-two, and so on. To request twenty-one circuits, combine the maps for sixteen, four and one.

This is the established method of binary exponentiation, also called repeated squaring. Its number of compositions grows logarithmically with the repetition count. Signed permutations and repeated squaring are existing mathematics; the work here is implementing them together in an inspectable geometric processor backed by GIGI. An equally informed CPU or GPU program can use the same shortcut. NIST's explanation of repeated squaring

Figure 3 / Hypothetical replay versus recorded reuse

Keep the transformation. Skip the repeated journey.

Choose how many times to go around. Compare a conventional matrix calculation that composes one arc at a time with the compact map compositions actually recorded by the virtual processor. Both describe the same complete final transformation.

3,000,000,003map compositions for arc-by-arc matrix replay
Hypothetical · not executed or timed
46compact map compositions recorded by DTP
Plus 3 applications to check the result
Work avoided / final-map query2,999,999,957fewer map compositions than literal replayHypothetical replay count minus recorded route-building and power compositions. Applications, storage and validation are separate costs; this is not an elapsed-time saving.

One map, kept intact

A quarter-turn exchanges two tangent directions, reversing one sign.

One circuit · +90°

Arrow AArrow B

How the work is counted

Build the three-edge route once. Combine its powers by repeated doubling, then reuse the complete map.

3 to build the route + 43 to power it; then 3 applications to check a complete basis.

Repeated A → B → C edges describe the literal route. They are not a record of billions of executed steps.

These are mathematical map operations, not processor cycles. Validation, allocation and storage remain additional work. This final-map query does not produce every intermediate state. A conventional CPU or GPU can use the same algebraic shortcut. Dashed axes mark the initial tangent directions.

For the billion-and-one case, the accounting is concrete: three compositions build the route, forty-three build its requested power, and three applications check the resulting map on a complete basis. Each composition still processes the coordinate indices and signs. Validation, representation, allocation and storage also take work.

Why check three directions? Because one plausible answer can hide a wrong transformation. A separate review of the earlier sphere experiment found exactly that trap: reversing the middle edge could leave one selected final arrow looking correct, even though the route and whole map were wrong. Checking the position and both independent tangent directions exposes the mistake. For a linear map, those three basis directions determine its entire action. Sphere review

The reusable answer therefore contains more than a final angle or one successful example. It tells us what happens to any vector in the declared coordinate space. We also retain the input program and instruction records. We do not materialize every intermediate arc state, and the final map alone cannot tell you how many times you went around: four of these circuits return the map to the identity.

Save it, restart, and check the whole result

GIGI makes this more than a calculation that disappears when the process ends. It stores the program, registers and instruction history. In all eight live cases, the process was stopped after saving the powered map, restarted, and then resumed to produce the checked outputs. The cases ranged from zero circuits through 4,294,967,295. A subsequent reliability update also blocks reads and further steps after a persistence error until the store is successfully reopened and its recovered instruction position checked. Three injected adapter-boundary failures passed exact recovery checks. Lower-level torn-write, device-failure and power-loss testing remain separate work.

There were smaller, useful wins along the way. Replacing temporary heap allocations with bounded scratch buffers removed exactly 3 + 3 × the number of edges allocation requests from compact loop composition, while preserving outputs and diagnostics. Profiling the small loop that had been slower pointed toward the work of representing and moving the data. That gave us a concrete place to improve the implementation. Experiment journal

The updated processor suite passes 54 tests, including 576 comparisons with literal iteration across dimensions and repetition counts. Deliberately removing squaring, exact-sign validation or route-closure checks makes the relevant tests fail. The original prototype walkthrough passed 96 combinations of case, stage and screen width. This notebook adds 204 interface checks across desktop, tablet and phone widths, including a 320-pixel touch layout. The latest repeated-circuit experiment is verified by the development team; its separate review is still pending.

What excites me is seeing a design idea become something I can inspect. The idea behind DHOOM—that structure carries information— has been a motivation for this work. Here, a precise representation lets the processor retain the complete final action and avoid expanding a huge repeated computation.

I want to keep finding the conditions under which that is possible—and make those conditions part of the machine's behavior. Let the structure carry the computation.

Loading the recorded data for the interactive figures…

Evidence, methods and remaining engineering work

The geometric experiment is a software prototype. G02 retains a complete final signed map, not an expanded per-arc history. Its eight recorded repetition counts are 0, 1, 2, 3, 4, 21, 1,000,000,001 and 4,294,967,295. The separate G01 review checked the sphere construction; G02's separate review is pending.

The latest reliability run records 54 processor tests and a root suite of 1,589 passes, zero failures and 22 ignored tests. Earlier build contention and disk-exhaustion failures are retained in the development journal, rather than counted as passes. The R01 adapter guard closes the same-process unsynced replay/cache gap; injected adapter boundaries do not certify torn WAL writes, device flush or power-loss behavior.

The geometric endpoints and work counts are replayed from saved results. Browser motion is an explanatory calculation, not a live processor session or a new timing measurement.