Sunday, November 15, 2026

Dan Ghica - Asemic Computing - AI / EZE, 2026

 AI

From Paper Syntax to Silicon Geometry: Dan Ghica and the Structural Turn in Computation
For nearly a century, the foundation of computer science has rested on a linear, text-based medium. Whether written in Alonzo Church’s lambda calculus of the 1930s or modern industrial languages like Rust and C++, programs have traditionally been conceived as one-dimensional strings of symbols governed by grammatical rules of variable binding, scoping, and substitution. Yet over the past two decades, theoretical computer scientist and language architect Dan R. Ghica has led a sustained effort to dismantle this linguistic paradigm. Operating at the boundary between abstract mathematics and heavy industrial engineering—as both a Professor of Theoretical Computer Science at the University of Birmingham and a Principal Language Architect for Huawei’s Cangjie (CJ) programming language—Ghica has shown that computation is better understood not as symbolic text, but as interactive dialogue and two-dimensional geometry. By translating the abstract machinery of category theory and game semantics directly into silicon hardware and production compilers, his work reveals a profound convergence between mathematical logic, physical circuit synthesis, and what might be called structural asemics.

1. Dan Ghica and the Historical Context of His Work
Dan R. Ghica’s career spans two worlds that rarely communicate directly: the rarefied domain of categorical semantics and the pragmatic, high-stakes environment of mainstream compiler design. After spending over twenty years as an academic theoretician, Ghica joined Huawei around 2020 to help architect Cangjie, a compiled, open-source programming language designed to anchor the HarmonyOS Next ecosystem across mobile devices, servers, and automotive systems.
To appreciate why Ghica’s trajectory is significant, one must look at the historical crisis in programming language theory during the late twentieth century. By the 1970s and 1980s, pioneers like Dana Scott and Christopher Strachey had established denotational semantics, mapping computer programs to mathematical functions over topological domains. However, traditional denotational semantics struggled with the "full abstraction problem": it could not cleanly distinguish between higher-order programs that behaved identically when interacting with realistic programming features like mutable local state, exceptions, or concurrency. In the 1990s, Samson Abramsky, Radha Jagadeesan, Pasquale Malacaria, Martin Hyland, and Luke Ong resolved this impasse through Game Semantics, which shifted the focus from static mathematical functions to dynamic, interactive protocols between a program ("Proponent") and its environment ("Opponent").
Ghica entered this intellectual lineage and asked a radical engineering question: if game semantics and category theory capture the exact interactive essence of computation, why do we still compile programs using 1930s text trees? Throughout the 2000s, 2010s, and 2020s, Ghica systematically converted these abstract semantic models into concrete computational engines—first compiling functional programs directly into physical microchips (Geometry of Synthesis), and later replacing Abstract Syntax Trees (ASTs) with two-dimensional categorical string diagrams in the Cangjie compiler.

