Interactive Engineering Labs

Stop memorizing.Start understanding how software works.

Explore software concepts through interactive simulations, prediction challenges, implementation walkthroughs, failure scenarios, and production-grade code.

Start an ExperimentSelect Primitive
Run Experiment
TARGET:/learn/gradient-descent
All Labs
Live Experiment

Gradient Descent

Loss
25.000
Learning Rate
0.15
Iteration
0
MINIMUM
Explore the full lab
The Invariants Loop

How Engineers Actually Master Software Mechanics

Move from deconstructing failures to building resilient primitives with production-grade code.

01DECONSTRUCT

Problem

Witness how burst traffic, network partitions, and jitter trigger silent system failures.

02SANDBOX

Visualize

Experiment directly with live token buckets, circuit transitions, and SVG hash rings.

03BLUEPRINT

Build

Trace data structures, synchronization primitives, and algorithmic models from first principles.

04STRESS TEST

Break

Inject poison pills, simulated GC freezes, clock drift, and split-brain scenarios.

05SHIP

Production

Inspect idiomatic, production-grade reference implementations in Go, TypeScript, Python, and Java.

Curriculum Catalog

Foundational Labs

View Full Catalog & Filters
Distributed SystemsIntermediate

Rate Limiting

Control ingress throughput and defend upstream services against resource exhaustion, DDoS, and cascading failure.

~25 minRun Experiment
ReliabilityIntermediate

Circuit Breaker

Prevent cascading failure by detecting downstream distress, fast-failing traffic, and orchestrating controlled probe recoveries.

~25 minRun Experiment
ReliabilityBeginner

Retry + Exponential Backoff

Survive transient network anomalies by progressively backing off retry attempts with randomized jitter to prevent synchronized retry storms.

~20 minRun Experiment
ReliabilityIntermediate

Idempotency

Guarantee that repeating an identical mutating operation produces the exact same system state and response without duplicate side effects.

~25 minRun Experiment
DataIntermediate

Caching Strategies & Invalidation

Accelerate read throughput by orders of magnitude while mastering Cache-Aside, Write-Through, stampede defense, and cache consistency.

~30 minRun Experiment
MessagingIntermediate

Message Queues & Producer-Consumer

Decouple system components, absorb asynchronous traffic spikes, and manage worker task distribution with acknowledgements and Dead-Letter Queues.

~25 minRun Experiment
MessagingIntermediate

Publish-Subscribe & Event Fan-Out

Broadcast domain events to multiple independent subscribers without coupling publishers to consumer implementations or availability.

~25 minRun Experiment
Distributed SystemsAdvanced

Consistent Hashing & Ring Partitioning

Distribute keys across a dynamic cluster of nodes so that adding or removing a node rehashes only K/N keys rather than 100% of the dataset.

~30 minRun Experiment
Distributed SystemsAdvanced

Distributed Locks & Fencing Tokens

Coordinate mutual exclusion across independent processes and survive node crashes, network pauses, and GC stalls using leases and monotonic fencing tokens.

~30 minRun Experiment
DataAdvanced

Replication & Quorum Consistency

Replicate data across fault-tolerant nodes and balance consistency versus latency using Write (W) and Read (R) quorums.

~35 minRun Experiment
Machine LearningBeginner

Linear Regression

Fit hyperplanes to multidimensional feature spaces by minimizing quadratic prediction residuals via Ordinary Least Squares and gradient descent.

~20 minRun Experiment
Machine LearningBeginner

Gradient Descent

Iteratively optimize multi-dimensional non-linear objective functions by navigating the negative gradient vector across high-dimensional loss landscapes.

~25 minRun Experiment
Machine LearningBeginner

Classification & Decision Boundaries

Partition feature spaces into discrete category regions using linear decision hyperplanes and non-parametric neighborhood boundaries.

~25 minRun Experiment
Machine LearningIntermediate

K-Means Clustering

Partition unlabeled multidimensional observations into K cohesive clusters via iterative Expectation-Maximization and Voronoi tessellation.

~25 minRun Experiment
Machine LearningBeginner

Decision Trees

Recursively partition feature space into orthogonal axis-aligned rectangular hypercubes using information-theoretic split criteria.

~20 minRun Experiment
Deep LearningIntermediate

Neurons & Forward Propagation

Compose linear affine transformations with non-linear activation functions to compute hierarchical feature representations across deep networks.

~25 minRun Experiment
Deep LearningIntermediate

Activation Functions

Inject non-linearity into deep neural computation graphs to prevent mathematical collapse and govern gradient flow during backpropagation.

~20 minRun Experiment
Deep LearningAdvanced

Backpropagation

Propagate prediction error backward through arbitrary computation graphs using the multivariable Chain Rule to compute exact analytical parameter gradients.

~30 minRun Experiment
Deep LearningIntermediate

CNNs & Convolution

Extract translation-invariant spatial features from multidimensional signals using sliding kernel convolutions, parameter sharing, and pooling.

~25 minRun Experiment
Deep LearningAdvanced

Attention Mechanism

Dynamically weight context across sequence positions via Scaled Dot-Product Query-Key-Value routing—the architectural engine of modern Transformers and LLMs.

~30 minRun Experiment

Ready to understand how software works?

Simulate token exhaustion, predict circuit tripping under load, and verify monotonic fencing tokens.

Run Rate Limiter Experiment