ABOLISHING THE MEMORY-DISK DUALITY.
Engine Lang is an open, unowned systems programming language designed to unify persistent memory (Single-Level Store), compile-time mathematical proofs (Z3 SMT), and distributed causal mesh replication into a single compilation unit.
@TenantGuard) ensures complete data sovereignty and zero vendor lock-in.
type Slug = Text where len(self) >= 3 && len(self) <= 80;
type Email = Text where contains(self, "@");
type ViewCount = Int where self >= 0;
// Single-Level Store: Hardware-Direct NVRAM Persistence
@persistent
entity Post {
id: UUID,
title: NonEmptyText,
slug: Slug,
views: ViewCount,
embedding: Vector[1536],
invariant { len(title) > 0 }
}
// Native Causal Pipeline & Vector Cosine Match
fn recommend_posts(query_vec: Vector[1536]) {
Post::all()
|> filter(|p| p.views > 100)
|> sort_by(|p| p.embedding <=> query_vec)
|> take(5);
}
$ docker compose up -d
[+] Running 2/2
✔ Network engine-genesis-net Created
✔ Container engine-genesis-node Started (healthy)
# Perform Compile-Time Z3 Formal Verification
$ docker exec engine-genesis-node enginec check 04_causal_blog.eng
✅ Grammar: Deterministic LL(1) parse succeeded
[SMT-PROVEN] Refinement type 'Slug' verified
[SMT-PROVEN] Refinement type 'Email' verified
[SMT-PROVEN] Entity invariant for '@persistent Post' verified
✨ Formal Verification Succeeded: 0 runtime panics possible.
# Inspect Single-Level Store Superblock
$ docker exec engine-genesis-node enginec inspect /app/data/engine.db
Container Magic: 0x454E474E ('ENG')
Page Size: 4096 bytes (HugePage: 2 MiB)
CRC-64/NVME: 0x0B3270B44B4A0AA6 [VALID]
Crash Consistency: VERIFIED (Hardware CLWB + SFENCE durable)
The engine.db continuous state container abolishes the 50-year-old memory-storage divide. Below is the exact byte-level physical partitioning of the storage container, engineered for direct CPU execution on non-volatile memory (NVRAM), CXL.mem, and high-performance NVMe DAX filesystems.
When an atomic { ... } mutation completes, modified cache lines are flushed directly to persistent memory via the CPU cache-line flush (clwb) instruction, followed by an sfence barrier. Changes are physically durable in single-digit nanoseconds without waiting for spinning disks or kernel flush daemons.
Every entity pointer (&Post) is an actual hardware memory address inside engine.db. There is no conversion to JSON, no B-Tree page packing, and no SQL query parsing. Reading a million entities is as fast as walking an in-memory array (lea [base + offset]).
If power is severed instantaneously, the system reboots, recalculates the CRC-64/NVME checksum of Region 0, replays any uncommitted shadow pointers from Region 2, and restores full execution readiness in under 3 milliseconds with zero data loss.
Organized to give systems engineers, autonomous AI agents, and kernel developers clear, mathematically verified boundaries from high-level syntax to bare metal.
enginec), LSP 3.17 daemon, multi-stage Docker Genesis containers, and MSR JSON 2.1 open protocol compliance.
compiler/src/main.rs
Read The Complete 14-Chapter Treatise Online
An authoritative volume detailing how systems engineering transitions from legacy memory-storage duality to a sovereign causal computing fabric. Complete with mathematical proofs, memory layout diagrams, and unikernel boot specifications.