↓ Skip to main content
Jianchao Li

Jianchao Li

I’m a research engineer in Zurich. I write about investing, AI, and software engineering.

Investing

Low-cost index investing, explained from first principles.

Bagels and Doughnuts: Where Stock Returns Actually Come From

·12 mins
When a stock fund returns 10% a year, where does that money actually come from? This post breaks a stock’s return into its three sources (dividends, earnings growth, and the change in what investors are willing to pay) and shows why the third one can swing a single decade a lot but fades over a lifetime.

All 4 Investing posts →

AI

How models are trained, and what building with AI is like in practice.

Understanding Backpropagation

··14 mins
I will explain how to understand and implement backpropagation, the mechanism used to train AI models, with computational graphs and intuitions.

No, AI Is No Longer Hype

··7 mins
Some people still dismiss AI as hype that can only handle simple tasks. I disagree. Here’s how AI has fundamentally changed the way I write, learn, and build.

Vibe Coding Portfolio Playground

··6 mins
I built a portfolio analysis tool entirely through vibe coding — 100% of the code was written by AI. Here’s what I made and what I learned.

All 4 AI posts →

Software Engineering

System design, debugging, and the craft of building software.

Rate Limiters: Five Algorithms in Python

··6 mins
I will explain five algorithms for rate limiters with example Python implementations: token bucket, leaky bucket, fixed window counter, sliding window log, and sliding window counter.

Why Every Software Engineer Should Use AI

··4 mins
This post shares my perspectives on why every software engineer should use AI: the productivity gains it enables and the shift it is driving across the industry.

Debugging Hidden GPU Processes in PyTorch

··7 mins
When nvidia-smi shows free GPUs but PyTorch throws OOM errors, here’s how to find and kill orphaned processes still holding the GPUs.

All 3 Software Engineering posts →

Projects

Portfolio Playground

A web app for building custom investment portfolios, visualizing historical performance, and comparing risk/return metrics.

Browser ML Demos

Interactive machine learning demos that run entirely in your browser using Transformers.js. No server required — all inference happens locally on your device.

Interactive Math Demos

Explore fascinating mathematical concepts through interactive visualizations and simulations — right in your browser.

All posts by date →