C++ systems · real-time graphics · on-device ML
I like taking an idea that has no library yet and building the whole stack around it: the native core, the model runtime, the toolchain, and the benchmark that proves it actually works. Most of my projects are Windows-first C++17 (CMake + Ninja + MSVC), with Python, Java, or TypeScript where the problem calls for it.
What I care about in every repo:
- Real numbers, not adjectives — frame times, PSNR, speedups, memory, and where the limits are
- Small, readable modules with a clear boundary between inference, generation, and UI
- Reproducible builds with vendored dependencies and no hidden Python runtime
| Project | What it is | Stack | Highlights |
|---|---|---|---|
| war3d | Interactive 3D map of the Chinese People's War of Resistance (Hunan, 1938–1943) | C++17, OpenGL 4.3, GLFW, ImGui | 1024² real DEM over ~487 × 333 km, five enterable campaign scenes, animated military-map symbols, cinematic auto-roaming, ~68–77 fps at 1600×900 on an Intel UHD 630 |
| fitsplat | Encodes a single image as anisotropic 2D Gaussians and bakes it into one self-contained GLSL file | C++17, OpenGL 4.3, CUDA-free GPU compute | CPU/GPU differentiable trainer with L1+SSIM, density control, additive and alpha-compositing models; 1.02M splats at 36.30 dB PSNR with a 2%-size residual layer |
| AutoRedStoneMusic | Converts any MP3/WAV into a playable Minecraft redstone music structure | Java (Forge), C++17, ONNX Runtime, FFmpeg | AI (Demucs) and classical (HPSS + REPET-SIM) source separation, per-stem transcription, multi-lane wiring; C++ rewrites of the toolchain are 53×–145× faster than the Python originals |
| MOSS-TTS-Nano-Cpp | Zero-shot voice cloning on CPU with the ONNX Runtime C++ API — no Python, no PyTorch | C++17, ONNX Runtime, SentencePiece | Full codec-encode → prefill → autoregressive sampling → streaming decode pipeline, 48 kHz stereo WAV, long-text chunking, self-contained single-file .exe |
| ParentGuard | Parental-control suite: app/file/web/time limits, SMS and location, persistence | Java (Android), C++ NDK, Python FastAPI | Backend complete and covered by an end-to-end simulation script; Android agent builds, device bring-up in progress; encrypted native layer planned |
| Douyin Spider Toolkit | Downloader and research toolkit for Douyin content | Python, Node.js, Flask | Two-level request signing (a_bogus + x-secsdk), search/homepage/comment scraping, multi-process downloads, LAN web UI with SSE log streaming |
| Project | Measurement |
|---|---|
| war3d | 12.95 ms/frame (≈77 fps) before scene migration; 14.60 ms/frame overview and 13.47 ms/frame Changsha afterwards; ~0.20–0.25 s warm scene loads |
| fitsplat | 27.05 dB from Gaussians alone → 36.30 dB with the residual correction layer (≈+2% file size, zero frame-rate cost) |
| AutoRedStoneMusic | midi_to_nbt 107.9×, arrange_multilane 53.1×, merge_midis 144.5× faster than the Python builds; stem recombination correlation ≈0.9995 |
| MOSS-TTS-Nano-Cpp | Whole pipeline in native C++ at 48 kHz stereo, threads default to logical cores capped at 8, identical sampling to the NumPy/SciPy reference |
Also in daily use: FFmpeg, Eigen, GLFW, ImGui, Gradle, FastAPI, Flask, SQLite, Playwright, Pillow/NumPy, and enough shader debugging to be dangerous.
- Gaussian-splatting research — reading and benchmarking
image-gs,Fast-2DGS,GaussianImageandNPGSagainst my ownfitsplatpipeline. - Go AI — running KataGo / pachi / vibego arenas and distillation experiments on a single GPU.
- Graphics playground — a folder of small OpenGL demos (procedural planet and sea, SDF viewers, starfields, a YSM-format desktop pet renderer) used to prototype the techniques that end up in the bigger projects.
- Video — a Remotion series that explains
fitsplatend to end, from the math to the GLSL export.
- Prototype the hard part first — usually the renderer or the inference session.
- Measure on weak hardware; if it runs on an integrated GPU or a phone, it will run anywhere.
- Write down the numbers and the caveats, then keep the caveats in the README.
Open an issue or a discussion on any repo if you want to talk about graphics, ONNX deployment,