Glossary¶
Each term of the book has one short entry here. A term marked in a page shows its entry when you point at it, and links here; "More" leads to the chapter that explains it.
API bundle: The WireWeaver description of a producer's API, which a definition names by its hash so that a reader can decode items. More
append head: The block a writer places right after a closed piece's tail when it writes on, naming the close it goes on from. More
back-pressure: What a producer meets when the mux's queue is full: its handle waits, fails or drops the unit, by its pressure. More
BLAKE3: The cryptographic hash function behind the content hash and the track hash. More
block: The unit a tape is written in: a 32-byte header, a body and a CRC-32C, so that a reader can check it and skip it. More
block header: The first 32 bytes of a block: its kind, flags, length, a count, its sequence number and its session tag; a block has a header, never a head. More
byte source: Anything with a length that reads bytes at an offset, such as a byte slice, a file or an HTTP resource; a reader reads through one. More
CAN (Controller Area Network): The vehicle bus whose frames the drive's track can0 records, about a thousand per second. More
cap: A named upper bound on a count, length or offset a reader takes from the bytes, checked before the value sizes an allocation or a loop. More
chain: The pieces of one recording in order, each head naming the piece before it, so that a reader checks that none is missing. More
checkpoint: An index block the writer places about every 4 MiB, listing the blocks since the previous checkpoint and pointing back at it. More
chunk: A block of many consecutive items of one track, stored column by column, so that a reader reaches any item without decoding the others. More
chunk head: The start of a chunk's body: its length, track, item numbers and ticks, and a CRC per segment of its payload; the book says head only in piece head and chunk head. More
clock: Anything that counts time at an exact rate; every time on a tape is a whole number of ticks of one clock. More
clock map: A definition that relates two clocks by segments of exact slope with an error bound, such as a device's timer and the host's clock. More
close: The record after the final index that ends a piece: why it ended, its content hash, and where each track ended. More
close in force: The last close of a piece whose tail is whole; a reader takes the piece as closed by it. More
close summary: A block the caller gives at a close, placed before the final index and named by the close record; the format never reads its body. More
codec: The rule that the bytes of one chunk column follow, such as bit-packed residuals for times or lz4 for payloads. More
column: One field of every item of a chunk stored together, such as all start ticks or all payloads. More
content hash: A BLAKE3 hash over a piece's bytes before its close record; the close and the tail hold it, and a reader checks the piece with it. More
CRC (cyclic redundancy check): A short checksum computed over bytes, which changes when any of them change, so a reader detects damage. More
CRC-32C: The 32-bit CRC that every block ends with; a block whose bytes do not match it is damaged or torn. More
cut: The end of one piece of a chain and the start of the next, whose close names the next piece; the book calls nothing else a cut, and a lost supply is a power failure. More
deferred block: A small block, such as summaries, that the writer holds back for a gap before a chunk's payload in an aligned file. More
definition: A record on track 0 that says what something is: a clock, a track, an API bundle, the producer or the layout. More
dimension: A name and value pair, such as channel = 3, that tells apart tracks of one track key. More
duplicate: A block that a tape holds twice, with the same session and sequence number, such as after a writer retried a write. More
epoch: A new clock of the same counter, joined to the previous one by an exact map, so that a long capture keeps 64-bit ticks. More
event: An item of an events track, with a time of its own: an instant at one tick, or a span with an end. More
events chunk: A chunk of up to a few thousand items that have times of their own, such as the drive's CAN frames. More
final index: The index block at the end of a closed piece, listing every block by track, so that a reader finds a track's data in one read. More
fixed axis: An axis of a series track beside time, of a known extent in cells: the pixels of an image, the members of an ensemble. More
fixed point: Numbers stored as integers with one scale for the whole track, such as current in steps of 1 mA. More
follower: A reader in another process that follows a chain's files while they are written and hands out each block once it checks. More
gap: A blank or bad stretch of a raw medium after which the same session goes on; a reader reports its length and reads on. More
grid: The tick of one sample and the scale of the stored numbers that a series chunk carries, which place its samples in time. More
handle: What a producer holds to write through a mux: it takes one kind of data, makes finished units of it and sends them into the mux's queue. More
index entry: One line of an index block: where a block lies, its kind, its track, and the items and ticks it holds. More
integrity level: Which CRCs and hashes the writer of a piece computed, as its piece head names it: Full, CrcOnly or None. More
item: One value on a track, whose bytes the track's definition explains: an event on an events track, a sample on a series. More
item number: The count of a track's items from 0 over the whole recording, across pieces, the same in every copy of it. More
layout: A definition that says how the writer places blocks: the alignment of chunks and how far a reader looks past blank space. More
live feed: A tape passed on block by block while it is written, such as over USB to a viewer. More
lock: The kernel's exclusive lock a writer holds on the open tape file, so that one writer at a time writes it; a crash releases it. More
lost samples: Samples between two chunks of one grid that no chunk holds: their ticks are known, their values are not. More
map segment: One piece of a clock map: over a range of one clock, the other is an exact slope from a start, within an error bound. More
monotone relation: A value per item that a track declares never to decrease, across chunks and pieces, so that a reader finds an item by search. More
mux: The owner of one chain's writer on a writing thread, which places the units that producers send through their handles. More
near: How far behind a use a state item must lie in the same piece, 32 MiB by default; a put closer than that writes nothing. More
owner id: A 32-byte id that the application chooses and every piece head, close and tail of its chain carries. More
payload: An events item's value, encoded in shrink_wrap; a chunk keeps the payloads of its items in one column. More
piece: A part of a recording that reads alone, a file or bytes in memory: a head, blocks, checkpoints, and at its end a final index, a close and a tail. More
piece head: The first block of a piece: its ids, the owner id, the previous piece's hash, and each track carried into it; the book says head only in piece head and chunk head. More
piece number: A piece's place in its chain, counted from 0, which its head and close state; the file name plays no part. More
policy: A setting of the writer or the reader, such as when to sync or how far behind state may lie; it changes where blocks fall, never what they mean. More
producer: The program that makes a tape, such as a recorder on a test bench, a device logger or an analysis tool. More
put: A call that gives the writer a state item at its use; the writer writes the item only when no record of it lies near behind. More
range hash: A hash over a range of a track's items, which proves that two copies hold the same data in that range. More
raw medium: A card or flash chip that holds a tape without a file system, such as a Secure Digital (SD) card. More
reader: A program that reads a tape; in the crate, TapeReader. More
record: One event, state item or definition in a records block, with its track number, tick and length; a series has no records. More
records block: A block of records of any tracks, each with its own time and length: the form for a few items at a time. More
recovery mode: How a walk over blocks meets damage: Prefix stops at the first bad block, Resync reports it and reads on. More
relation break: A mark on an events chunk where its track's monotone relations start again, so that a reader assumes no order across its start. More
relay: A program that takes a live producer's blocks and writes them into a tape of its own, such as a host recording a device. More
resume: Reopening an unclosed piece after a crash: the writer cuts off the torn end and goes on as if the crash never happened. More
salvage: Reading every item of a damaged chunk that still reads, and marking the rest as suspect. More
sample: One item of a series, at the tick its index on the grid gives. More
scale: The value one step of a stored integer stands for, such as 10⁻³ A, which a series grid states once. More
SD (Secure Digital): A memory card standard; the drive's board keeps its recent logs on an SD card. More
segment: A fixed stretch of a chunk's payload, 64 KiB by default, with a CRC of its own, so that damage costs one segment. More
sequence number: The count of a session's blocks from 0, in every block header, which orders the blocks and finds missing ones. More
series: A track of samples at an exact period, such as the drive's phase current at 25 kHz. More
series chunk: A chunk of samples on one grid, which need no time each. More
session: One writer's unbroken append, such as a producer start or a device boot, whose blocks all carry one session tag. More
session tag: The 32-bit tag that every block of a session carries in its header, so that a reader tells it from stale data. More
sink: Where a writer puts its bytes: a file, memory, or a raw medium; any type that implements TapeSink. More
slot: The place a definition or state item fills, such as a track's number; a newer record in the slot replaces the older one. More
stale data: Blocks of an earlier recording left on a reused raw medium, which a reader tells apart by their session tag. More
state: An item that stays in force until the next one of its slot replaces it, such as the drive's mode. More
state copy: An extra record of a state item at a later use, at least 1 MiB after the first, as a guard against damage around one place; a copy in this book is always a state copy. More
state entry: An index entry for one state record, listing its slot and item hash, so that a reader finds the item in force without reading blocks. More
state track: A track whose items are state, such as the drive's mode; the writer keeps its items near their uses. More
store: A set of sinks for the pieces of a chain, such as a directory of files; any type that implements PieceStore; the book never uses store as a verb. More
summary: A block that holds a coarse view of a track, such as the minimum and maximum of runs of samples, so that a viewer draws an hour without reading it. More
summary node: One node of a summary tree, covering a range of items; a parent merges its 16 children. More
suspect: An item that salvage could not vouch for: one of a group whose record does not agree with its neighbours. More
sync policy: When the writer asks the operating system to put its bytes on the disk; it bounds what a crash can lose, 1 s by default. More
tail: The last block of a closed piece, 164 bytes, so that a reader finds it at the end and from it the whole piece. More
tape: A recording of typed values over time, as a live feed, a file, or bytes on a raw medium. More
tick: One count of a clock; every time on a tape is a whole number of ticks. More
tile: What one chunk of a series track with fixed axes holds: a run of time steps and one box of cells along those axes. More
tile number: A chunk's tile coordinates packed into bit fields of a u128 in its index entry, so a box query finds tiles from the index alone. More
time group: 128 event times of a chunk stored as distances from a line through them, bit-packed at the group's width. More
torn block: A block that a crash interrupted: its bytes end early or do not match its CRC. More
torn end: What a crash leaves past the last good block: a block that stops short, or zeros from a sector boundary to the end. More
track: A sequence of items of one type over time, such as the frames of one CAN bus or the readings of one sensor. More
track hash: A track's running hash over its chunks and records, which the piece head states before a piece and the close after it. More
track id: A 64-bit hash of a track's key and dimensions, by which chunks and index entries name the track. More
track key: A 64-bit hash of where a track comes from in the producer's API, the same in every file of the recording. More
track number: The small number a track has inside one file, given by the definitions when the track is defined; also the slot of its definition. More
track owner: The 32 bytes a track's definition carries to say whose data it is; ww_tape does not interpret them. More
unclosed tail: The bytes after the tail of the close in force: blocks a writer added since, or a crash left, read as the end of an unclosed piece. More
unit hash: A chunk's share of its track's hash, which its index entry stores so that a range hash reads no chunk. More
uvar: An unsigned number in LEB128, 7 bits per byte and low bits first; an ivar is a signed number zigzag-coded into one. More
WireWeaver value: A value of a type defined in a WireWeaver API, such as a struct, an enum or a number, whose definition the tape carries; encoded in shrink_wrap. More
writer: The part of the crate that turns an application's calls into blocks; in the crate, TapeWriter. More
writing thread: The thread of a mux that owns the writer: it places each unit in the order it came and does every chore of the chain. More