Recurse Center: an index
I recently completed a 12-week batch at the Recurse Center. Here is an index of what I did:
Contents
Learning
These projects were all hand-coded and (mostly) in Zig. This is where I learned the most, and ultimately what made me a dramatically better programmer in my time at RC.
-
Game
3D graphics apps in Zig.- I used sokol to learn 3D graphics using minimal cross platform headers.
- Includes a terrain/noise generator, and a GLTF/GLB model viewer. These feature camera manipulation, simple lighting, hardware rendering, and cross platform builds.
- Model viewer implements GPU skinning, normal mapping, simple metallic/roughness for specular lighting, and forward kinematics animations.
Model viewer playing a robot animation, the terrain generator, and the model viewer showing a duck model. -
Dim
A visual creative-coding environment in the terminal.- I wanted to make terminal environment similar to P5js or shadertoy, and also learn about how graphics workloads work on macOS.
- Uses Zig, Swift, Metal. Zig interops with Swift+Metal code to dispatch compute shaders that draw 2D graphics to a framebuffer. Zig CPU code draws the framebuffer to terminal.
Water and ripple shaders running in the terminal. -
Nylon
A lisp for writing terminal UI applications.- Hand-coding on this project helped me get a lot better at Zig.
- The lexer does no allocations.
- Interprets as a redux-style API for rendering and managing state.
A button example. -
Mistral-LSP
An LSP server for inline tab-completion with Mistral codestral models.- This helped me learn more about how to implement an LSP server.
- Uses an LSP capability that is not yet on the latest stable release.11 The codestral model itself is limited in the way tab completion works, i.e. it only does fill-in-middle not full edit prediction.
Prototypes
Disclaimer: these involved heavy use of AI-coding.
-
Controlled: An IDE that is designed to be used with a video game controller (made with Lua).22 I was able to get 10-15 words per minute with a custom rotation-based input system.
The editor with its rotary keyboard. - Perplexity Oracle CLI: A minimal CLI-tool for search with perplexity (also shows sources).
-
Laser: A terminal-based, modal text editor in Zig (similar to Vim). Comes with tree-sitter syntax highlighting/editing and a simple file fuzzy finder.
Editing a source file.
Experiments
-
Model Personality Evals: A terminal eval runner and result viewer for assigning personality tests to different models.
The eval runner in the terminal. -
SwiftUI vs Electron Comparison: A simple performance comparison test for an apps in SwiftUI and Electron.
The two benchmark apps side by side. - zig-mpsgraph: Learning how to call macOS native parallel computation APIs from Zig to do matrix multiplications.
Pairing
I spent a lot of time pairing with peers in my batch. Here are some highlights:33 I don’t expect you to know who these people are.
- A CHIP8 Emulator in Rust With Gwen, C, John, and Trey.
- Evals for agents on categorizing visual and brand design with C.
- Several sessions on debugging a gameboy emulator in Rust with Gwen.
- Making simple agents with tools using the OpenRouter SDK with Lakshya.
- Schema refactoring for Nora with Shalini.
- Created a simple multi-agent orchestrator with Will.
- A todo management neovim plugin with George.
- Played Slay the Spire 2 with Canna (yes, this counts).
There were a few more experiences that were more like me getting a download and exchanging notes on architecture from others:
- Juli showed me his new shell in C that comes with Lua scripting.
- George walked me through his ECS architecture in his game engine + game with Zig and SDL3.
- Dan showcased his Vulkan/Slang renderer and we talked through how to implement compute shaders.
- Thomas broke down how codegen works in his C compiler.
Presentations
- Experimental Input Systems: a demonstration of my controller-based editor prototype.
- Programming languages, graphics, and running software: a showcase of the last few compilers/PL related projects I did and what I learned from them. I covered monkex, mog, ngbemu, and nylon.
- 2D terminal graphics: a walkthrough of
dimand how I did compute shader dispatch in Zig. I also demoed this project at demo-palooza, which is like a science-fair format of presentations. - Rendering GLTF Models: a talk about how I learned 3d graphics from scratch in Zig, and built up to a GLTF model viewer with lighting and animations.
Other Highlights
- I spent a couple of weeks learning how machine learning compilers such as IREE, Glow, TVM work.
- This ended up being really helpful as an overview, but too challenging for me to jump straight into implementing one myself. This is what inspired me to take a more bottoms-up approach to learning GPU programming, which in turn got me really interested in graphics.
- Hosted a weekly creative coding meetup. This ended up being a really popular event, and I’m still hosting some of these post-graduation.
- My favorite entry that I contributed was this falling sand simulation
- Attempted Anthropic performance take-home.
- I spent about 5 hours on this, but was a couple of orders of magnitude off from Claude’s best solutions.
- Rewrote my resume in Typst