Joshua Barre hero portrait

Computer Science & Combinatorics • Reinforcement Learning • Systems

Joshua Barre

Portfolio of AI systems, computer vision demos, and brand-building work — designed to feel minimal, modern, and intentional.

View projects and demos

Explore Portfolio
Mathematics is the language with which God has written the universe.

Education

Mathematics, computer science, and the theory underneath both.

University of Waterloo logo
University of Waterloo
Bachelor of Mathematics — Computer Science & Combinatorics, Minor in Statistics
Waterloo, ON • Sept 2025 – Apr 2030
Massachusetts Institute of Technology logo
Massachusetts Institute of Technology
Certificate — Mathematical Methods for Quantitative Finance
Online • May 2026 – Aug 2026

Projects

Trading systems, quantitative research, game theory, and reinforcement learning.

Limit Order Book & Matching Engine

C++20 • Nasdaq ITCH 5.0

The data structure at the centre of every exchange: price-time priority matching with limit, IOC and market orders, cancels and in-place reductions. Real Nasdaq data has market makers' stub quotes parked at $0.01 and $199,999.99, so price levels live in chunks allocated on demand and a hierarchical bitmap finds the next best price in a few word operations across any gap. Replayed a full trading day of Nasdaq ITCH data (11.5 million operations on AAPL, MSFT, AMZN, SPY and QQQ) in exact sync with the exchange's feed, at 40M+ operations per second, about 3× a std::map book. 1.9 million test checks against a deliberately naive reference book.

github.com/joshuabarre/orderbook

Does Pairs Trading Still Work?

Python • statsmodels • pre-registered study

A walk-forward test of statistical-arbitrage pairs trading on 60 US stocks, 2011–2025, with the strategy and the bar for an edge written down before any backtest ran. Trades at the next day's close, pays costs, and reports a block-bootstrap interval and a deflated Sharpe ratio across all 18 variants tried. The answer is no: net Sharpe −0.41, all 18 variants lose money, and only 8.8% of pairs chosen for being cointegrated stay cointegrated over the next six months, close to the 5% chance would give. The same code earns a Sharpe of 1.9 on data with a real relationship planted in it.

github.com/joshuabarre/statarb

Poker Solver (CFR / CFR+)

Python • game theory

Counterfactual regret minimization, the self-play algorithm behind the bots that beat poker professionals, solving Kuhn poker and Leduc Hold'em. Exploitability is computed exactly with a best response that respects what each player can see: CFR+ gets Leduc to 7.5 × 10−6 chips per hand in 10,000 iterations, and the Kuhn solution lands precisely in Kuhn's 1950 family of equilibria. Along the way: a subtle bug that made CFR+ no faster than CFR, found, fixed, and pinned with a regression test.

github.com/joshuabarre/cfr

Crash-Safe Key-Value Storage Engine

C • POSIX • Make

An embedded database written from scratch: a B+ tree over 4 KB slotted pages, an LRU buffer pool, and write-ahead logging with CRC-guarded records and two-pass crash recovery. Durability is tested the only way that really counts — kill the writer mid-transaction with SIGKILL, reopen, and require every acknowledged write to still be there. 5,800+ checks pass, and group commit raises write throughput 54×, from 288 to 15,495 operations per second.

github.com/joshuabarre/kvstore

Quadrotor Landing (Reinforcement Learning)

Python • PyTorch • Stable-Baselines3 • PyBullet

A 3D quadrotor physics simulator and Gymnasium environment, with a PPO policy that lands on a randomized pad in roughly 100% of episodes at gentle 0.3 m/s touchdowns. Raw motor control plateaued near 50%; a structured attitude-setpoint action space over a 240 Hz inner PD loop, a curriculum on spawn difficulty, and potential-based reward shaping took it the rest of the way. You can fly it manually from the keyboard, then press Enter and watch the policy take over and land it.

github.com/joshuabarre/quadrotor-landing-rl

WATO Autonomous Demo

C++ • Docker • Foxglove • Git

Virtual self-driving car demo with pathing, perception, and navigation highlights.

3D Hand Pose Tracker (Simplified)

Python • OpenCV • MediaPipe • Jupyter

