GOAT EngineerPreparing your learning space…

System Design · Interactive workshop

The record workshop

Build it. Run it. Follow the bytes.

This workshop stages a complete record in each buffer, so the buffer must have room for all its encoded bytes. Counting visible characters is not enough: UTF-8 can use more than one byte for a character. Connect a source, representation, memory buffer and output to see where a record fits or is rejected.

The canvas runs in your browser and needs JavaScript. You can read the model below and read the accompanying Library lesson without JavaScript.

What this machine models

A deterministic representation and bounded-buffer model, version representation-1. One source emits one record. UTF-8 and ASCII text, or signed/unsigned 8, 16 and 32-bit integers, become bytes. Each buffer stages an entire record before forwarding it; a record that cannot fit is rejected and its allocation is released. This is not a CPU or operating-system emulator.

Text is limited to 256 JavaScript code units; decimal integer inputs to 20 digits. Each buffer supports 0 to 1,024 bytes. A run supports 24 components, 48 connections, 4,096 processed events, 4,096 queued events and 128 output records. Branches and compatible cycles are allowed. Hitting a limit stops the run as incomplete. Ticks show event order, not physical time. At an equal tick, scheduled forwarding runs before arrivals and byte writes.

Your design, prediction and evidence stay in memory as you move around the track for guests and members. Reloading clears them. History keeps the latest eight checkpoints, plus one pinned comparison.

By GOAT Engineer. Explore System Design · Privacy Policy · Contact.