say hi
LUKAS MÜHRKE · LONG-FORM TUTORIALS

Things I built and
wrote up properly.

Longer pieces than the main site has room for — each one a real build, worked through in full, with the interesting parts running live in the browser rather than just described.

01

Everything the hardware can actually do

Saturating a Ryzen 9950X, an RTX 5090, and an M2 Max with Rust — scalar, threads, SIMD, and eventually the GPU — using the Mandelbrot set as the vehicle.

rustparallelismSIMDWebGL2
02

Foundations for structured state space models

Prequel notes: linear systems, realisation theory, the Kalman filter, and the approximation theory underneath S4 and Mamba — every figure computed live in the browser.

linear systemsKalman filterapproximation theoryKaTeX
03

SSMs, explained for Transformer people

The bridge notes: why a fixed-size recurrent state trades a KV cache for a recall ceiling, the state-space-duality result that makes attention and SSMs two views of one object, and why 2026 converged on hybrids.

SSMsattentionMamba-2survey
04

What a linear recurrence can remember

Lecture notes on the mathematics of state space models, from a bare linear ODE to Mamba‑3, with the central derivations executed live in the browser.

SSMsMambalinear algebraKaTeX
05

Ten million particles, two GPUs, one C++ core

A Particle Life clone built from scratch in C++, from a GPU “hello world” through a CPU baseline to Metal on an M2 and CUDA on an RTX 5090, spatially accelerated to ten million particles.

C++MetalCUDAbuild log
06

Write the kernel that no library ships for you

A fused selective scan — the recurrence at the heart of Mamba — written in Triton, from a five-line hello-world kernel through a hand-derived backward pass, benchmarked on an RTX 5090.

TritonMambaGPU kernelsbuild log
07

The flock is trivial. The fourth axis is not.

Boids in 2D, 3D and 4D from one dimension-free core: the density law behind the neighbourhood radius, domains with no walls, two perspective divides, six planes of rotation, and the neighbour search that lets a million of them run.

simulation4Dspatial hashbuild log
08

Nine keys, every risk, one small board

Part 0 of a low-profile split keyboard: a 3 × 3 test board that has to prove Hall-effect switches, per-key RGB, Bluetooth, two USB-C ports and Qi charging can share one magnetic field, one battery and one radio.

hardwarenRF52840KiCadRust
09

How to build everything, in three sheds

Not a real plan: a semiconductor fab in the garden, from an ISO 3 cleanroom and a home-made EUV source to nanosheet logic, DRAM and a 512 GB HBM package. The physics is real, the premise is not, and there are fifteen ways to leave early.

semiconductorslithographyprocessnot serious