Stephen Diehl
Stephen Diehl
Index
Blog
Python
Mathematics
Machine Learning
Humor
Logic Programming
Public Policy
Finance
Functional Programming
Compilers
Formal Methods
Contact Me
PGP Key
Github
Bluesky
LinkedIn
Substack
RSS
Stephen Diehl
Index
Blog
Python
Mathematics
Machine Learning
Humor
Logic Programming
Public Policy
Finance
Functional Programming
Compilers
Formal Methods
Contact Me
PGP Key
Github
Bluesky
LinkedIn
Substack
RSS
Tags
Typechecker Zoo
compilers
type theory
formal methods
August 15, 2025
The Stochastic Code Monkey Theorem
ai
August 12, 2025
It Would Be Good if the AI Bubble Burst
ai
July 18, 2025
Only Solution to the Attention Economy is to Opt Out
July 15, 2025
Fast Tensor Canonicalization in Rust
math
rust
mathematics
June 29, 2025
Fine-tuning With Tool Calling
ai
June 23, 2025
Program Synthesis: The λ in the Machine
ai
June 22, 2025
The Future of Maths May Be Deeply Weird
math
philosophy
mathematics
June 11, 2025
Does the Star Trek Computer Run on COBOL?
philosophy
humor
June 5, 2025
Interfacing MCP with Combinatorial, Convex, and SMT Solvers
python
ai
June 2, 2025
Remote MCP Servers
ai
python
May 26, 2025
Adventures in Symbolic Algebra with Model Context Protocol
ai
math
python
May 18, 2025
Using CUDA Deep Neural Network (cuDNN) in Python
ai
python
May 15, 2025
The Kardashev-Marx Scale
economics
humor
May 5, 2025
AI Slopocalypse 2027
ai
humor
May 2, 2025
Attention Wasn't All We Needed
ai
deep learning
transformers
python
April 29, 2025
MLIR Part 8 - GPU Compilation with MLIR
ai
python
llms
compilers
mlir
April 19, 2025
MLIR Part 7 - Transformers
ai
python
llms
compilers
mlir
April 11, 2025
MLIR Part 6 - Specializing Python with E-graphs
ai
python
llms
compilers
mlir
March 17, 2025
MLIR Part 5 - Neural Networks
ai
python
llms
compilers
mlir
March 15, 2025
MLIR Part 4 - Linear Algebra in MLIR
ai
python
llms
compilers
mlir
March 14, 2025
MLIR Part 3 - Affine Dialect and OpenMP
ai
python
llms
compilers
mlir
March 13, 2025
MLIR Part 2 - Memory in MLIR
ai
python
llms
compilers
mlir
March 12, 2025
MLIR Part 1 - Introduction to MLIR
ai
python
llms
compilers
mlir
March 10, 2025
MLIR Part 0 - Installing MLIR
mlir
llvm
compilers
python
ai
March 7, 2025
Four-Fold Logic with Lean
formal
logic-programming
lean
March 6, 2025
SGLang on AMD MI300X
ai
March 4, 2025
How to Make a Universe
physics
February 16, 2025
The FlashAttention CUDA Kernel Line by Line
math
ai
February 11, 2025
Training with GRPOTrainer
ai
python
llms
February 7, 2025
Enterprise Software in 2025
humor
January 15, 2025
The Post-literate Economy
humor
January 9, 2025
Sci-fi Hidden Gems
science-fiction
December 21, 2024
The Sybaritic Economy
humor
December 10, 2024
Process Reward Models
ai
python
llms
December 1, 2024
Introduction to Fine-tuning Large Language Models
ai
python
November 25, 2024
Hymba : Mamba × Transformers
ai
ssm
November 20, 2024
Setting up a Nvidia GH200 for Development
cuda
ai
hardware
linux
November 20, 2024
Dependent Types in 200 Lines of Python
mathematics
logic
fp
November 18, 2024
Setting up PyTorch for OCaml
ocaml
cuda
python
November 17, 2024
New Rank 29 Elliptic Curve
mathematics
November 14, 2024
Tiny GraphRAG (Part 2)
ai
python
November 12, 2024
Tiny GraphRAG (Part 1)
ai
python
November 4, 2024
The Limitations of RAG
ai
humor
November 2, 2024
AGI Discourse as Kayfabe
ai
September 14, 2024
Monte Carlo Tree Search
ai
python
September 4, 2024
Types of Types: Common → Exotic
formal
September 4, 2024
Fine-tuning with ORPO and Unsloth
ai
python
llms
September 3, 2024
Pi from String Amplitudes
mathematics
September 1, 2024
Diaconescu's Theorem
mathematics
logic
August 5, 2024
A Rapid Tutorial on Unsloth
ai
python
July 28, 2024
Basic Formal Ontology
logic-programming
ontology
July 21, 2024
Volatility Surface
finance
python
March 1, 2024
Silicon Valley's (totally not a cult) Ideologies
philosophy
humor
February 20, 2024
Slippage Modelling
finance
February 10, 2024
Portfolio Rebalancing
finance
python
cvxopt
February 5, 2024
Portfolio Theory with CVXOPT
finance
portfolio theory
cvxopt
python
mathematics
February 1, 2024
E-Graphs in Rust
programming
rust
compilers
February 1, 2024
Proving Trivial Theorems in Lean
mathematics
formal
February 1, 2024
Cooking Logics with Soufflé
datalog
logic-programming
fp
February 1, 2024
Enough Numbers to Build a Universe
mathematics
physics
February 1, 2024
Word Calculators are Useful, but they're not Smart
ai
February 1, 2024
Using SMT Solvers to Manage JIRA Tickets
programming
python
formal
February 1, 2024
Why I Left Twitter
October 1, 2023
Best Sci-Fi Books of the 21st Century
science-fiction
June 21, 2023
Going Deep on DeepSpeed
ai
June 5, 2023
GPT-2 in One Function
ai
python
April 29, 2023
Constraint Solving with MiniZinc
logic-programming
formal
April 21, 2023
Linking CUDA Kernels into Python
November 18, 2022
Simulating Qubits with Python (Classically)
physics
python
quantum mechanics
April 28, 2022
Enterprise Eldritch Horrors
humor
May 9, 2021
Exotic Programming Ideas, Part 2 (Term Rewriting)
fp
March 8, 2021
Exotic Programming Ideas, Part 4 (Datalog)
fp
logic-programming
March 4, 2021
Exotic Programming Ideas, Part 3 (Effect Systems)
fp
March 3, 2021
Exotic Programming Ideas, Part 1 (Module Systems)
fp
March 1, 2021
Notes on Trekonomics
economics
January 9, 2021
Listicle of Buddhist Lists
philosophy
buddhism
humor
January 15, 2019
What are Elementary Particles?
physics
November 11, 2018
Integral Zoo
mathematics
May 2, 2018
Derivative Zoo
mathematics
May 1, 2018
Using Google OR-Tools to do Answer Set Programming
python
optimization
formal
logic-programming
February 1, 2018
The Y-Combinator in Python
python
lambda calculus
August 10, 2017
What Is Not Art?
philosophy
art
June 15, 2017
Dive into GHC: Targeting Core
July 12, 2016
Dive into GHC: Intermediate Forms
July 11, 2016
Dive into GHC: Pipeline
June 21, 2016
Building a Better Custom Haskell Prelude
haskell
April 7, 2016
Cooking Classes with Datatype Generic Programming
March 3, 2016
The Joy and Agony of Haskell in Production
haskell
February 16, 2016
From Newton to Einstein and Back
physics
relativity
mathematics
February 1, 2016
Vim and Haskell in 2016
January 24, 2016
Functional Programming, Abstraction, and Names
January 9, 2016
Monads to Machine Code
haskell
compilers
January 4, 2016
A Haskell Implementation Reading List
December 14, 2014
Scattering Amplitudes in Quantum Field Theory
physics
mathematics
April 25, 2014
A Vim + Haskell Workflow
October 18, 2013
From Adjunctions to Monads
haskell
category theory
August 29, 2013
Haskell for Web Developers
haskell
July 18, 2013
Monads Made Difficult
haskell
category theory
July 7, 2013
Space-time Algebra in Python
mathematics
python
geometric algebra
April 21, 2013
The "Warp Drive" Equations
physics
python
February 1, 2013
Using libjit in Anger
c
compilers
January 1, 2013
A Haskell Reading List
haskell
fp
August 15, 2012