Real-time hand tracking with 97% accuracy and full-joint landmark mapping for gesture-driven UI.

Divinity portrait 1 Divinity portrait 2 Divinity portrait 3

DIVINITY

Co-founded and managed an online clothing brand. Built and maintained the storefront (HTML/CSS/JavaScript), integrated Stripe, and grew Instagram (@divinity yeg) while coordinating drops and customer outreach.

Math

Slide through my proofs page by page . . .

Math page 1 Math page 2 Math page 3 Math page 4 Math page 5 Math page 6 Math page 7 Math page 8 Math page 9 Math page 10 Math page 11 Math page 12
Page 1 / 12

Competitions

Problem-solving under pressure and team engineering.

IMC Prosperity 4 — Algorithmic Trading
Top 10% of 18,800+ teams • 2026

IMC's global trading competition: five rounds of writing Python strategies that trade simulated products against bots. Our team built market making with inventory skew, Ornstein-Uhlenbeck mean reversion, basket-residual arbitrage on products whose prices summed to a synthetic fair value, and options priced with Black-Scholes over Monte Carlo paths of the mean-reverting underlying.

APEGA — Science Olympics (Team Lead)
Second place provincially • Oct 2024 – Apr 2025

Led a 4‑person team through planning, prototyping, and testing of a competition robot that combined a gyroscope, infrared control, and magnetic detection. We achieved reliable underground object identification, tuned stability and response, and presented technical results for a top‑tier provincial finish.

APEGA Science Olympics podium
Provincial 2nd Place
Electric Build
Gumball Mechanism

Experience

Research and engineering roles.

ML Research Engineer
WAT.ai • May 2026 – Present • Waterloo, ON

Reinforcement learning for dual-arm robotic cloth folding. I started by working out why no policy was learning the task, and found three independent reasons: the goal encoded a 180° rotation of a flat sheet rather than a fold, so folding the cloth actually made the score go down; the target corner sat about 8 cm outside the arm's reachable workspace, which I established by sampling 40,000 joint configurations per arm and running forward kinematics; and the environment's IK solver stalled 0.104 m away from solutions that provably existed. A fourth bug faked progress: the reset ignored its random seed, so all 8 parallel environments replayed one identical episode, and a policy that looked like it had reached a 100% grasp rate scored 0% once the cloth's start position varied. I rebuilt it as a reachable edge fold and trained the pipeline end to end — a scripted expert with damped least-squares IK, behavior cloning to 83%, then PPO fine-tuning — reaching up to 100% fold success, against 0% for PPO trained from scratch. It ships as a wrapper that leaves the shared environment untouched, with committed checkpoints and pinned solver versions so it runs straight from a clone.

AI Engineer Intern, Team Lead
ADNN • May 2026 – Aug 2026 • Remote

Led a team of 4 engineers building the AI outreach agents for a B2B platform serving non-profits, replacing manual calling and data entry. I scoped and assigned the work, trained the team on the stack, and reviewed everything they shipped. I built an LLM-powered SMS agent that holds two-way conversations and parses replies into structured records, and a voice agent that autonomously places calls, transcribes them, and feeds the same extraction pipeline. Running across every Canadian province, the agents collected a dataset of 1,200+ entries.

Music

Sound Engineer at CTK + Genesis Canada with a focus on cinematic mixes, live capture, and stage-ready dynamics. Blending performance, production, and engineering into a single, immersive audio identity.

Live sessions, studio takes, and performance-ready sound design.
Mixing Live Sound Stage Design Production
Ninne Preminthunu — Live Session (feat. Apoorva)
Live + Studio • Original performance
0:00

Skills

Languages

Python, C++, C, Java, TypeScript/JavaScript, SQL, Racket

Quant & Math

Probability & stochastic processes, statistical inference, options pricing, game theory, NumPy, pandas, SciPy, statsmodels

ML & Robotics

PyTorch, Stable-Baselines3, Gymnasium, PyBullet, MuJoCo, TensorFlow, OpenCV, MediaPipe, NumPy, pandas

Tools

Git, Docker, Linux, Make, LLDB, TensorBoard, Foxglove, Jupyter, Azure AI, Google Cloud

Certifications

Microsoft Certified: Azure AI Fundamentals (AI-900)

Contact