Projects 作品集 项目列表

Things I built

AI & ML and systems work, from a language model trained from scratch to CUDA ray tracers. The two big cards are the ones I'd show first; older web apps, bots and games are in the archive.

Showing all 14 projects

AI & ML

人工知能 人工智能 2

Language models and vector search, built up from the papers.

  • Moonfrost AI thumbnail: a crescent moon and two sleepy kittens in pastel clouds

    AI & ML11

    Moonfrost AI

    A 777M-parameter Mixture-of-Experts model that I took from an empty folder all the way to a chat window. I trained the tokenizer, pretrained it twice, fine-tuned it to hold a conversation, scored it on six benchmarks and wrote the little app it talks through. The attention and expert layers follow DeepSeek-V2, rebuilt from the papers.

    777M
    parameters, 161M active per token
    ~6B
    pretraining tokens (FineWeb-Edu)
    2.7B
    chat fine-tuning tokens
    ~$55
    total training cost, ~12 H100-hours
    • Python
    • PyTorch
    • MoE
    • MLA
    • FastAPI
    • SSE
    • SQLite
    • Hugging Face
  • Wintergreen thumbnail: diagrams of Flat, IVF, HNSW, PQ and k-means indexes around the Wintergreen logo

    AI & ML20

    Wintergreen

    Nearest-neighbour search in C++23 with nothing borrowed in the core. Four indexes (Flat, IVF, HNSW and product quantization) share one benchmark that checks every approximate answer against the exact one. Python can call it without copying a single array, and a CLIP demo uses it to search photos.

    4
    index types: Flat, IVF, HNSW, PQ
    0
    third-party deps in the core
    512→8
    floats to bytes with PQ
    0.89
    HNSW recall@10 on CLIP embeddings
    • C++
    • C++23
    • CMake
    • pybind11
    • NumPy
    • CLIP
    • Flask
    updated Aug 2026

Systems

システム 系统 12

GPUs, graphics, simulations and generative art, down to the logic gates.

  • Systems & GPU47

    HyperTracer

    Started as the Ray Tracing in One Weekend book and kept going: CUDA on the GPU, physically based materials, images that sharpen as samples pile up, and scenes generated from code.

    • CUDA
    • C++
    • pathtracing
    updated Sept 2026
  • Systems & GPU20

    AutiePie

    Regular expressions the Thompson way. Patterns become NFAs, matching never backtracks, and time grows linearly with the input. Groups, classes, quantifiers and anchors all work.

    • C++
    • automata theory
    • NFA
    • pattern matching
    updated Aug 2026
  • Systems & GPU20

    UwUN

    A tiny VPN in modern C++. Packets leave through a virtual TUN interface and travel inside TLS where both ends have to prove who they are.

    • C++
    • networking
    • OpenSSL
    • tunnel
    updated Aug 2026
  • Systems & GPU11

    Hypercube Visualization

    Spins cubes that live in four, five, six or more dimensions, then squashes them down to 3D for your eyes. CUDA does the maths; SDL3 and OpenGL draw it.

    • CUDA
    • geometry
    • hypercube
    • OpenGL
    updated Sept 2026
  • Systems & GPU

    Verilog Notebook

    My hardware scratchpad: gates and small circuits in Verilog, written on the way to FPGAs.

    • Verilog
    • chip design
    • hardware
    • HDL
    • logic gates
    updated Sept 2026
  • Creative code & sims13

    Procedural Maps

    Tile maps that build themselves from neighbour-to-neighbour rules, with tools for editing the result by hand. Made with p5.js.

    • JavaScript
    • algorithms
    • computer graphics
    • p5.js
    • procedural generation
    updated Sept 2026
  • Creative code & sims11

    Procedural Dungeons

    Dungeon layouts pieced together from pattern rules and tidied with small local tweaks, generated live in the browser.

    • JavaScript
    • computer graphics
    • dungeon generator
    • p5.js
    • procedural generation
    updated Sept 2026
  • Creative code & sims11

    Space Colonization

    Trees, roots and veins grown with the space colonization algorithm, in 2D and 3D, sped up with CUDA.

    • CUDA
    • 2D
    • 3D
    • computer graphics
    updated Sept 2026
  • Creative code & sims10

    Gene Archive

    Stores files as DNA letters. This command-line tool encodes data into bases, adds sequencing errors on purpose, then uses parity to get the original back.

    • Python
    • bioinformatics
    • CLI
    • compression
    • data storage
    updated Jun 2026
  • Creative code & sims10

    Sketches

    38 small generative artworks. Each one starts from a simple rule and a little randomness, repeated until a shape shows up.

    • JavaScript
    • abstract
    • algorithmic
    • art
    • creative
    updated Sept 2026
  • Creative code & sims7

    Conway's Game of Life

    Conway's Game of Life running on CUDA. Four rules, zero players, and still somehow full of surprises.

    • CUDA
    • ALife
    • automata
    • cellular automata
    • Conway's
    updated Sept 2026
  • Creative code & sims3

    Sacred Geometry

    Circles and a handful of compass rules, repeated into calm, symmetric patterns that could go on forever.

    • HTML
    • art
    • pattern
    • sacred geometry
    updated Jun 2026