Zig
Lately I've been spending time with Zig. What draws me to it from the embedded side:
explicit allocators, comptime in place of preprocessor macros, easy
cross-compilation, and drop-in interop with existing C code.
Computer engineer · embedded systems & firmware · Ann Arbor, MI
I’ll never forget standing on the playground in 5th grade, annoyed that my friend wouldn’t stop talking about Minecraft. Like every other kid, my free time soon became Minecraft time. I was always the one hosting servers and tinkering with configs, until I wanted to write my own code: Bukkit plugins for the server I spent most of my childhood on (it’s somehow still going strong). It was truly terrible Java, but you have to start somewhere. And at 16 I got to test in production with 300–500 concurrent players, which I still can’t believe anyone let me do.
From there I got into Linux, and not just any Linux. The “cool kids” got to me, and that same year, after six tries, I could officially say “I use Arch, btw.” I fell in love with never having to rip out Edge or OneDrive, or say no to Office 365 again. True freedom. A decade later, I can’t imagine developing on anything else.
At the University of Michigan I finally got to do some amazing things: designing processors, digging into microarchitecture, building robots and novel sensors. It’s hard to pick just one thing after that. I still love programming by hand and picking up new languages (Zig will save us all), and I keep thinking about sensors built into geometries you can only make with FDM printing.
Lately I've been spending time with Zig. What draws me to it from the embedded side:
explicit allocators, comptime in place of preprocessor macros, easy
cross-compilation, and drop-in interop with existing C code.
An argument against the nihilism creeping into software, and for building tools that leave users in control.
A wall-climbing robot that draws images on a whiteboard. I led mechanical design and fabrication in Fusion 360 across nine printed iterations, bringing it to 3.25 lb against a 10 lb limit. It runs on a custom ESP32-S3 PCB with FreeRTOS, PID drive control and OpenCV ArUco localization.
A firefighter jacket with temperature-sensing and SOS patches. I built the temperature chain: K-type thermocouples with AD8495 amplifiers and cold-junction calibration, reading up to 650 °C. An ESP32 hub streams temperature, SOS status and GPS over ad-hoc Wi-Fi to a live dashboard.
A timed lock box that keeps your phone away while you study. I wrote the core firmware around a custom real-time event scheduler and state machine on an STM32 Nucleo. I also built NFC phone detection and an interrupt-driven emergency unlock, and integrated the accelerometer, LCD, rotary encoder and solenoid lock.
A 2-way superscalar out-of-order CPU in SystemVerilog. I wrote the first reorder buffer, designed the load/store units, and worked on testing and optimization. The final design ran at 1.34 weighted CPI at a 9.5 ns clock. Speculative loads took CPI from 1.90 to 1.31.
I built the embedded controller for an active heat-recovery ventilator: a C fan controller on a Raspberry Pi Zero 2 using hardware PWM, linked to the project's sensor nodes over MQTT.
A GPU convolution kernel in CUDA, optimized with shared-memory tiling.
I improved open-source address-parsing regexes for finding personal data in documents. F-measure rose 27% on a mixed-country set and 9% on a US set. I also built the Python evaluation tool and labeled 5,400+ addresses.