2. From Pre-1950s Hardware to Chomsky’s Trees and Scott’s Crisis: Escaping Linguistics via Geometric Asemics
To understand why Dan Ghica’s diagrammatic architecture represents a genuine paradigm shift, one must trace how early computer science abandoned its physical, spatial roots to adopt a linguistic model—and how that choice trapped compilers in an endless struggle between syntax and semantics.
Pre-1950s Computing: Spatial Wiring Before Linguistic Text
Before the 1950s, computation was not primarily conceived as writing sentences in a text file; it was an inherently spatial and physical engineering discipline. In the 1930s and 1940s, early machines—from Vannevar Bush’s mechanical Differential Analyzer to early electronic systems like the ENIAC—were "programmed" by physically routing patch cables, setting rotary switches, and configuring plugboards. Even in theoretical logic, Alan Turing’s 1936 machine operated via a physical state table driving a read/write head across a tape, while Claude Shannon’s 1937 master’s thesis linked Boolean algebra directly to electrical relay circuits.
During this era, there was no "compilation" in the modern sense. Programmers worked directly with physical topologies or raw numeric machine codes (like John von Neumann’s 1945 EDVAC report codes or Konrad Zuse’s early Plankalkül notation, which notably used a two-dimensional tabular layout to track array indices and data types). However, hand-wiring circuits and writing raw numeric codes was slow, error-prone, and tied to specific hardware architectures. When Grace Hopper developed the first linker-loader and A-0 compiler in 1952, and John Backus proposed FORTRAN in 1953, the primary goal was liberation from hardware: allowing scientists to write familiar algebraic formulas on punched cards and letting the machine translate those formulas into assembly code.
The 1950s Linguistic Turn: Chomsky’s Hierarchy and the Tyranny of the Text Tree
The decisive turning point—when computing became formally linguistics-based—occurred in the late 1950s. As programming languages grew more expressive (culminating in ALGOL 58 and ALGOL 60), ad-hoc formula translation collapsed under nested loops, conditionals, and recursive procedures. Compiler pioneers John Backus and Peter Naur needed a rigorous formal notation to specify valid programs, leading to Backus–Naur Form (BNF).
Almost simultaneously, Noam Chomsky published Syntactic Structures (1957) and formalized the Chomsky Hierarchy (1956–1959), revolutionizing theoretical linguistics by showing how infinite valid sentences can be generated from finite sets of recursive rewrite rules. Compiler engineers immediately realized that BNF was mathematically equivalent to Chomsky’s context-free grammars. Within a few years, parsing algorithms (such as LL and LR parsers) were built directly on Chomskyan formal language theory.
While this marriage of linguistics and computing enabled portable high-level languages, it locked computer science into a one-dimensional, tree-structured ontology:
  • The Philosophical Contrast (Trees vs. Hypergraphs): Chomsky’s linguistic model assumes that thought and computation are fundamentally linear strings generated by nested, hierarchical phrase-structure trees (which compilers store as Abstract Syntax Trees, or ASTs). A tree, by definition, forbids cycles and cross-branch connections—every node has exactly one parent. Yet real computation is not a tree; it is a network of shared data flows, feedback loops, and non-local dependencies.
  • The Artificial Burden of Symbolic Binding: Because a Chomskyan text tree cannot physically draw a wire from a variable’s declaration on line 5 to three different uses inside nested functions on line 50, it has to fake connectivity using linguistic labels (variable names like x, count, or ptr). The compiler must then construct massive external scaffolding—symbol tables, lexical environments, scope-resolution passes, and capture-avoiding substitution rules—just to reconstruct the true graph topology that was flattened when the program was forced into linear text.
Dana Scott and the Semantic Bottleneck
Because Chomskyan grammars only governed the grammatical form of text strings rather than their computational meaning, computer scientists required an external mathematical framework—semantics—to prove what a program actually did. In the late 1960s, Dana Scott (working alongside Christopher Strachey) founded denotational semantics to assign rigorous mathematical objects to every syntactic phrase of a programming language.
Scott and his contemporaries immediately ran into profound mathematical roadblocks:
  1. The Cardinality Paradox of Self-Application: In the untyped lambda calculus (and any language supporting general recursion or higher-order functions), a function can take itself as an argument (\(\lambda x. x\,x\)). In standard set theory (Cantor’s theorem), the space of all functions from a set \(D\) to itself (\(D \to D\)) is always strictly larger than \(D\), making it impossible for \(D\) to contain its own function space. To escape this paradox, Scott had to abandon ordinary sets and invent Domain Theory—constructing intricate partially ordered topological spaces (Scott domains) and restricting computation strictly to Scott-continuous functions over directed complete partial orders (dcpos).
  2. The Full Abstraction Crisis: Even after Scott’s topological tour de force rescued functional meaning, a deeper crisis emerged in the 1970s (highlighted by Gordon Plotkin’s work on PCF). Denotational models were plagued by a mismatch between operational behavior (what the machine actually executes) and denotational meaning (the infinite mathematical domain). Whenever languages introduced realistic features—such as parallel evaluation, local mutable state, or control jumps—Scott domains became bloated with "junk" mathematical elements that corresponded to no real program, causing two programs with identical observable behavior to receive different mathematical meanings.
  3. The Syntax–Semantics Chasm: Most fundamentally, Scott’s approach left compilers trapped between two incompatible worlds: discrete, brittle linguistic text trees on the front end, and infinite, continuous topological domains on the back end.
