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.
Writing
Everything Maheep Kumar has written, newest first. Distributed systems, performance, Swift and the occasional misadventure.
2026
The latency numbers every programmer should know, scaled to buildings, cities and states so nanoseconds, microseconds and milliseconds finally feel different.
2024
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
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
Recreating Apple's Diwali logo in SwiftUI by turning an SF Symbol into a strokeable Shape with the Vision framework's contour detection.
An iterative Swift version of C++'s next_permutation that generates every permutation of a string in lexicographic order, with the algorithm explained.
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
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
Windows programming pitfalls for beginners (and veteran idiots like me)
How a stubborn refusal to Google an error message properly led me down the rabbit hole of programming.
I built an AI to surprise me with gifts. It worked a little too well.