Ian K. Duncan
Software engineer
IndexArchive

Essays

Longer-form, opinionated writing across engineering, personal reflections, and cooking.

Every piece carries a stability level and remains subject to revision.

37 essaysUpdated 15.10.2026

2026

  1. Who Owns the Machines? Personal stable The AI risk worth losing sleep over isn’t a rogue superintelligence. It’s cheap, AI-powered hacking of brittle infrastructure, and a handful of companies using the fear to lock everyone else out of the technology.
  2. Sex, AI, and the Apocalypse Personal stable How a community devoted to thinking clearly incubated salvation stories, abusive experiments, race science, and an affection for autocracy, and why that history matters now that its alumni are asking for public trust on AI.
  3. Getting Freaky in the Age of AI Engineering stable The only way to have a competitive edge in the age of AI is to be aggressively weird with what you build.
  4. The Mathematics of Build Queue Optimization and Auto-Scaling Engineering stable A deep dive into queueing theory and auto-scaling for CI/CD build fleets, exploring when and how to optimize build infrastructure for both cost and developer productivity.
  5. Deconstruct the Monolith: Composable App Bootstrapping with Fractal Layer Engineering stable How fractal-layer attacks the compilation bottleneck and initialization chaos of the monolithic App datatype by treating startup as a composable graph of resource-managed layers.
  6. Brief aan de Eerste Kamer over box 3 · A letter to the Dutch Senate on Box 3 Personal stable Waarom de vermogensaanwasbelasting slecht uitpakt — voor de belastingplichtige, de schatkist en de economie. · Why the accrual tax is bad for the taxpayer, the Treasury, and the economy.
  7. What’s in the Box? A Field Guide to AI Models Engineering stable A beginner-friendly tour of parameters, quantization, MoE, context windows, and other LLM jargon.
  8. Stealing from Biologists to Compile Haskell Faster Engineering stable The trick that makes GHC’s ApplicativeDo optimization faster is structurally identical to how biologists predict RNA folding.
  9. Making Haskell Talk to PostgreSQL Without Suffering Engineering stable How to eliminate the three performance taxes that make database queries slow: encoding overhead, round-trip latency, and N+1 query patterns.
  10. Archive: Automatic Optimal Pipelining of Redis Commands Engineering stable Archived from Informatikr (originally published January 18, 2012). Describes how the Haskell Redis client Hedis achieves automatic and optimal pipelining by combining lazy I/O with a synchronous-looking API, getting the best of both synchronous and asynchronous approaches.
  11. TIL: HTTP/3 Is Not Always Faster Than HTTP/2 Engineering stable Local benchmarks revealed HTTP/3 can be 50-100x slower than HTTP/2. QUIC’s userspace implementation loses to decades of kernel TCP optimizations on high-bandwidth, low-latency networks.
  12. What Functional Programmers Get Wrong About Systems Engineering stable Type systems verify properties of programs. Production correctness is a property of systems. The gap between these is where the interesting failures live.
  13. In Praise of Control Planes, or: Why You Need a Place to Stand Engineering stable The control plane pattern (a coordinator that tells workers what to do) shows up everywhere good infrastructure exists. The concept is simple. Naming it is useful.
  14. Your Best Thinking Is Wasted on the Wrong Decisions Engineering stable Some engineering decisions punish you for being wrong. Most don’t. Learning to tell the difference and calibrate your deliberation accordingly might be the most valuable skill your team never explicitly develops.
  15. No, Really, Bash Is Not Enough: Why Large-Scale CI Needs an Orchestrator Engineering stable A deeper dive into why shell scripts cannot replace a proper CI control plane, drawn from years of building and operating CI systems at scale.
  16. GitHub Actions Is Slowly Killing Your Engineering Team Engineering stable Why GitHub Actions is the Internet Explorer of CI, and why Buildkite offers a better path forward for teams that care about developer experience.
A 17th-century painting of a geographer at a window, holding dividers over a map, a globe on the cabinet behind him.
SpecimenArchive

Every piece remains subject to revision.

  • globe0.91
  • geographer0.94
  • dividers0.88

2025

  1. Punycode: My New Favorite Algorithm Engineering stable A deep dive into how Punycode works, and why I think it’s so neat.
  2. The CRDT Dictionary: A Field Guide to Conflict-Free Replicated Data Types Engineering stable A comprehensive guide to CRDTs and their tradeoffs, from counters to sequences. Written in the spirit of the Typeclassopedia, exploring how different CRDTs solve the distributed consensus puzzle.
  3. JSON Schema Demystified: Understanding Schemas, Dialects, Vocabularies, and Metaschemas Engineering stable An accessible guide to understanding the confusing terminology around JSON Schema. What are schemas, dialects, vocabularies, and metaschemas, and how do they all fit together?
  4. Event Design for Streaming Systems: A Primer Engineering stable How to use event streams in an effective, scalable, future-proof way.
  5. Accidental or Essential? Understanding Complexity in Software Design Engineering stable Understanding the difference between essential and accidental complexity in software design.
  6. What You Need to Know About Trump’… Personal stable A look at the Trump administration’…
  7. Actuarial Murder and Other Diffuse Acts of Violence Personal stable An exploration of how institutional decisions and systemic policies can cause widespread harm with less accountability than direct violence, examining cases from healthcare to education where bureaucratic choices have life-altering consequences despite being treated as mere business decisions.
  8. The Cadence of Salting Cooking provisional When you salt matters as much as how much you salt. Understanding the timing changes everything.

2024

  1. Embracing Flexibility in Haskell Libraries: The Power of Records of Functions Engineering stable Improve the robustness and flexibility of your Haskell apps by changing how you design your libraries.
  2. Hi, Barbie! Higher kinded records made easy(er) Engineering stable We often need to make and manipulate derived types that are similar to each other, but not quite the same. Higher-kinded records provide a way to do this in a generic way, but are clunky. We’…

2023

  1. Haskell Best Practices– Wildcards aren’… Engineering stable An argument for using really exhaustive pattern matching.
  2. There and Back Again: Turning Haskell functions into RPC calls- Part 2 Engineering stable In the last post, we figured out an interface for the RPC caller to invoke remote Haskell functions. In this post, we’…
  3. There and Back Again: Turning Haskell functions into RPC calls- Part 1 Engineering stable In
  4. Integrating a large Tokio-based Rust library with Haskell Engineering stable A lot of the Rust <-> Haskell interop examples out there are for small, synchronous libraries. They also tend to omit how to actually package the Rust library. We’…
  5. One Serialization Class to Rule Them All Engineering stable Typical serialization libraries in the Haskell ecosystem target a single format. We explore how to provide composite serialization for data types that chooses the best format for each data type.
  6. OpenTelemetry Gotchas– Phantom Spans Engineering stable We struggled for several months with a mysterious tracing issue in our production environment. Unrelated web requests were being linked together in the same trace, but we could never see the root trace span. This is the story of how we found and fixed root cause.
  7. The Cruel Part Is Personal stable A poem
  8. Vignettes Personal stable A collection of memories

2021

  1. Garbage in, Never out Personal stable Adventures in streaming algorithms.

2014

  1. Using React with GHCJS Engineering stable Early explorations in data-driven Haskell applications in the browser.
  2. Introducing Growler, a simple HTTP server toolkit Engineering stable Sinatra-esque Haskell web apps.