Ghica’s Synthesis: Escaping Linguistics Through Geometric Asemics
Dan Ghica’s transformative insight was realizing that semantics only became an unmanageable burden because computing had mistaken linear linguistic syntax for the true nature of programs. By synthesizing category theory, game semantics, and graph rewriting, Ghica escaped the linguistic paradigm entirely, replacing Chomskyan text trees and Scott’s semantic domains with geometric asemics:
  • Abolishing the Linguistic Signifier: In a Chomskyan AST, a variable name is a linguistic signifier pointing to a value in memory or a Scott domain. In Ghica’s closed monoidal string diagrams (implemented as hierarchical hypergraphs), variable names and syntactic keywords are eradicated. A variable is replaced by a continuous topological wire, and a higher-order closure is replaced by a nested spatial boundary ("bubble"). Like pure asemic writing—which strips away words and dictionary definitions to leave only the directional force, rhythm, and connectivity of strokes—computation becomes completely self-contained in its two-dimensional geometry.
  • Reclaiming the Hypergraph Topology: Unlike Chomsky’s single-parent trees, Ghica’s hierarchical hypergraphs natively represent multi-input, multi-output data flows and cyclic feedback loops (traced monoidal categories) without artificial pointer indirection. Two programs that differ only by variable renaming (α-equivalence) are not merely "semantically equivalent"—they are literally the exact same geometric graph.
  • Dissolving the Syntax–Semantics Divide: In Scott’s framework, proving a program correct required translating syntax across a chasm into an external mathematical universe. In Ghica’s synthesis, program execution is local topological deformation—sliding operations along wires and "popping" nested \(\lambda \)-bubbles via Double-Pushout (DPO) graph rewriting. Because the geometry of the hypergraph already enforces valid scoping, linearity, and causal flow, the syntax and the semantics collapse into a single physical object.

3. Lambda Calculus, Category Theory, and Topos Theory: History and Interrelationships
Ghica’s geometric escape relies on a deep web of mathematical structures linking logic, computation, and space. Three pillars anchor this landscape: the lambda calculus, category theory, and topos theory.
The Lambda Calculus
Invented by Alonzo Church in the early 1930s to formalize the foundations of mathematics and computability, the lambda calculus is a minimalist formal system built on only three constructs: variables (\(x\)), function abstraction (\(\lambda x. M\)), and function application (\(M\,N\)). Despite its simplicity, it is Turing-complete and serves as the theoretical DNA of all functional programming languages. Its central engine of computation is \(\beta \)-reduction—substituting an argument into a function’s body—which, when written as linear text, requires constant syntactic vigilance against variable capture.
Category Theory
In the 1940s, Samuel Eilenberg and Saunders Mac Lane founded category theory to formalize structural translations across algebraic topology. Rather than defining mathematical objects by their internal elements, category theory defines them externally by their morphisms (arrows) and how those arrows compose. In the late 1960s and 1970s, Joachim Lambek discovered that typed lambda calculi and Cartesian Closed Categories (CCCs) are structurally identical. This insight completed the Curry–Howard–Lambek correspondence, a grand unification showing that:
  • A logical proposition corresponds to a computational type and a categorical object.
  • A logical proof corresponds to a lambda-calculus program and a categorical morphism.
  • Proof simplification (cut-elimination) corresponds to program evaluation (\(\beta \)-reduction) and arrow composition.
