THE COLLECTION

Library

Everything you’ve found. Nothing you need to save twice.

5 articles
Browse at your own pace.
01
doc.rust-lang.orgUNREAD

repr(Rust) - The Rustonomicon

This Rustonomicon chapter explains the default repr(Rust) type layout rules: alignment, size, and compiler-inserted padding. It argues that field ordering is deliberately unspecified because generic monomorphizations may need different orderings to avoid wasted space, and enums can use tricks like the null pointer optimization to eliminate tags. The tradeoff is compiler layout flexibility versus the inability to assume a stable memory layout.

02
GitHub EngineeringUNREAD

Migrating the GitHub Copilot runtime to Rust, using Copilot

GitHub rewrote the Copilot agent runtime from TypeScript/Node.js to 800,000+ lines of Rust, with AI agents writing most of the code across 128 incremental pull requests shipped in place rather than via a big-bang cutover. Reported gains include large reductions in startup time, memory, and CPU, plus an embeddable C-ABI surface for six SDK languages, at the cost of ~$120K in tokens, explicit lifetime management, and some regressions. The author frames it as escaping Node/V8 overhead for embedded runtimes, not a general claim that TypeScript should become Rust.

03
Eli BenderskyUNREAD

Concurrent Servers: Part 8 - Go

This part of a series on concurrent servers shows how Go handles the problem: launch one cheap, M:N-scheduled goroutine per client, avoiding async/await since the runtime already uses epoll for I/O. It then covers cases where you should still bound concurrency—compute-heavy tasks, limited downstream resources, and malicious clients—via a channel-as-semaphore pattern or a worker pool. Tradeoff noted: goroutines are cheap, but unbounded concurrency can still exhaust CPUs or file descriptors.

04
Discord EngineeringUNREAD

How Discord Resizes 150 Million Images Every Day with Go and C++

Discord replaced a Python image-resizing proxy with a Go service after the original showed uneven workload distribution and high latency variance. Because no Go resizing package could beat pillow-simd, they built Lilliput, a Go package wrapping OpenCV and C image libraries via Cgo—accepting forked dependencies, manual memory management, and hard-to-debug leaks and race conditions. The rewrite cut server instances by 60% and reduced latency variance, but required extensive profiling, fuzzing, and custom GIF and video handling.

05
Armin RonacherUNREAD

Astra for Coding: Why Are We Doing This Again?

The author ran a fully autonomous 'software factory' with GPT 6 Astra for 35 hours (~$1200, 79 commits, 75k lines of code) and got nothing usable. His core complaint is that the model's token-efficient 'codegolf' Python for tool calls leaks into committed code, producing unreadable and bizarre output, and that it won't stop on oversized tasks. He argues training rewards local metrics over human readability, and doubts these costlier models still fit day-to-day software engineering versus other use cases.