Category Theory for Programmers
This is an unofficial PDF version of "Category Theory for Programmers" by Bartosz Milewski, converted from his blogpost series (with permission!)
The best way to build the book is using the Nix package manager. After installing Nix, type
nix-shell in the root directory of the project. This will download all the needed dependencies and tools to build the book (TeXLive, required fonts and packages, Pygments theme for syntax highligting, etc.)
When the download is complete, and you're prompted with a shell, use the instructions below to build the book.
src directory contains the LaTeX sources. To recompile the book, go there and enter:
To build the Scala edition, type:
$ make scala
Upon successful compilation, the files will be placed in the
out directory next to
preamble.tex contains all the configuration and style declarations.
PDF LaTeX source and the tools to create it are based on the work by Andres Raba et al., available here: https://github.com/sarabander/sicp-pdf.
The book content is taken, with permission, from Bartosz Milewski's blogpost series, and adapted to the LaTeX format.
Thanks to the following people for contributing corrections/conversions and misc:
- Oleg Rakitskiy
- Jared Weakly
- Paolo G. Giarrusso
- Adi Shavit
- Mico Loretan
- Marcello Seri
- Erwin Maruli Tua Pakpahan
- Markus Hauck
- Yevheniy Zelenskyy
- Ross Kirsling
- ...and many others!
The original blog post acknowledgments by Bartosz are consolidated in the Acknowledgments page at the end of the book.
Note from Bartosz: I really appreciate all your contributions. You made this book much better than I could have imagined. Thank you!
The PDF book,
.tex files, and associated images and figures in directories
src/content are licensed under Creative Commons Attribution-ShareAlike 4.0 International License (cc by-sa).
The script files
scraper.py and others are licensed under GNU General Public License version 3 (for details, see LICENSE).