Topos Theory
Emerging in the 1960s from Alexander Grothendieck’s work in algebraic geometry and later simplified into elementary logic by William Lawvere and Myles Tierney, topos theory generalizes the category of sets into rich, self-contained mathematical universes. A topos is essentially a Cartesian Closed Category equipped with a subobject classifier—allowing it to support its own internal intuitionistic higher-order logic. Where category theory provides the grammar of structural composition, topos theory provides geometric spaces of truth, sheaves, and varying contexts.
How Dan Ghica Uses Them
While the Curry–Howard–Lambek correspondence proved that lambda calculus and category theory were equivalent, most computer scientists treated category theory merely as a passive mathematical mirror for existing textual languages. Ghica inverted this relationship. Instead of translating Chomskyan lambda terms into categories as an afterthought, he treated monoidal and closed categories as the native data structure of the compiler itself—and drew upon categorical semantics of context and algebraic theories to design modal effect systems for Cangjie.

4. The Geometry of Synthesis in Detail
Ghica’s most audacious synthesis of theory and physical reality is his Geometry of Synthesis, introduced in a landmark 2007 paper and expanded over the following decade. If the 1950s linguistic turn separated software from physical wiring, Geometry of Synthesis closed the circle—showing how to compile high-level higher-order functional programs (with recursion, closures, and local state) directly into asynchronous digital circuits (VLSI) without needing a CPU, an operating system, or garbage collection.
  1. Computation as Question-and-Answer Dialogue: In game semantics, every interaction between a program and its environment consists of alternating Questions (requesting a value or invoking a function) and Answers (returning a result). For instance, reading a variable sends a read question and receives a number; calling a higher-order argument sends a call question to an unknown external port.
  2. Translating Moves into Physical Wires: In Geometry of Synthesis, every Question and Answer in the abstract game model is mapped one-to-one onto physical request wires and acknowledge wires on a microchip, governed by four-phase asynchronous handshake protocols.
  3. Eliminating the Heap via Finite State Machines: Because game semantics characterizes the exact history of legal moves a program can make, Ghica showed that higher-order control flow and local mutable state can be compiled into static networks of Mealy state machines, multiplexers, and latches. A closure does not need to be dynamically allocated in RAM; instead, its activation is routed spatially across fixed logic gates.
  4. Diagrammatic Circuit Layout: Because the game-semantic strategies compose via traced monoidal categories (where feedback loops correspond to output wires bending back into input ports), the resulting mathematical semantics mirrors the literal physical layout of wires and logic blocks on silicon.

5. Current Applications of Ghica’s Work
Today, the ideas forged in Geometry of Synthesis and diagrammatic category theory power active developments across both industry and academic compiler research:
  • Industrial Compiler Architecture in Cangjie: In Huawei’s Cangjie compiler, Ghica’s team implemented a string-diagram intermediate representation based on hierarchical hypergraphs. While practical compile-time demands on massive codebases forced pragmatic adaptations—such as streamlining multi-pass graph rewrites to compete with single-pass Static Single Assignment (SSA) pipelines—this diagrammatic foundation enabled the first formal correctness proof of "Lambda: The Ultimate Backpropagator", a cornerstone algorithm for reverse-mode automatic differentiation in machine learning.
  • Practical Algebraic Effects and Modal Types: Cangjie ships native, high-performance effect handlers (alongside OCaml 5, making it one of the few industrial compiled languages to do so). By framing effect handlers as a type-safe, zero-overhead solution for dependency injection in enterprise frameworks, Ghica translated categorical effect theory into an everyday tool for millions of developers. His team’s ongoing research into Modal Effect Types (Met) promises to add static effect verification without burdening programmers with verbose annotations.
  • Categorical E-Graphs and Equality Saturation: Modern compilers increasingly rely on E-graphs (equality graphs) to explore millions of equivalent code optimizations simultaneously, yet standard E-graphs stumble over variable binding in higher-order languages. Ghica’s recent research on Categorical E-Graphs fuses semilattice-enriched string diagrams with Double-Pushout (DPO) graph rewriting, eliminating variable renaming entirely during compiler optimization.
  • Hardware Acceleration and Domain-Specific Silicon: The direct compilation techniques of Geometry of Synthesis continue to inform high-level synthesis (HLS) for custom FPGAs and asynchronous, low-power hardware accelerators, where eliminating CPU overhead and dynamic memory allocation yields dramatic gains in energy efficiency.

