Blueprint: blog.tini
Substrate Architecture Blog
Engineering dispatches, deep-dives into 4-byte framing, zero-OOP procedural VM execution, and bare-metal C runtime steppers.
Building Polyglot Systems with Codex & Nexus: The Zero-OOP Substrate
Luis Espinoza (Codex Architect)
•
August 26, 2026
•
#Architecture
#C99
#Procedural
Codex separates execution into lightweight stepper frames while Nexus handles URI resolution and capability declarations. Together, they allow applications to run on compiled bare-metal C or native PHP seamlessly without rewriting application logic.
/* In-Process Tier 1 Frame Header Invariant */
typedef struct {
uint32_t size; /* Fixed 12-byte ABI frame boundary */
uint32_t next; /* Linear offset into zero-copy ring */
uint32_t flags; /* Execution capabilities & permissions */
} CX_Context_Tier1;
By eradicating object-oriented inheritance trees and heap allocations, cross-language dispatch between PHP and C completes in zero serialization time at raw hardware wire speeds.
Zero-Copy Trampolining with JumpGate FFI & CX_FlatTable[65536]
System Engineering Team
•
August 25, 2026
•
#FFI
#Performance
#ZeroCopy
How does JumpGate achieve 0.002 microsecond dispatch times? By registering function closures directly into C's global CX_FlatTable array indexed by monotonic slot tokens.
// Direct O(1) Memory Substrate Trampoline
int status = cartridge->jump_table.dispatch(server, cartridge, &req, resp_buf, max_resp_len, dom);
if (status != 404) {
LOG_REQ_AND_RETURN(status, cartridge->name);
}
This eliminates CGI process spawning, socket handshakes, and JSON marshaling completely.