The syllabus
Choose an idea.
Follow what changes.
Explore a question first, or use the catalogue to go deeper. Every lesson gives you something to inspect or change.
- 22blockchain and DeFi lessons
- 52core machine learning sessions
- 12machine learning deep dives
- 7further explorations
Short tours
Start with a question.
Each tour links a few related lessons. None is a required order: stop after any step, or open a subject for its full chapter list.
What protects my account, and what can still go wrong?
Separate a check at sign-in from access through an already signed-in session.
Before moving on, explain what changed, why it changed and where the example’s limits are.
Why can AI sound confident and still be wrong?
Separate a fluent answer from evidence, and see how rewards can favour the wrong behaviour.
- Check an answer against evidence
- Watch a reward encourage a shortcut
- Keep the fact fixed, change the reward for agreement
Before moving on, explain what changed, why it changed and where the example’s limits are.
How can a machine learn from examples?
Follow an example, reuse a pattern detector, then explore learning from the results of actions.
- Start with examples and predictions
- Find the same pattern in different places
- Explore actions and delayed rewards
Before moving on, explain what changed, why it changed and where the example’s limits are.
Where does DeFi income come from, and how can I lose?
Follow the borrower’s payment, your claim and the cash available to withdraw.
- Follow supplied and borrowed tokens
- Compare interest with losses and withdrawal cash
- Read the receipt a vault gives you
- See where a Morpho vault allocates the assets
Before moving on, explain what changed, why it changed and where the example’s limits are.
What changes when I stake ETH?
Compare rewards and penalties, then distinguish a staking claim from a market sale or withdrawal.
Before moving on, explain what changed, why it changed and where the example’s limits are.
What happens to my money in a pool or prediction market?
Trace what you own, what changes its value, and what has to happen before you can exit.
Before moving on, explain what changed, why it changed and where the example’s limits are.
Computer security
1 new chapter. Follow an access attempt through different checks, including the cases where protection at sign-in is not enough.
- Account security: what stops which attack?
Compare a stolen password, a fake sign-in page and a stolen signed-in session. Try passwords, one-time codes and passkeys, then inspect what each control leaves exposed.
Blockchain and DeFi
Start with the first season if wallets and transactions are new to you. Later lessons link their prerequisites. Staking uses Ethereum as its starting example.
Season 1: What is blockchain?
Fingerprints, blocks, agreement, ownership. The mathematics, hands-on.
- 01 · What is a hash?
Type anything, watch its fingerprint change. Crack a PIN by brute force, watch a birthday-attack collision land, then mine your own block. Hashing is the atom of blockchain: start here.
- 02 · Blocks & chains
Build a block, break a blockchain, then repair it by re-mining. One edit invalidates all of history after it. See why, hands-on.
- 03 · Consensus & proof of work
Explore an attacker’s catch-up race and see how hashpower and the starting deficit affect this simplified model.
- 04 · Wallets, keys & signatures
Generate a real key, sign a real message, verify it, then lose the key and feel exactly what 'not your keys' means.
Season 2: Keeping the keys
Custody, from bedroom to boardroom.
- 05 · Mnemonics & seed phrases
Real BIP39: turn coin flips into 24 words, sabotage the checksum, derive the seed, and learn where the words should live.
- 06 · Hot & cold wallets
Slide across the storage spectrum, fall for a blind-signing trap, then explore a simulated air-gapped signing ceremony in your browser.
- 07 · Multisig: many keys, one vault
Explore a simulated 2-of-3 vault, collect signatures to a threshold, then lose keys on purpose. Bitcoin multisig vs Gnosis Safe, compared.
- 08 · MPC: signing without reassembly
Split a secret with real Shamir sharing, see why splitting isn’t signing, then explore threshold signing without reassembling a key. The custody season finale.
Season 3: Trading with liquidity pools
Swaps, fees, and what an LP actually earns.
- 09 · Uniswap V2: pools, swaps and LP returns
Make a swap, follow the fee, and compare providing liquidity with holding. See why fee income can fall short of impermanent loss.
- 10 · Uniswap V3: concentrated liquidity
Choose a price range. Watch your token inventory change, move out of range, and test whether fees cover the shortfall against holding.
Season 4: Lending and price oracles
Follow borrowed tokens, collateral and the prices that connect them.
- 11 · Aave: lending and collateral
Follow supply and borrowing through a lending pool. Change the collateral price, compare borrowing limits with liquidation thresholds, and watch the health factor respond.
- 12 · Chainlink: prices reach the chain
Combine price observations, trigger a feed update, and interrupt publication. See why an application must check when a price was last updated.
Season 5: Prediction markets
Read the rules, follow the shares, and distinguish a price from a payout.
- 13 · Polymarket: prices, shares and resolution
Split a complete set, fill an order across several prices, and compare selling with settlement. Follow a disputed result through an illustrative resolution process.
Season 6: Staking and access to your assets
Rewards, penalties, market discounts and the path back to your tokens.
- 14 · Native staking: rewards and penalties
Advance a validator scenario. Compare rewards with operating costs, penalties and changes in ETH value, then follow an exit.
- 15 · Liquid staking: claim versus market price
Follow a staking claim through rewards and losses. Compare a market sale with queued redemption and inspect how much can actually be withdrawn.
Season 7: Lending, vaults and net returns
Trace every return to its source, and every loss to the balance sheet.
- 16 · Lending yield: income and withdrawal liquidity
Trace borrower interest to suppliers. Compare accounting value with available cash under normal, stressed and loss scenarios.
- 17 · Liquidations: follow the tokens
Repay debt, transfer collateral and sell into limited liquidity. Check whether an eligible liquidation is executable or profitable.
- 18 · Vault accounting: assets, shares and fees
Deposit assets, receive shares and reconcile gains, fees and losses. Separate the value of a claim from the cash available to redeem it.
- 19 · Morpho vaults: allocation and risk
Allocate across fictional lending exposures. Follow the effect of caps, fees, losses and withdrawal liquidity on the same deposit.
- 20 · Leveraged yield: returns and losses
Combine a staking position and borrowing. Change rates and collateral prices; compare net equity with an unlevered holding.
Season 8: Prices, backing and execution
A quoted value is only one part of what an asset can return.
- 21 · Stablecoins: backing and redemption
Mint and redeem in a fictional reserve-backed system. Compare market price, reserve losses and immediate redemption capacity.
- 22 · Transaction ordering and slippage
Reorder the same swaps against the same initial pool. Inspect each output, minimum-output check and reverted transaction.
Machine learning: the core sequence
Predict, experiment, compare, then save a takeaway. The ML track shows your notebook progress and checks. Optional deep dives sit under the session they extend.
Start with the five-minute primer
Part 1 · Data and the rules of the game
Where the numbers come from, and what a score does not tell you.
Part 2 · Decision trees
Nested cuts you can see, chosen by a search you can check by hand.
Part 3 · Ensembles and random forests
How trees with different errors can make a better prediction together.
Part 4 · Lines, loss and gradients
A weighted sum, a loss that cares about confidence, and a slope.
Part 5 · Perceptron, MLP and backpropagation
Layers that build features, and the bookkeeping that assigns blame.
Part 6 · Training dynamics
Reading curves: capacity, regularisers, folds and shift.
Part 7 · Sequences: RNN and LSTM
Order as information, a fixed-size state, and a gradient that fades.
Part 8 · Embeddings, attention and transformers
Co-occurrence as geometry, then a similarity-weighted average.
Part 9 · Scaling to language models
Subword ids, one distribution at a time, and what scale predicts.
Part 10 · Mixture-of-Experts and capstone
Routing, load balancing, and the pipeline you assemble yourself.
Further ML explorations
Standalone experiments; these do not change the core notebook gates.
- Convolutional neural networks
Move a filter across pixels, inspect a feature map, and compare convolution, ReLU and pooling.
- Reinforcement learning
Train a small gridworld agent. Follow one Q-value update, then compare exploration with its learned policy.
- Reward hacking
Give a courier the wrong reward. Compare its score with completed deliveries, then repair the incentive.
- Hallucination and uncertainty
Compare guessing with abstaining, and check whether evidence actually supports an answer.
- Sycophancy
Change the reward for agreeing with a user. See how the preferred answer can change while the fact stays fixed.
- Retrieval evaluation
Change chunking and retrieval settings. Measure evidence coverage, missing answers and context cost on a fixed question set.
- Diffusion: noise and denoising
Step through a small probability model from noise towards a distribution. Inspect an analytic score and the limits of the illustration.