Hi, my name is
Alex Leung
Software Engineer and Writer.
I build AI product surfaces and reliable software systems, then write down what I learn.
Writing and Open Experiments
I keep essays, technical notes, and project writeups here: software systems, AI product development, deep learning, and open experiments.
Most pieces start from a concrete thing I tried: an implementation detail, a reading note, a tool behavior, or a product or system trade-off.
Latest Writing
Farming Expensive Coding Agent Sessions
June 14, 2026
My coding-agent sessions are more expensive now. The useful spend is the part that turns mistakes into better tests, graders, prompts, and checks.
Camping Indoors in San Francisco
April 27, 2026
My first week in San Francisco: paperwork, an unfurnished apartment, two cats, Bay Trail runs, and waiting for furniture.
Coding Agents for Inspectable Browser Tools
April 10, 2026
Building frontend-only tools for load flow, Mandelbrot zooming, optimizer behavior, and event-loop ordering gave me concrete ways to inspect older technical models.
Open Experiments
Runtime
Event Loop Visualizer
A small event loop visualizer for call stack, microtasks, tasks, timers, and execution order.
Optimization
Learning Dynamics Lab
An optimizer visualizer for comparing SGD, Momentum, RMSProp, and Adam on simple 2D loss surfaces.
Power Systems
Load Flow
An AC load flow workspace for editing one-line models and solving bus voltages and branch flows.