Aakash Kattelu
WritingRecurse Center: an index
Aakash Kattelu

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.

  1. 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 showing a duck model
    Model viewer playing a robot animation, the terrain generator, and the model viewer showing a duck model.
  2. 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.
    Ripple shader running in the terminal
    Water and ripple shaders running in the terminal.
  3. 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.
  4. 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.

  1. 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.
  2. Perplexity Oracle CLI: A minimal CLI-tool for search with perplexity (also shows sources).
  3. 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
    Editing a source file.

Experiments

  1. Model Personality Evals: A terminal eval runner and result viewer for assigning personality tests to different models.
    The eval runner in the terminal
    The eval runner in the terminal.
  2. SwiftUI vs Electron Comparison: A simple performance comparison test for an apps in SwiftUI and Electron.
    The two benchmark apps side by side
    The two benchmark apps side by side.
  3. 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.

  1. A CHIP8 Emulator in Rust With Gwen, C, John, and Trey.
  2. Evals for agents on categorizing visual and brand design with C.
  3. Several sessions on debugging a gameboy emulator in Rust with Gwen.
  4. Making simple agents with tools using the OpenRouter SDK with Lakshya.
  5. Schema refactoring for Nora with Shalini.
  6. Created a simple multi-agent orchestrator with Will.
  7. A todo management neovim plugin with George.
  8. 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:

  1. Juli showed me his new shell in C that comes with Lua scripting.
  2. George walked me through his ECS architecture in his game engine + game with Zig and SDL3.
  3. Dan showcased his Vulkan/Slang renderer and we talked through how to implement compute shaders.
  4. Thomas broke down how codegen works in his C compiler.

Presentations

  1. Experimental Input Systems: a demonstration of my controller-based editor prototype.
  2. 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.
  3. 2D terminal graphics: a walkthrough of dim and 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.
  4. 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

  1. 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.
  2. Hosted a weekly creative coding meetup. This ended up being a really popular event, and I’m still hosting some of these post-graduation.
  3. 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.
  4. Rewrote my resume in Typst