# David Gray > David Gray is a software engineer in St. Louis, Missouri working toward machine learning and AI: applied ML projects, framework performance benchmarking, and a published, cited sign language recognition paper. He is completing an M.S. Computer Science — Data Science at University of Illinois Urbana-Champaign (2025 — May 2027) and works as a Product Security Engineer at Boeing. This is his personal site: project write-ups, long-form technical writing, and browser games that run the models from his projects. Contact him at davidgraymi@gmail.com. Open to consulting and interesting problems. ## About - [About](https://davidmgray.com/about): Background, how he got into ML, and what he does outside work - [Resume](https://davidmgray.com/resume): Experience, education and skills - [Resume (PDF)](https://davidmgray.com/files/David-Gray-Resume.pdf) - [Contact](https://davidmgray.com/contact): Consulting, full-time roles, or a second opinion on a hard problem - [GitHub](https://github.com/davidgraymi) - [LinkedIn](https://www.linkedin.com/in/david-gray-mi/) - [Hugging Face](https://huggingface.co/davidgray) - [Google Scholar](https://scholar.google.com/citations?hl=en&user=gRrZp_AAAAAJ) ## Writing - [A free Colab machine found 21 broken roofline bounds in my profiler](https://davidmgray.com/blog/neural-cost-roofline-validation): neural-cost v0.20 checks its roofline lower bounds against real measurements on an Apple M3 and an NVIDIA Tesla T4. Here is what that check caught: wrong CPU peaks, timers that stopped early, double-counted profiler events, and benchmarks that compared different networks. - [Teaching a network to think longer](https://davidmgray.com/blog/teaching-a-network-to-think-longer): My CS440 project asked whether a recursive network can stand in for search. It learned to think in steps. It did not learn when to stop. You can play it below. - [A roofline number should say what it doesn't know](https://davidmgray.com/blog/neural-cost-honest-roofline): I pointed neural-cost at my own AlphaZero chess net and got a confident 69% efficiency that was wrong three ways. Here is what it now reports instead, and the four bugs that only showed up on a real Apple GPU. - [Bindersnap's new look, and why most of it isn't color](https://davidmgray.com/blog/bindersnaps-new-look): Bindersnap now has a warm redesign, its own home at bindersnap.com, the app at app.bindersnap.com, and a landing page that paints in 2.4 s on a phone. - [An Unexpected Email, REPRO-SIGN, and 11 Citations on Google Scholar](https://davidmgray.com/blog/an-unexpected-email-and-11-citations): Years after our college capstone, an out-of-the-blue email from European AI researchers wanting to reproduce our sign language paper sent me to Google Scholar, where we've been cited 11 times. - [Connecting the Dots: How a Sign Language Capstone Got Me Hooked on AI](https://davidmgray.com/blog/connecting-the-dots-sign-language-ai): Looking back at my senior capstone project at Missouri State — building a real-time American Sign Language smart home controller with MediaPipe, custom CNNs, and networking — and how it sparked my path in machine learning. - [GPU vs. CPU: Roofline Benchmarks on Apple Silicon MPS with neural-cost v0.2.0](https://davidmgray.com/blog/neural-cost-gpu-benchmark): The neural-cost v0.2.0 GPU benchmark moves from CPU roofline analysis to Apple Silicon's MPS GPU backend — measuring PyTorch and JAX across five architectures, four batch sizes, and both eager and compiled execution modes. - [PyTorch vs. JAX vs. TensorFlow: A Roofline Benchmark Across 5 Architectures](https://davidmgray.com/blog/ml-framework-comparison): An empirical investigation comparing PyTorch 2.14, JAX 0.11, and TensorFlow across five model architectures and four batch sizes, measuring compiler speedups, kernel overheads, and hardware limits on Apple Silicon. - [neural-cost: Roofline Analysis Across PyTorch, JAX, and TensorFlow](https://davidmgray.com/blog/neural-cost): A framework-neutral Python library that estimates a neural network's FLOPs and tensor traffic, measures its runtime, and uses a roofline model to tell you exactly where performance is being left on the table. - [I rebuilt this site so that publishing costs one file](https://davidmgray.com/blog/why-i-rebuilt-this-site): The old site was a single 41,000-character index.html. Every change was archaeology. Here is what I replaced it with and why the constraint was maintenance, not design. ## Projects - [neural-cost](https://davidmgray.com/work/neural-cost): A framework-neutral Python library that tells you how fast a neural network should run, not just how fast it does — FLOPs, tensor traffic and a roofline model across PyTorch, JAX and TensorFlow. - [Sign Language Interpretation System](https://davidmgray.com/work/sign-language-interpreter): Control any smart device with American Sign Language — hand tracking, a gesture classifier and grammar correction, wired together over a client-server link. - [Patient Care Portal Triage](https://davidmgray.com/work/patient-care-triage): An NLP pipeline that routes patient portal messages to the right team and surfaces relevant evidence-based research while they wait for a human. - [LaCam for Multi-Agent Path Finding](https://davidmgray.com/work/lacam-mapf): A from-scratch LaCam solver for CS440 — agents searching a space of joint configurations, each expanded by a constraint tree that rules out collisions and swaps. - [Reinforcement Learning applied to Tetris](https://davidmgray.com/work/tetris-rl): An agent that learns to play Tetris — a genuinely fun excuse to get hands-on with reward shaping. - [Handwritten digit recognition with weighted KNN](https://davidmgray.com/work/knn-digits): A KNN classifier for handwritten digits, plus a k-value optimizer that collapses repeated distance calculations into a single pass. - [ID3 mushroom classification](https://davidmgray.com/work/id3-mushrooms): A from-scratch ID3 decision tree that predicts whether a mushroom is edible or poisonous from its attributes. - [Healthcare length-of-stay estimator](https://davidmgray.com/work/length-of-stay): A data mining project predicting how long a patient will stay, from admission-time features. - [Threat modeling a zero-trust deployment pipeline](https://davidmgray.com/work/zero-trust-delivery): A continuous deployment pipeline for configuration-as-code and infrastructure-as-code into Kubernetes, designed from its threat model outward so the release process does the security review. - [Moving three toolchain apps to Kubernetes on Azure](https://davidmgray.com/work/cloud-migration): Three toolchain applications moved to Kubernetes on Azure, deployed one way with Helm and infrastructure-as-code, and secured with an Istio service mesh. - [A processor built from the ground up](https://davidmgray.com/work/real-time-processor): Kernel, task scheduler and communication protocol written from nothing, in C and Ada, now in production and distributed globally. - [A system library that runs anywhere](https://davidmgray.com/work/portable-system-library): One portable C++ library targeting any RTOS or bare-metal system, packaged with Docker, Bazel and GitLab CI — cutting porting work by 4×. - [Bindersnap](https://davidmgray.com/work/bindersnap): Production policy and procedure management software for small healthcare providers. Every approved version carries a permanent, exportable record of who reviewed and signed off on it. - [Wordlet](https://davidmgray.com/work/wordlet): A word guessing game built in Flutter and compiled to the web — playable right here, no install, no account. - [This website](https://davidmgray.com/work/this-website): A static site built with Astro, hosted free on GitHub Pages, designed so writing a post costs one markdown file and nothing else. ## Optional - [Four in a row](https://davidmgray.com/play/four-in-a-row): Connect Four against my recursive thinking model. It decides how long to think, and you watch its pick change at every step. - [Beat the bot](https://davidmgray.com/play/beat-the-bot): Tetris against the value network from my reinforcement-learning project. Same pieces, two minutes, most lines wins. - [Draw a digit](https://davidmgray.com/play/draw-a-digit): Draw 0–9 and watch a weighted KNN classifier find its nearest MNIST neighbours as you go. - [Is it poisonous?](https://davidmgray.com/play/is-it-poisonous): A real mushroom from the UCI dataset. Make your call, then watch an ID3 decision tree make its own. - [Route the robots](https://davidmgray.com/play/route-the-robots): Draw a warehouse, place robots and goals, and race a LaCAM multi-agent path-finding solver to the shortest plan. - [Daily Wordlet](https://davidmgray.com/play/wordlet): One five-letter word a day, the same for everyone. Six guesses. - [Bot or human?](https://davidmgray.com/play/bot-or-human): 14 rounds. One line from a public-domain classic, one written by a language model. Spot the bot. - [Reaction test](https://davidmgray.com/play/reaction): Wait for the panel to light up amber, then hit it as fast as you can. - [Lost signal](https://davidmgray.com/play/lost-signal): The 404 page's dodge game. Packets rain down; steer the receiver out of the way. - [RSS feed](https://davidmgray.com/rss.xml) - [Sitemap](https://davidmgray.com/sitemap-index.xml)