Maheep Kumar.

Writing

Everything Maheep Kumar has written, newest first. Distributed systems, performance, Swift and the occasional misadventure.

2026

All you need is accessibility

Letting an AI agent drive a Mac app for UI testing: four approaches that failed, and why the macOS accessibility tree worked as a test API for FynPDF.

Making sense of latency numbers

The latency numbers every programmer should know, scaled to buildings, cities and states so nanoseconds, microseconds and milliseconds finally feel different.

2024

Optimizing a Go service at work

Cutting a Go cron job's peak memory from 16.5 GB to 50 MB with streaming queries, bounded concurrency and a buffered writer.

2023

Fizz Buzz Pro on Elixir

How I spent way too much time optimizing a children's counting game and went from 2 MiB/s to 3 GiB/s. No regrets.

2022

Converting SF Symbols to shapes

Recreating Apple's Diwali logo in SwiftUI by turning an SF Symbol into a strokeable Shape with the Vision framework's contour detection.

Generating permutations of a string in Swift

An iterative Swift version of C++'s next_permutation that generates every permutation of a string in lexicographic order, with the algorithm explained.

Early troubles with Heterogeneous Computing

When your CPU has an identity crisis: some cores want to run fast, others want to save battery, and the OS has to play therapist.

2021

On USB-C Port

USB-C beats Lightning on paper, so why does my phone's USB-C port wear out while my old iPad's Lightning port keeps going? Notes on port design and durability.

2020

A misadventure programming on Windows

Windows programming pitfalls for beginners (and veteran idiots like me)

Origins of an idiot programmer

How a stubborn refusal to Google an error message properly led me down the rabbit hole of programming.

Online Shopping on a Valentine's Weekend

I built an AI to surprise me with gifts. It worked a little too well.

Browse by topic or subscribe by RSS.