Compiling IR to NFA
Turn regex IR into a graph-based automaton for fast next-step lookup
A collection of notes, essays, and technical deep dives by Ivan Leo.
Previously built general agents for knowledge work at Manus (acq by Meta). Embarking on a new adventure soon.
A comprehensive series on building AI coding agents from scratch, covering everything from basic tool integration to advanced features like agentic search and subagents.
Working through Stanford's CS336 and documenting what I learn at each step — from tokenization to training.
Turn regex IR into a graph-based automaton for fast next-step lookup
Going beyond a simple regex to an FSM for quick lookups
Build a recursive JSON Schema-to-regex compiler from first principles
Taste is all that matters.
The messy, fast-changing path that took me from front-end engineering to LLMs.
Creating our first RL Pipeline with Verifiers
Lessons learnt from going from zero to $100M ARR in 8 months
Building a Byte-Pair Encoding tokenizer from scratch