Projects
Research work, software systems, and smaller experiments.
Select projects
01
Diagnosing Failure in Few-Step Manifold Generation
Research
with Yexiang Xue. We present a diagnostics framework for few-step generative modeling on manifolds that separates failures caused by coarse sampling, inconsistent local coordinates, model drift, and off-manifold leakage.
02
Physics-Conditioned Grasping for Stable Tool Use
Research
with Zixing Wang and Ahmed Qureshi. We introduce iTuP (inverse Tool-use Planning), a framework that outputs robot grasps explicitly tailored for tool use. iTuP integrates a physics-constrained grasp generator with a task-conditional scoring function to produce grasps that remain stable during dynamic tool interactions.
03
C Subset Compiler (LLVM)
A compiler for a subset of C with an LLVM backend, complete with single static assignment (SSA) generation, redundant phi node removal, and optimization passes for common subexpression elimination (CSE), constant branch folding, dead block removal, loop invariant code motion (LICM), and Chaitin-Briggs graph coloring allocation.
04
Neural Networks from Scratch
A from-scratch tensor operation and automatic differentiation library in pure Python, featuring feed-forward mechanisms, backpropagation, loss functions (MSE, cross-entropy, etc.), extensible optimizers (SDG, Adam, etc.), extensible modules (linear, sequential, etc.), activations (ReLU, Tanh, etc.), functional formulations (like torch.nn.functional), persistent and temporary buffers, and saving state dicts.
Archive
Oct 2025 - Dec 2025
Learning Flow Distributions via Projection-Constrained Diffusion
Research
with Rahul Ghosh and Aadi Jangid. We present projection-guided diffusion, a task-specialized approach for generating physically feasible flows that integrates a Helmholtz–Hodge projection into every step of the reverse diffusion process. Our method combines (i) geometry-conditioned score estimation, (ii) a divergence-aware training objective, and (iii) per-step incompressible projection that corrects intermediate states rather than only the final sample.
Oct 2023 - Mar 2024
Parallel Conjugate Gradient Routines for Large Sparse Systems
Research
with Xiaotao Yang. We formulate and implement parallelized conjugate gradient routines for solving large sparse systems in the domain of seismic tomography.
Feb 2026 - Present
CatGPT
An experimental tiny language model that behaves like a cat with moods, sense of place, persistent memory, and lightweight test-time compute reasoning for multi-step plans and reactions. It samples multiple candidate "cat thoughts," scores them for consistency, and selects responses that match its current drives, room state, and plans.
Feb 2026 - Present
Fantasy Baseball Draft Optimizer
Scarcity-aware live draft assistant for fantasy baseball, using point projection, position-specific replacement value (with Monte Carlo opponent simulation), position drop-off before next turn, and feasibility guardrails.
Feb 2026 - Present
ALGOL for LLVM
An ALGOL 60 compiler with an LLVM backend. Supports most of the ALGOL 60 specification with a rudimentary C ABI and custom optimization passes for thunk- and procedure-level capture pruning.
Feb 2025 - Mar 2025
Shell
A drop-in sh replacement supporting shell scripting, rich line editing, environment management, subshells, pipes, and various commands.
Jan 2025 - Feb 2025
Arena Allocator
A custom arena allocator for use in systems projects.
Nov 2024 - Dec 2024
C Subset Compiler (x86-64)
A compiler for a subset of C to x86-64 Assembly.
Aug 2024 - Dec 2024
Game Agents
A collection of reinforcement learning and other heuristic agents for playing assorted games in Python.
Aug 2024 - Dec 2024
Relational Database Management System
A from-scratch RDBMS in Java with a buffer manager, heap files and scans, query engine, SQL parser, and query optimizer.
Jul 2024 - Jul 2024
Instagram GC RAG Bot
Simple RAG-enabled Llama 3-based chatbot that answers questions about Instagram group chats.
May 2024 - May 2024
Tiny Lambda Calculus
A tiny untyped lambda calculus written on the plane from Indianapolis to Newark, with no WiFi and nothing else to do.
Jul 2023 - Aug 2023
Hexdump Utility
A simple, aesthetically pleasing hexdump utility.
Dec 2022 - May 2023
Interactive Physics Simulations
Custom physics engine and interactive physics demonstrations for displays in The Lawrenceville School's Kirby Math and Science Center. Includes orbital, raytracing, fluid, pendulum, cellular automata, and more simulations with tunable parameters and interactive features.
Aug 2022 - Oct 2022
The Lawrence
The full-stack website for The Lawrenceville School's student-run newspaper, enabling complete web-based management of the online publication and mailing lists.
Jan 2022 - May 2022
Optical Music Recognition Agent
Optical music recognition and playback agent in Mathematica. Given an image of piano sheet music, the agent extracts notes and other relevant metadata via a computer vision model and outputs MIDI or MP3 files.
Nov 2021 - Nov 2021
Java Classfile Deserializer
A Java Classfile deserializer and debugging utility written in Rust.
Nov 2020 - Nov 2020
Freelist Allocator
A simple K&R style freelist-based general-purpose allocator with Clang-specific optimization.
Sep 2019 - Oct 2020
Assembly Virtual Machine
A parser and virtual machine for a simple x86-style instruction set with Intel syntax.
Jan 2016 - Present
ntrupin.com
My personal full-stack website.
Sep 2014 - Dec 2015
Home PC Automations
Scripts and automations in Python, JavaScript, and Visual Basic for Applications for Windows 7 and Microsoft Excel 2010 on a 2010 Acer Aspire PC.