Apex
Interactive, in-browser visualizations of how computers work — networking, cryptography, transport and the web, distributed systems, databases, algorithms, hardware and OS internals. Build it, break it, watch it run.
Network basics
- Network
- L2 switch
- Spanning Tree
- ARP resolution
- WiFi CSMA/CA
- DHCP (DORA)
- NAT / PAT
- NAT traversal
- TTL & checksum
- Traceroute
- Subnetting
- IP fragmentation
- Path MTU Discovery
- IPv4 vs IPv6
- Happy Eyeballs
- Nagle & delayed ACK
- IPv6 SLAAC
- ICMP messages
- Anycast
- Multicast & IGMP
- WPA2 handshake
- 802.1X / EAPOL
- VLAN tagging
- NTP clock sync
- How GPS finds your position
Routing & naming
- Routing & paths
- How a router forwards (longest-prefix)
- Distance-vector
- OSPF link-state
- BGP best-path
- BGP hijack
- RPKI (route origin validation)
- BGP route reflectors
- BGP route flap damping
- MPLS switching
- Segment routing
- VXLAN overlay
- VRRP redundancy
- IPsec ESP (VPN)
- WireGuard (cryptokey routing)
- ECMP load spreading
- DNS journey
- DNSSEC chain
- DNS cache poisoning
- mDNS & DNS-SD
- Encrypted DNS
Transport & web
- TCP handshake
- TIME_WAIT & ports
- TCP Fast Open
- 0-RTT resumption & replay
- TCP congestion
- TCP CUBIC
- TCP BBR
- Flow control
- Silly window syndrome
- TCP SACK
- ARQ (GBN vs SR)
- RTO & Karn
- Bandwidth-Delay Product
- M/M/1 queueing
- Bufferbloat
- ECN marking
- QoS scheduling
- H2/QUIC flow control
- HTTP/2 multiplexing
- QUIC vs TCP
- QUIC connection migration
- HTTP/3 & QPACK
- gRPC & protobuf
- WebSocket
- Realtime: SSE vs WS
- SCTP multi-homing
- Multipath TCP
- CDN & caching
- Service Worker caching
- Conditional & range
- Rate limiting
- Leaky bucket
- GCRA (virtual scheduling)
- Retry & circuit breaker
Cryptography
- Cryptography
- Classical ciphers
- One-time pad
- AES internals
- ECB penguin / modes
- Feistel / DES
- CTR & AEAD
- ChaCha20
- Poly1305 MAC
- Timing attacks
- SHA-256 internals
- Broken hashes
- Length-extension attack
- HMAC
- Padding oracle attack
- Montgomery multiplication
- How public-key crypto works
- RSA
- Is this number prime? (Miller–Rabin)
- Finding a factor by accident (Pollard’s rho)
- One number, many remainders (Chinese Remainder Theorem)
- Dividing mod m (extended Euclid & the modular inverse)
- Elliptic curves
- Exponentiation that doesn’t leak (Montgomery ladder)
- ECDSA & nonce reuse
- Square roots mod a prime (Tonelli–Shanks)
- EdDSA (Ed25519)
- Pedersen commitment
- Blind signatures
- Verifiable random function
- Oblivious transfer
- Compute on secrets (Yao garbled circuits)
- Hiding what you access (Path ORAM)
- Fetching a record privately (PIR)
- Homomorphic (Paillier)
- ElGamal encryption
- Zero-knowledge (Schnorr)
- One signature for a thousand signers (BLS aggregation)
- Proving a huge sum cheaply (sumcheck)
- A clock you can’t rush (verifiable delay function)
- Diffie–Hellman
- Cracking a discrete log (baby-step giant-step)
- DH man-in-the-middle
- TLS downgrade
- How HTTPS secures a connection
- Password hashing
- Post-quantum (LWE)
- How LLL reduces a lattice (& breaks crypto)
- NTT (Kyber engine)
- Quantum key (BB84)
- Secret sharing
- Envelope encryption (KMS)
- Verifiable secret sharing
- Threshold signatures
- Proof of Work
- Double Ratchet
- X3DH key agreement
- MLS / TreeKEM (group messaging)
- Merkle tree
- A whole set in one number (RSA accumulator)
- Lamport signatures
- Hash chain
Security & web
- Certificates (PKI)
- Kerberos
- Revocation & CT
- Certificate Transparency
- Sigstore (keyless signing)
- Remote attestation (TEE)
- SSH transport
- SSH tunneling (-L/-R/-D)
- Identity & Auth
- JWT & alg=none
- Email auth (SPF/DKIM)
- How your 2FA code works (TOTP)
- Passkeys (WebAuthn)
- Cookies & sessions
- CORS / Same-Origin
- Injection (SQLi/XSS)
- How a buffer overflow hijacks a program
- How NX / DEP stops your shellcode
- How ROP bypasses NX
- How ASLR randomizes the addresses
- How a stack canary catches the overflow
- How CFI and shadow stacks kill ROP
- Request smuggling
- SSRF
- XXE (XML entities)
- DNS rebinding
- ARP spoofing (MITM)
- Tor / onion routing
- Censorship circumvention
- ECH (encrypted SNI)
- Onion services (.onion)
- Mix networks (batching anonymity)
- Traffic correlation attack
- Firewall rules (iptables)
- SIEM log correlation
- seccomp (syscall sandbox)
- Linux capabilities
- eBPF & the verifier
- Honeypot & honeytokens
- Port knocking
- CSRF & SameSite
- DNS tunneling (C2/exfil)
- IDS / IPS detection
- Clickjacking
- HSTS & SSL stripping
- Open redirect
- Prototype pollution
- Hash flooding (DoS)
- ReDoS (regex DoS)
- Subdomain takeover
- Site isolation
- Subresource Integrity
- Content-Security-Policy
- Attacks
Data & encoding
- Encoding
- How a computer stores a fraction (IEEE-754)
- Why encoders use Gray code (one bit at a time)
- Varint & zigzag
- Base58 & Base58Check
- Line coding
- LZ77 compression
- LZW compression
- Burrows-Wheeler
- How genomes are assembled (de Bruijn graphs)
- Move-to-front
- Content-defined chunking
- rsync (delta sync)
- Finite automata (DFA)
- Huffman coding
- How JPEG compresses an image
- How content-aware resize works (seam carving)
- How video inter-frame compression works
- How MP3 shrinks audio (psychoacoustic masking)
- How dithering fakes gray with black & white
- Why 128 isn’t half-bright (gamma)
- Why RGB blends look muddy (OKLab)
- How HDR fits the sun on your screen (tone-mapping)
- Golomb-Rice coding
- Elias γ/δ coding
- Gorilla (time-series)
- COBS (byte stuffing)
- Arithmetic coding
- CRC-32 walk
- Hamming(7,4) code
- Reed-Solomon
- Viterbi / convolutional
- Error control
- How a barcode works (UPC check digit)
- How a QR code is built (Reed-Solomon + masking)
Distributed systems
- Consistent hashing
- Jump consistent hash
- Rendezvous hashing (HRW)
- Chord DHT
- Kademlia DHT (XOR)
- BitTorrent / torrents
- Magnet links / infohash
- Load balancing
- HyperLogLog
- Count-Min Sketch
- Publishing data without leaking you (differential privacy)
- MinHash (set similarity)
- Majority vote
- Reservoir sampling
- Bloom filter
- Snowflake IDs
- Lamport clocks
- Chandy-Lamport snapshot
- Failure detectors (φ)
- Tail latency (p99)
- HdrHistogram (percentiles)
- DDSketch (quantiles)
- Stream watermarks
- SWIM failure detection
- Hybrid Logical Clocks
- TrueTime & commit-wait
- Vector clocks
- Causal broadcast
- CRDTs
- Operational transform
- Gossip spread
- Read-repair & anti-entropy
- Read repair (fix-on-read)
- Hinted handoff
- Paxos consensus
- Leader election
- Fencing tokens
- Leases & clock skew
- PBFT (Byzantine)
- Raft election
- Raft log replication
- Consistency models
- CAP theorem
- Quorum (R+W>N)
- Replication (WAL)
- Chain replication
- Two-phase commit
- Three-phase commit
- Saga pattern
Operations & SRE
- Deployment strategies
- Liveness vs readiness
- Autoscaling (HPA)
- Kubernetes pod scheduling
- Universal Scalability Law
- PID controller
- How a Kalman filter tracks
- SLOs & error budgets
- Distributed tracing
- Feature flags
- Graceful shutdown
- Idempotency keys
- Load shedding
- Bulkhead isolation
- Chaos engineering
- Request coalescing
Storage & databases
- B+tree index
- How a hash index grows (extendible hashing)
- How Git stores your code
- LSM-tree
- Page replacement
- MVCC isolation
- Write-Ahead Log
- Skip list
- Locking & deadlock
- When is an interleaving safe? (conflict serializability)
- Join algorithms
- How to join tables bigger than RAM (grace hash join)
- Query planner (cost)
- RUM amplification
- Trie (prefix tree)
- HAMT (persistent map)
- Hash table collisions
- Cuckoo hashing
- Cuckoo filter
- Robin Hood hashing
- Geohashing
- k-d tree (nearest neighbor)
- Union-Find
- Fenwick tree
- Sparse table (RMQ)
- Cartesian tree (RMQ=LCA)
- Roaring bitmaps
- Bitmap index
- Columnar storage (Parquet)
- Learned index
- Binary heap
- Pairing heap (mergeable)
- Segment tree
- Interval tree
- AVL tree
- Splay tree
- Treap (randomized BST)
- Piece table (text editor)
- Rope (text editor tree)
- Gap buffer (Emacs)
- The sort in your standard library (Timsort)
- Sorting algorithms
- Kadane (max subarray)
- Longest increasing subseq
- Quickselect (k-th)
- Median of medians
- Dutch national flag
- Shuffle bias (Fisher–Yates)
- Alias method (weighted sampling)
- Estimating π by throwing darts (Monte Carlo)
- Fitting a line through 50% outliers (RANSAC)
- KMP string search
- Rabin-Karp
- Aho-Corasick
- Boyer-Moore search
- Suffix array
- Manacher (palindromes)
- Z-algorithm
- Edit distance
- How diff works (git diff, code review)
- How fuzzy search finds typos (BK-tree)
- 0/1 Knapsack (DP)
- Topological sort
- A* pathfinding
- How a SAT solver works (DPLL)
- Max-flow / min-cut
- Minimum spanning tree
- Strongly connected comps
- 2-SAT (implication graph)
- Floyd-Warshall (all-pairs)
- Cycle detection (tortoise & hare)
- Bellman-Ford & arbitrage
- How Google first ranked the web (PageRank)
- How k-means finds clusters (unsupervised)
- Clustering any shape + finding outliers (DBSCAN)
- Soft clustering with Gaussians (GMM / EM)
- How PCA compresses data (principal components)
- How SVD compresses an image (low rank)
- The first neural net (perceptron & XOR)
- From a hard line to a probability (logistic regression)
- The widest street between classes (SVM)
- How a decision tree splits data (Gini)
- Why a forest beats one tree (bagging)
- Learning from residuals (gradient boosting)
- Newton's method
- How conjugate gradient beats zigzag descent
- How linear programming finds the best plan (simplex)
- Fast Fourier Transform
- Two oscillators, a thousand timbres (FM synthesis)
- Multi-resolution & compression (Haar wavelet)
- How a phone hears touch-tones (Goertzel)
- How a tuner hears pitch (autocorrelation)
- How to synthesize a plucked string (Karplus-Strong)
- The shape of every note (ADSR envelope)
- How reverb puts you in a cathedral (convolution)
- The filter inside every EQ (biquad)
- Fast inverse square root
- Kahan summation
- How calculators do trig (CORDIC)
- Karatsuba multiplication
- Simulated annealing
- How game AI searches (alpha-beta)
- How a neural network learns (backprop)
- How word embeddings work (word2vec)
- How vector search finds nearest embeddings (HNSW)
- How attention works (transformers)
- Mixture of Experts (MoE)
- Speculative decoding
- KV cache & PagedAttention
- Weight quantization (int4/int8)
- Bresenham line drawing
- How curves are drawn (Bézier & de Casteljau)
- How ray tracing renders an image
- How a GPU rasterizes a triangle
- How 3D becomes 2D (perspective & the texture warp)
- How GPUs smooth jagged edges (MSAA)
- How game physics simulates rope & cloth
- How galaxies simulate gravity fast (Barnes-Hut)
- Why the weather is unpredictable (chaos)
- Why simulated orbits drift (symplectic integrators)
- How ray-marching renders with math (SDF)
- How 3D rotation really works (quaternions & slerp)
- Convex hull
- How games detect collisions (SAT)
- How games skip the n² collision test (spatial hash)
- Marching squares
- Voronoi diagram
- Delaunay triangulation
- Generating maps by constraints (wave function collapse)
- Perlin noise
- Poisson-disk sampling
Systems & OS
- CPU scheduling
- Linux CFS scheduler
- How Linux schedules now (EEVDF)
- Priority inversion
- How a CPU runs an instruction
- How a calculator parses math (shunting-yard)
- How code becomes machine code
- The form every optimizer uses (SSA & phi nodes)
- How variables get registers (graph coloring)
- The compiler’s last polish (peephole optimization)
- How types are inferred with none written (Hindley-Milner)
- How a bytecode VM runs code
- How WebAssembly sandboxes untrusted code
- How a JIT makes code fast
- Pipeline hazards
- Branch prediction
- How the CPU prefetches memory (stride prefetcher)
- Code with no branches (branchless / cmov)
- Out-of-order execution
- Spectre (speculation)
- How Meltdown reads kernel memory (transient execution)
- How Rowhammer flips bits in DRAM (fault injection)
- The kill chain & defense-in-depth (attacker’s lens)
- Copy-on-write fork
- Page-table walk
- Process memory layout
- How a page fault brings in memory
- inode & indirect blocks
- TLB (address cache)
- How a VM translates memory (nested paging)
- NUMA & first-touch
- Buddy allocator
- One block, one pointer (arena allocator)
- How garbage collection works
- How a copying collector compacts the heap (Cheney)
- How reference counting frees memory
- How Rust ownership prevents memory bugs
- Timing wheel
- epoll & C10k
- How a syscall enters the kernel
- How a container isolates a process
- cgroups (resource limits)
- OverlayFS (container layers)
- Container bridge networking
- How a debugger breakpoint works
- futex (fast mutex)
- RCU (read-copy-update)
- ABA problem (lock-free)
- seqlock (torn reads)
- io_uring (async I/O)
- Lamport bakery (mutex)
- MESI cache coherence
- False sharing
- Memory consistency (TSO)
Hardware
- Transistors → logic gates
- Binary adder (gates→math)
- Flip-flop (how bits are stored)
- ALU (the compute core)
- How hardware multiplies fast (Wallace tree)
- Address decoding & buses
- CPU cache (sets & ways)
- How RAM works (DRAM)
- Memory, up close (guided tour)
- Polling · interrupts · DMA
- How a keystroke reaches the screen
- How an SSD works (flash/FTL)
- How flash stores a bit (floating gate)
- GPU / SIMT execution
- How a TPU multiplies matrices (systolic array)