Runnable Textbooks

Open-source textbooks translated into runnable code and diagrams.

How to read these: are you new to programming languages?

Every page has runnable code. If you're new to the languages used on this site, start here.

๐Ÿ“„ Language Role on this site
๐ŸŸข Scheme Primary REPL on every page. Functional, minimal syntax. start
๐Ÿ”ต Python Imperative equivalent in collapsible blocks. Familiar syntax. start

Powered by PageLeft

Mathematics

โˆซCalculusActive Calculus
โˆžReal AnalysisJiล™รญ Lebl
๐Ÿ“Linear AlgebraJim Hefferon
๐Ÿ”—Abstract AlgebraTom Judson
๐Ÿ”ขDiscrete MathOscar Levin
#Number TheoryJim Hefferon
โ–ณGeometryWikipedia + june.kim
๐Ÿ”‘LogicCraig DeLancey
โœŽProofsJim Hefferon
๐ŸฑCategory TheoryBartosz Milewski

Computer Science

๐Ÿช„ProgrammingAbelson & Sussman (SICP)
โš™AlgorithmsNievergelt & Hinrichs
๐Ÿ”€Theory of ComputationMaheshwari & Smid
๐Ÿ–ฅOperating SystemsWikipedia
๐Ÿ—„DatabasesWikipedia
๐ŸŒDistributed SystemsWikipedia + Cambridge CS
๐Ÿ”CryptographyWikipedia
๐Ÿค–Machine LearningMML + Dive into Deep Learning

Science & Engineering

โš›PhysicsBenjamin Crowell
๐ŸŽ›Control TheoryWikipedia
๐ŸŽฐProbabilityGrinstead & Snell
๐Ÿ“ŠStatisticsOpenIntro
๐Ÿ“กInformation TheoryShannon 1948 + Wikipedia

Social Science

๐ŸŽฒGame TheoryJennifer Nordstrom
๐Ÿ’ฐEconomicsSmith, Ricardo, Marshall + Wikipedia
๐Ÿ“ˆFinanceOpenStax + MIT OCW (Andrew Lo)
๐Ÿ“‰Finance IIMIT OCW 18.S096 + 15.450
๐Ÿง Cognitive ScienceLovelace textbook

Papers

๐Ÿž Natural Breadcrumbs Applied category theory papers: probability, program logics, and games โ€” made runnable
โœ๏ธ Natural Framework Proof The Natural Framework proof, file by file — plain English + Lean 4
๐Ÿ“ Vector Space Proof VCG on Gaussian embeddings is welfare-optimal and DSIC — Lean 4
๐Ÿ”ฌ The Scientific Method Bacon to Mayo and beyond: four centuries of arguing about what counts as knowledge
๐Ÿ›๏ธ Cognitive Architecture Minsky to Soar to transformers to LLM agents
๐Ÿ’Ž Auction Theory Papers behind the Vector Space ad auction series
โœ๏ธ Prose Writing Aristotle to Google: learn to write clearly, with interactive practice
โš– The Commons Who owns knowledge, and what happens when the answers stop working

Further reading (external)

Permissive-licensed sources worth reading directly.

Logic & Foundations

Mathematics

Computer Science

Optimization

Science


jkBook notes (52 posts, 2012-2023) ยท jkPoetry โ€” the same ideas as Natural Breadcrumbs, before the math


This site is licensed CC BY-SA 4.0. Fork it, build on it, keep it open.

june.kim