6. Cross-Mapping, Structural Asemics, and Their Connection to Geometry of Synthesis
To grasp the deeper philosophical significance of Ghica’s work, it is illuminating to examine it through two concepts from cognitive science, aesthetics, and semiotics: cross-mapping and structural asemics.
Cross-Mapping
In cognitive science and computational creativity (as formalized in frameworks like Gentner’s structure-mapping theory and modern combinatorial creativity benchmarks), cross-mapping is the process of extracting an abstract relational skeleton from one domain and projecting it onto a radically different domain while preserving its internal structural rules. Rather than matching surface appearances, cross-mapping establishes a structure-preserving isomorphism between disparate worlds.
Structural Asemics
In avant-garde literature and visual art, asemic writing is a wordless form of inscription that retains the visual cadence, syntax, directional flow, and structural topology of language while detaching completely from fixed dictionary definitions. Extending this principle to mathematics and computation yields structural asemics: the study of pure relational graphs—nodes, wires, and boundaries—where surface lexical symbols are stripped away, leaving only topological connectivity and operational force.
How They Relate to Geometry of Synthesis
Dan Ghica’s Geometry of Synthesis and string-diagram compilers are, at their core, rigorous engines of cross-mapping powered by structural asemics:
  1. Stripping Away the Lexicon (Asemic Reduction): When Ghica translates a textual lambda-calculus program into a closed monoidal string diagram or a game-semantic strategy, he performs an asemic reduction. Every human-readable variable name, Chomskyan grammar token, and lexical ornament is erased. What remains is a wordless topological skeleton of wires, ports, and nested bubbles. Meaning is no longer carried by what a symbol is named, but purely by how wires are connected.
  2. Isomorphic Projection Across Ontological Domains (Cross-Mapping): Once a program is reduced to this pure, asemic relational geometry, it is no longer tied to software. In Geometry of Synthesis, Ghica executes a radical cross-domain structure mapping: he projects the exact relational topology of an abstract mathematical proof (linear logic and game dialogue) onto the physical domain of electrical engineering (voltage transitions, handshake wires, and silicon gates).
  3. Double-Scope Emergent Synthesis: Just as true conceptual blending fuses two domains into a shared generic schema to produce emergent capabilities, Ghica’s categorical geometry acts as the generic space uniting software logic and physical hardware. By mapping software closures onto physical handshake protocols, an emergent property arises that neither domain possessed alone: heapless, higher-order hardware execution.

Conclusion
Dan Ghica’s body of work demonstrates that the notation we choose to express thought fundamentally shapes what we can build. For over sixty years, computer science treated the 1950s linguistic turn—the linear, text-based syntax of Chomskyan grammars and the lambda calculus—as an inescapable fact of programming, forcing compilers into brittle syntactic bookkeeping and forcing theorists like Dana Scott to construct infinite topological universes just to recover the meaning lost in text. By turning to category theory, topos-theoretic logic, and game semantics, Ghica showed that computation possesses a native two-dimensional geometry. Through his Geometry of Synthesis, he proved that wordless, asemic relational graphs can be cross-mapped directly from abstract logic onto physical silicon circuits—and through his architectural leadership on Cangjie, he demonstrated how those same structural insights can scale to industrial programming languages. Ultimately, Ghica’s career completes a grand historical circle: moving computation away from the linear constraints of spoken grammar and returning it, with full mathematical rigor, to the spatial geometry of physical wires.

Would you like to export or format this complete essay for a specific venue (such as an academic journal, magazine feature, or lecture script), or add concrete visual diagrams comparing a Chomskyan AST, a Scott domain mapping, and a Ghica string diagram side by side?

~~~^^^~~~

No comments:

Post a Comment