
software engineer @vercel β’ really enjoy researching, puzzles, games (any kind) β’ lots of words on my website β’ @recursecenter alum
- Tweets893
- Following943
- Followers1.4K
- Likes3.6K

ALT Screenshot of blog post: Below are the first four merges from the real goldshire trace. GPT-2 chooses the lowest-ranked valid adjacent pair (not the leftmost pair or the longest token). So r+e, which has rank 4, wins before the leading-space pair, even though it is near the end of the match. The important bit to take away is that each merge can expose another candidate. ...

ALT screenshot of terminal: β ./run.sh GPT-2 XL CODING AGENT Model: openai-community/gpt2-xl Device: mps Seed: 419 INITIAL PROMPT β GPT-2 ββββββββββββββββββββββββ You are a programmer controlling a tiny project. Choose one action at a time. Use exact filenames from Computer. After a FAIL names a file, READ that file next. Actions: ACTION: LIST ACTION: READ filename.py ACTION: WRITE filename.py CONTENT: complete file contents END ACTION: RUN COMMAND: python check.py ACTION: FINISH Example: Task: Fix the project so all checks pass. Programmer: ACTION: LIST Computer: check.py message.py names.py

ALT Screenshot of blog post: So the goal is to be able to write TypeScript code like this: async function readFile(path: string) { await sema.acquire(); defer sema.release(); // New! // ... use resource } The TypeScript Compiler The TypeScript compiler (tsc) is mostly a static analysis engine. Its complexity lies in type-checking a fundamentally dynamic language, and supporting extremely incremental compilation to meet latency expectations in an IDE. Lucky for us, we don't need to worry too much about types or other analysis in order to add our defer statement. tsc already has the machinery for "recognize syntax X, replace it with equivalent syntax Y."

ALT Screenshot of post: A Tiny Compiler for Data-Parallel Kernels Jun 2026 A lot of fast code starts as a boring loop. Modern hardware can perform the same operation on multiple values at once (e.g. SIMD and SIMT), and sometimes we write code directly for those execution models but other times, a compiler starts with regular-looking code and rewrites it so multiple loop iterations can run together. I built a tiny compiler (~180LOC of Python) to understand what that transformation looks like. My compiler lowers kernels (rewrites them into a simpler, more explicit form where data parallelism is visible). The input is a small hand-written AST, and the output is a lowered IR that I print as Python-like code. Rather than going all the way from source code to instructions, think of this compiler as an intermediate step in a larger compiler. Let's take a look at an example. Scaling audio is easy to parallelize, but it is still common to write non-explicitly parallel code like this:




