A recording of Moonlit Shore, an animated ASCII scene rendered by my Python project.
Selected projects
Drift: anomaly detection for AI agents
Python
LangChain
PyPI
GitHub Actions
An open-source library for finding statistical anomalies in AI agent workflows.
Rolling z-score latency detection, Markov transition sequence detection and output-distribution drift detection
A LangChain callback integration that needs no changes to instrumented code
Automated releases with GitHub Actions
Rolling z-score on a latency series, one of the detectors in Drift. Synthetic data; the band is the trailing 15-point mean ± 3 standard deviations.pip install drift-detection
A quantitative finance project with GBM and Heston simulation, parameter estimation from market data, Value at Risk and expected shortfall, Black-Scholes pricing with Greeks, and a Streamlit interface.
Try it: a JavaScript demo of the two path models, written for this page. It uses the inputs below, not market data.
Thin lines: 40 sample paths. Thick lines: 5th, 50th and 95th percentiles of 5,000 paths. Start price 100, daily steps.
Moonlit Shore
Python
NumPy
Pillow
pygame-ce
An animated ASCII ocean at night, with moonlight on the water, surf running up a sandy beach, crabs and a lighthouse. The video at the top of this page is a 64-second recording.
Ocean surface built from 48 summed waves using the deep-water dispersion relation
Moon reflections from per-cell ray casting, mirror reflection and Schlick's Fresnel approximation, plus artistic sparkle and haze
Distant waves faded out to limit aliasing, with their slope variance widening the glint
Cached character glyphs composited in a single NumPy operation
Visual style inspired by the AURORA piece by dwcminh. Code written with AI assistance (Claude), including the wave and reflection math.