Engineering Articles

Technical deep dives from the Elastcode team. How we build with our own compiler, database, and protocol.

Rule 2: Never Accept an AI Proposal Blindly
AI TUTORIAL · RULE 2

Rule 2: Never Accept an AI's Proposal Blindly

An AI recommends what its training suggests; you hold the context that decides whether it is safe. Why the yes is so easy, why AI speed is the real danger, and the case where a two-day pause turned a large risky rewrite into 20 lines across 30 places.

August 2026 · Michael Korneev · 9 min read
PostgreSQL Is Free. Running It Is Not.
UNIT ECONOMICS

PostgreSQL Is Free. Running It Is Not.

The real cost of a "free" database: PostgreSQL + Redis + S3 + Elasticsearch + Pinecone = $257-737/month + ORM + migration tool + DBA. We replaced it all with one engine at $70/month for 30,000 users.

August 2026 · Michael Korneev · 11 min read
Your AI Proposed a Grand Plan
AI TUTORIAL

Your AI Proposed a Grand Plan. Do These 4 Things First.

Before saying yes to any AI-proposed system change: backup you can revert in 60 seconds, understand every step, make the AI critique itself, anticipate real-world failures. A practical guide from running 20 AI agents daily.

August 2026 · Michael Korneev · 10 min read
Inside Orion DB
ORION DB

Inside Orion DB

What is actually inside a database engine we wrote ourselves: the 84-byte record header with MVCC in it, a write protocol that self-heals torn writes, offset-seekable file members, an O(1) seek table one line had switched off, and the four-root-cause hunt for read-your-own-writes.

August 2026 · Michael Korneev · 16 min read
Replacing a Global Semaphore With Hazard Pointers
CONCURRENCY

How We Replaced a Global Semaphore With Hazard Pointers

335 cascade crashes per session. A non-reentrant lock in a JIT runtime. Why recursive mutex is wrong. Hazard pointers + per-thread caches = zero crashes under the same load.

August 2026 · Michael Korneev · 13 min read
One Spatial Algebra, Four Industries
AURORA

One Spatial Algebra, Four Industries

Why a robot arm, a ray tracer, a GPU shader, and an AI model are the same math. Compiler-level spatial types, the RenderMan operator model, SPIR-V/Vulkan RT mapping, and what works today vs what's designed.

August 2026 · Michael Korneev · 14 min read
Fine-tuning Qwen 3 for EPL
EPL + AI

Fine-Tuning Qwen 3 to Be a Middle EPL Developer

Training a small language model to write code in our own programming language. Qwen 3 + QLoRA on a $300 GPU. Why EPL's small context makes this possible. Results coming soon.

August 2026 · Michael Korneev · 8 min read
Every OS You Use Is a Compromise
OPERATING SYSTEMS

Every Operating System You Use Is a Compromise

A technical audit of Linux, Windows, macOS, QNX, and Qubes. Why no existing OS covers real-time + drivers + security + unified storage + AI. The gaps nobody fills — and what it would take.

August 2026 · Michael Korneev · 15 min read
OID-as-index in Orion DB
ORION DB

We Made the Primary Key the Index

How Orion DB turns an object ID into a zero-maintenance search structure — and the silent 32-bit wall we hit along the way. The OID-as-index pattern, 543ms to 94ms, and four things the AI got wrong.

August 2026 · Michael Korneev · 12 min read