Go

Technical Journal // Go
Aug '26

How Go Channels Actually Work

Go channels look simple, but they rely on heap-allocated ring buffers and runtime scheduler parks. Learn how the hchan structure, stack-to-stack copies, and lock ordering work to prevent leaks and panics.

Aug '26

Part 6: Simulating a Living Facility: Room Derivation, Sunlight Spillover, and Positional SFX

Building structural algorithms to identify rooms procedurally from coordinate maps, propagate sunlight through doorways, parse modular JSON missions, and render positional sound.

Aug '26

Designing a Distributed Job Scheduler in Go: Partitioning, Locking, and Backpressure

A complete system design of a fault-tolerant distributed job scheduler built for scale. Covers PostgreSQL row locking with SKIP LOCKED, hash ring shard distribution, cron parsing, worker backpressure, and missed job recovery.

Aug '26

Part 5: From Terminal Cells to Sprite Maps: Font Fallbacks and Auto-Tiling

Building a 2D Raylib rendering pipeline capable of 4-bit cardinal autotiling and multi-font fallback chains for unicode glyphs and emojis.

Aug '26

Part 4: Refactoring to SoA ECS: Bitmasks and Flat Component Arrays

Refactoring entity storage from pointer-heavy OOP structs to a Structure of Arrays (SoA) ECS using bitwise masks for entity identity and zero-allocation system loops.

Jun '26

Constructing Concurrent Inverted Indexes in Go

Building a thread-safe inverted index from scratch in Go. Covers sharded mutexes, lock contention profiling, slice pooling to avoid GC pressure, and benchmark comparisons against a naive sync.RWMutex approach under varying read/write ratios.

Jun '26

A Love Letter to the L1 Cache

Why reordering two struct fields made my loop 30% faster, and what it taught me about how CPUs actually work.

May '26

Just About Go Time

A breakdown of the absolute absurdity of human time, monotonic clocks in Go, and the one true way to store time across PostgreSQL, Couchbase, and mobile clients.

May '26

PostgreSQL Migrations in Go: Production Schema Patterns with Goose

Execute transactional SQL migrations in Go using Goose. Covers lock avoidance, rollback safety, version tracking, and embedding migration SQL in Go binaries.

Apr '26

Why Your Goroutines Need a Speed Limit: Bounded Concurrency in Go

Unbounded concurrency is a reliability nightmare. Learn how to protect your system from OOM kills and database exhaustion by implementing Semaphores and Worker Pools in Go.