Course glossary

This page exists because the course uses computing jargon on purpose — students should hear the real words their colleagues will use — but most of those words are first-encounter for a biologist with one programming course behind them. Each term below is glossed in a single plain-English sentence, with a link to the lecture or exercise where it is first introduced. Use the page as a reference: skim it once, then come back when a term shows up that you do not yet recognise.

Memory & hardware

Term In plain English Where in the course
ALU The arithmetic-and-logic unit inside the CPU that actually performs additions, comparisons, and bit operations. Link
allocation Asking the operating system or runtime for a chunk of memory big enough to hold a value. Link
boxed A value stored on the heap behind a pointer (so a small integer becomes a pointer plus extra header bytes). Link
cache A small block of very fast memory inside the CPU that automatically keeps copies of recently used bytes from RAM. Link
cache line The 64-byte block the CPU always fetches at once when it reads from RAM. Link
CPU core One independent processor on the chip, capable of running its own stream of instructions. Link
DOM The in-memory tree of HTML nodes the browser builds from a web page, and that JavaScript or Yew can change to update what you see. Link
free Hand a previously allocated chunk of memory back so it can be reused. Link
HDD A spinning-disk hard drive — large, cheap per terabyte, slow for small random reads. Link
heap The large region of program memory used for values whose size or lifetime is not known at compile time. Link
kernel The privileged core of the operating system, the only software allowed to touch the hardware directly. Link
memory wall The growing gap between fast CPU speed and slow RAM latency that forces programs to care about cache. Link
pointer A number that stores the memory address of another value. Link
RAM Random-access main memory — fast working storage that loses its contents when power is cut. Link
refcount A small counter attached to a value that records how many references currently point at it. Link
reference A safe, language-checked pointer that lets you read or write a value without taking ownership. Link
register One of the tiny ultra-fast storage slots inside the CPU where arithmetic actually happens. Link
segfault A crash that happens when a program reads or writes memory it is not allowed to touch. Link
SSD A solid-state drive — persistent storage with no moving parts, much faster than an HDD. Link
stack A fast, last-in-first-out region of memory that holds one frame of locals per active function call. Link
syscall A controlled jump from your program into the kernel to ask the OS to do something (open a file, send a packet). Link
type tag A small marker stored with a value at runtime so a dynamic language knows what kind of thing it is. Link
unboxed A value stored directly in its slot rather than behind a pointer (cheap and cache-friendly). Link
user space The unprivileged mode where your own program runs, separated from the kernel by syscalls. Link
von Neumann architecture The classic computer design in which one memory holds both code and data and the CPU reads them over a shared bus. Link

Rust syntax & types

Term In plain English Where in the course
&[u8] A borrowed view of a sequence of bytes — what we use for DNA throughout the course. Link
&mut T (mutable reference) An exclusive, read-write borrow of a value; only one may exist at a time. Link
&str A borrowed slice of a UTF-8 text string. Link
&T (shared reference) A read-only borrow of a value; any number may exist at once. Link
? operator Shorthand that returns early on Err and unwraps to the inner value on Ok. Link
ADT Algebraic data type — a type built by combining records and choices, like Rust’s struct and enum. Link
attribute A piece of metadata in square brackets (e.g. #[derive(Debug)]) that asks the compiler to do something extra. Link
borrow Temporarily access a value through a reference without taking ownership of it. Link
byte literal b'A' A u8 value whose contents are the ASCII code of the character inside the quotes. Link
char A four-byte Rust type that holds one Unicode character (overkill for DNA — prefer u8). Link
Clone A trait that lets you make an explicit deep copy of a value with .clone(). Link
Copy A trait marking small value types that are duplicated automatically on assignment. Link
derive Asking the compiler to write a standard trait implementation (Debug, Clone, …) for you. Link
enum A type whose value is exactly one of a fixed list of named variants, each possibly carrying data. Link
f64 A 64-bit floating-point number with about 15 decimal digits of precision. Link
fat pointer A pointer that carries extra metadata alongside the address — for slices, the length. Link
HashMap The standard hash-table type that maps keys to values, with constant-time average lookup. Link
i32 A 32-bit signed integer, range about ±2.1 × 10⁹. Link
let The keyword that binds a name to a value (immutably by default). Link
let mut The form of let that allows the variable to be reassigned afterwards. Link
lifetime The span of code during which a reference is guaranteed to point at valid data. Link
lifetime elision The compiler’s habit of filling in obvious lifetimes for you so you do not have to type them. Link
macro A compile-time code generator invoked with a trailing ! (e.g. println!, vec!). Link
move The default behaviour of assignment for non-Copy types — ownership transfers and the old name becomes unusable. Link
Option An enum that wraps either Some(value) or None to express possibly-missing values. Link
ownership The Rust rule that every value has exactly one owner who is responsible for freeing it. Link
Result An enum that wraps either Ok(value) on success or Err(error) on failure. Link
slice A view of a contiguous range of elements in someone else’s buffer — pointer plus length, no copy. Link
String An owned, growable, heap-allocated text string holding valid UTF-8. Link
struct A named record bundling several fields of fixed types into one value. Link
sum type A type whose value is one of several possible shapes — Rust’s enum with data is one. Link
tagged union The memory layout of a sum type: a small tag saying which variant, plus enough room for the largest payload. Link
usize An unsigned integer the same width as a memory pointer; used for lengths and indices. Link
Vec<T> The standard growable, owned, heap-backed array of values of type T. Link

Iterators, closures, traits

Term In plain English Where in the course
adapter An iterator method that wraps one iterator into another (e.g. map, filter) without doing work yet. Link
closure An anonymous function value, written \|args\| body, that can capture variables from the surrounding scope. Link
consumer An iterator method that actually pulls elements through the chain (e.g. count, sum, collect). Link
dereference (*) Follow a pointer or reference to get at the value it points to. Link
deref coercion The compiler automatically converting a reference type into a related one (e.g. &Vec<T> to &[T]). Link
entry API A HashMap pattern that combines “look up or insert default” into one call returning a mutable reference to the slot. Link
Fn / FnMut / FnOnce Traits classifying closures by whether they can be called repeatedly, mutate captures, or run only once. Link
generic A type or function parameterised by a type variable so it works for many concrete types. Link
into / from Companion conversion traits — T::from(x) builds a T from an x; x.into() is the same conversion the other way. Link
iterator A value that produces a sequence of other values one at a time when asked. Link
lazy Iterator chains do no work until a consumer pulls on them — only what is needed is computed. Link
monomorphisation The compiler generating a separate specialised version of a generic function for each concrete type it is called with. Link
trait A named bundle of methods that types can implement — Rust’s interface mechanism. Link
trait bound A T: Trait constraint saying a generic parameter must implement a given trait. Link

I/O & files

Term In plain English Where in the course
ASCII The 7-bit text encoding that gives each English letter and digit a number from 0 to 127. Link
BufRead A trait extending Read with line-oriented and buffered conveniences. Link
BufReader A standard wrapper that buffers reads from a file so your code makes one syscall per chunk, not per byte. Link
BufWriter The counterpart of BufReader for writes — collects small writes into one large syscall. Link
encoding The mapping from bytes on disk to characters in memory (ASCII, UTF-8, etc.). Link
file descriptor A small integer the kernel gives you to refer to an open file in subsequent syscalls. Link
line One unit of text ending at a newline character, the natural record boundary for many formats. Link
mmap Memory-mapping — letting the OS expose a file as a region of memory the program reads like an array. Link
Read The trait every readable byte source implements; gives you read(buf). Link
stderr The standard error stream — where programs write diagnostic messages. Link
stdin The standard input stream — where programs read from the terminal or a piped command by default. Link
stdout The standard output stream — where programs write normal results by default. Link
streaming Reading or writing a file a small piece at a time so the whole thing never has to fit in memory. Link
UTF-8 A variable-width text encoding where ASCII is one byte and other characters take two to four. Link
Write The trait every writable byte sink implements; gives you write(buf). Link

Build, packaging, dependencies

Term In plain English Where in the course
^ and ~ version specs Cargo’s shorthand for “compatible with this version” — ^ allows new minors, ~ allows only new patches. Link
assembly A human-readable form of the CPU’s machine instructions — one operation per line. Link
binary A compiled executable file containing machine code you can run directly. Link
cargo Rust’s build tool and package manager; the only one of the three Rust commands you usually type. Link
Cargo.lock An auto-generated file recording the exact resolved version of every dependency for reproducible builds. Link
Cargo.toml The manifest file declaring a project’s name, version, and dependencies. Link
clippy The official Rust linter — flags common style and correctness issues beyond what the compiler reports. Link
crate One Rust library or binary package — the unit cargo compiles and crates.io distributes. Link
crates.io The public registry where Rust crates are published and downloaded from. Link
dependency Another crate your project pulls in and uses. Link
docs.rs The site that auto-builds and hosts the documentation of every published crate. Link
inlining An optimisation that copies a small function’s body into its caller to skip the call overhead. Link
link Stitching compiled object files and library code together into a final executable. Link
LLVM The compiler back-end Rust uses to turn its own intermediate code into optimised machine code. Link
opt-level The optimisation-level dial in a build profile — 0 means no optimisation, 3 means full. Link
registry A server that hosts publishable crates — by default this is crates.io. Link
release vs debug The two default Cargo build profiles — debug is fast to compile, release is fast to run. Link
rustfmt The official Rust code formatter; reformats source to the standard style. Link
rustup The Rust installer and toolchain manager — installs the compiler and updates it. Link
semver Semantic versioning: major.minor.patch, with breaking changes only on a major bump. Link
SIMD Single-instruction-multiple-data — one CPU instruction that processes several values at once. Link
static linking Bundling every library’s code into the final binary so it has no external runtime dependencies. Link
target directory The target/ folder where Cargo puts build artefacts; safe to delete, never edit. Link

Tests, profiling, parallelism

Term In plain English Where in the course
#[cfg(test)] An attribute that makes a module compile only when running tests, so test code never ships in the release binary. Link
#[test] An attribute that marks a function as a test for cargo test to discover and run. Link
Amdahl’s law The rule that the sequential fraction of a program puts a hard ceiling on how much parallelism can speed it up. Link
assertion (assert!, assert_eq!) A macro that checks a condition during a test and fails the test if it does not hold. Link
channel A typed in-memory pipe one thread writes into and another reads from. Link
context switch The OS saving one thread’s state and loading another’s so multiple threads can share a CPU core. Link
criterion The standard Rust benchmarking crate — measures functions statistically with warm-up and outlier detection. Link
data race Two threads accessing the same memory at the same time, with at least one writing — Rust prevents this at compile time. Link
fixture A pre-built piece of test data (a small file, a seeded database) used by one or more tests. Link
Instant A snapshot of a monotonic clock; subtract two to get an elapsed duration. Link
integration test A test in tests/ that exercises a crate from the outside, using only its public API. Link
mock A stand-in object used in tests in place of a real dependency. Link
mutex A mutual-exclusion lock that lets only one thread at a time touch the data it guards. Link
profile A measurement of where a program spends its time, broken down by function. Link
property-based test A test that asserts an invariant holds for many randomly generated inputs rather than one specific case. Link
race condition A bug whose outcome depends on the unpredictable interleaving of concurrent operations. Link
sampling profiler A profiler that periodically interrupts a running program to record which function is on the stack. Link
Send A marker trait saying values of a type are safe to move between threads. Link
sublinear scaling The usual reality that doubling cores gives less than double the speed, because of shared memory and overhead. Link
Sync A marker trait saying it is safe for multiple threads to share an immutable reference to a value. Link
thread One independent stream of execution within a process. Link
thread pool A fixed set of worker threads created once and reused for many small tasks. Link
unit test A small test of a single function, usually sitting alongside the code in the same source file. Link
vectorisation The compiler rewriting a loop to use SIMD instructions that process several values per step. Link
wall-clock time The real elapsed time on a stopwatch, as opposed to CPU time. Link
work-stealing A scheduler where idle threads grab pending tasks from the queues of busy threads to balance the load. Link

Web & networking

Term In plain English Where in the course
async A function marked async returns a future instead of running immediately. Link
await A keyword that pauses an async function until the future it is waiting on is ready. Link
axum The Rust web framework used in the course for the HTTP/JSON backend. Link
backend The server-side program that produces data (often via HTTP and JSON) for a frontend to display. Link
body The payload of an HTTP request or response — often JSON, HTML, or raw bytes. Link
component One reusable piece of UI in Yew — a function returning a chunk of HTML. Link
controlled input A form input whose displayed value is read from state, so the state and the input always agree. Link
CORS The browser rule that blocks cross-origin requests unless the server opts in with specific headers. Link
deserialise Turn bytes (e.g. JSON text) back into a typed value in memory. Link
extractor An axum mechanism that pulls a typed value (path segment, query, JSON body) out of an HTTP request for your handler. Link
frontend The code that runs in the user’s browser to draw the UI and react to clicks. Link
full-stack Code that covers both frontend and backend, often (as in day 6) in one language. Link
future A value representing work that is in progress and will produce a result later — what async functions return. Link
GET The HTTP method browsers use to fetch a resource without changing server state. Link
handler A function in axum that produces the response for a particular route. Link
header A Name: value line on an HTTP request or response carrying metadata (content type, authentication, …). Link
hook (use_state, use_effect_with) A Yew function that stores state or schedules an effect for a component, surviving re-renders. Link
HTTP The text-and-bytes protocol browsers use to talk to web servers. Link
JSON A lightweight text format for nested objects, arrays, numbers, and strings — the lingua franca of web APIs. Link
middleware Code that wraps a request/response pipeline to add cross-cutting concerns (logging, auth, CORS). Link
origin The combination of scheme, host, and port that the browser uses to scope security rules like CORS. Link
port A number identifying which service on a host an incoming TCP connection should reach. Link
POST The HTTP method used to send a body of data to the server, usually creating or updating something. Link
request A message from the browser to a server asking for something. Link
response The server’s reply to an HTTP request — status, headers, body. Link
REST A common style of HTTP API where URLs name resources and HTTP methods describe actions on them. Link
route A mapping from a URL pattern to a handler function on the server. Link
runtime The background machinery (a thread pool plus a scheduler) that drives async futures to completion. Link
serde The Rust serialisation framework that converts structs to and from JSON (and other formats) via #[derive]. Link
serialise Turn a typed value in memory into bytes (often JSON text) for storage or transmission. Link
status code The three-digit number on an HTTP response (200 OK, 404 Not Found, …). Link
tokio The most common Rust async runtime, used by axum and many other server crates. Link
trunk The build tool that compiles a Yew app to WASM, bundles assets, and serves them in development. Link
URL The address (scheme, host, port, path, query) the browser uses to reach a resource. Link
virtual DOM A lightweight tree of HTML nodes built in memory; Yew diffs it against the previous one and patches the real DOM. Link
WASM (WebAssembly) A portable, sandboxed bytecode format every modern browser can run — a compile target Rust supports. Link
wasm-bindgen The glue layer that lets Rust code compiled to WASM talk to JavaScript and the browser. Link
Yew A Rust UI framework, modelled on React, whose components run in the browser as WASM. Link

Databases (SQL & SQLite)

Term In plain English Where in the course
ACID The four classic transaction guarantees: atomicity, consistency, isolation, durability. Link
aggregation A query that collapses many rows into one summary value per group (count, average, sum). Link
atomicity The transaction guarantee that all statements in a transaction succeed together or have no effect. Link
B-tree The branching-tree data structure most databases use for indexes, giving logarithmic lookup time. Link
column One named field, with a fixed type, that appears in every row of a table. Link
Connection The rusqlite handle to an open SQLite database. Link
DELETE The SQL statement that removes rows matching a WHERE clause. Link
durability The transaction guarantee that committed changes survive a crash or power loss. Link
foreign key A column in one table whose values must match the primary key of another table. Link
fsync The syscall that forces buffered file writes to be flushed to physical storage. Link
GROUP BY The SQL clause that buckets rows by a key so an aggregate produces one row per bucket. Link
HAVING The SQL clause that filters whole groups produced by GROUP BY. Link
index An auxiliary data structure that lets the database find rows matching a filter without scanning the whole table. Link
INSERT The SQL statement that adds a new row to a table. Link
JOIN (INNER, LEFT, NATURAL) SQL operations that combine rows from two tables — INNER keeps only matches, LEFT keeps every left row, NATURAL infers the join key from shared column names. Link
LIMIT The SQL clause that caps the result set at a given number of rows. Link
normalisation Designing tables so each fact lives in exactly one place, removing redundancy and update anomalies. Link
NULL The SQL marker for “no value” — distinct from zero or the empty string. Link
ORDER BY The SQL clause that sorts the result rows by one or more columns. Link
parameter binding Passing values to a query through ? placeholders so user data can never be parsed as SQL. Link
prepared statement A SQL query that the database has parsed and compiled once and that you can run many times with different parameters. Link
primary key The column (or set of columns) that uniquely identifies each row in a table. Link
query_map The rusqlite method that runs a SELECT, calls your closure once per row, and yields the converted values. Link
relational database A database that stores data in tables of rows and columns and lets you join those tables together. Link
row One record in a table — one set of values, one per column. Link
rusqlite The Rust crate that wraps the SQLite C library so you can use SQLite from Rust. Link
schema The set of table definitions (names, columns, types, constraints) that describe a database’s shape. Link
SELECT The SQL statement that reads rows from one or more tables. Link
SQL injection A bug class where untrusted input is pasted into a SQL string and ends up running as code; parameter binding prevents it. Link
Statement The rusqlite handle for a prepared SQL statement that you bind parameters into and execute. Link
table A named grid of rows and columns — the basic unit of storage in a relational database. Link
three-valued logic SQL’s logic system where conditions can be true, false, or unknown because of NULL. Link
transaction A group of SQL statements that succeed or fail as one unit and become visible only on commit. Link
tuple (DB sense) A formal name for a row — an ordered set of column values. Link
UPDATE The SQL statement that changes existing rows that match a WHERE clause. Link
WHERE The SQL clause that keeps only rows for which a condition is true. Link

Algorithms & complexity

Term In plain English Where in the course
alignment A way of lining up two sequences so similar parts stack, with gaps where one has extra characters. Link
amortised A cost averaged across many operations, even if individual operations occasionally cost more. Link
base case The non-recursive case of a recursive function — the place the recursion stops. Link
Big-O notation A shorthand for how a function’s running time grows as the input grows (e.g. O(n²) = quadratic). Link
constant time (O(1)) Time that does not grow with input size — looking up seq[1000] costs the same as seq[1_000_000]. Link
dynamic programming Solving a problem by computing each subproblem once and storing the answer in a table. Link
edit distance The minimum number of single-character edits to turn one string into another. Link
exponential Time that multiplies by a constant factor each time the input grows by one — quickly impossible. Link
hot loop The innermost loop of a program where most of its runtime is spent. Link
hot path The sequence of function calls a program runs most often — the place performance work pays off. Link
linear time (O(n)) Time that grows in proportion to the input size — touching each byte once. Link
memoisation Caching the result of a function call so the next call with the same arguments is instant. Link
polynomial Time that grows like a fixed power of the input size (linear, quadratic, cubic, …). Link
quadratic time (O(n²)) Time that grows like the square of the input — comparing every pair, often too slow. Link
recurrence (rule) A formula that defines the value of a cell or function in terms of smaller cases of itself. Link
recursion A function that calls itself on a smaller version of the problem. Link
recursive case The arm of a recursive function that calls the function again on a smaller subproblem. Link
subproblem A smaller instance of the same problem that a recursion or dynamic programming algorithm solves first. Link
traceback Walking the back-pointers of a filled DP matrix to recover the actual alignment, not just its score. Link

Compression

Term In plain English Where in the course
archive vs single-stream An archive (zip, tar) bundles many named files; a single stream (gzip) compresses one byte stream. Link
bgzip A bioinformatics-specific gzip variant that compresses in 64 KB blocks so you can seek inside the file. Link
DEFLATE The compression algorithm used inside .zip and .gz, combining LZ77 and Huffman coding. Link
dictionary coder A compressor that replaces repeated substrings with short references to earlier occurrences. Link
entropy A measure of how unpredictable bytes are — the theoretical lower bound on how small a lossless compressor can make them. Link
gzip A widely used lossless compressor producing .gz files — single compressed stream, no archive layer. Link
Huffman coding A scheme that gives common bytes short bit-codes and rare bytes longer codes. Link
lossless Compression after which the decoder reproduces the original bytes exactly — required for DNA. Link
lossy Compression that throws away information the eye or ear will not notice — fine for photos, forbidden for DNA. Link
LZ77 A compression idea that replaces a substring with “go back N bytes and copy M” when it has been seen before. Link
run-length encoding (RLE) The simplest compressor — replace a run of identical bytes with a count and the byte. Link
zip vs tar.gz .zip is many compressed entries plus an index; .tar.gz is a tarball-of-files then a single gzip stream over the whole thing. Link
zstd A modern lossless compressor, usually faster and slightly smaller than gzip. Link

Bioinformatics formats & concepts

Term In plain English Where in the course
ASCII offset The fixed integer (usually 33) added to a Phred score to turn it into a printable character. Link
BAM The binary, compressed counterpart of SAM — the standard format for aligned reads. Link
basecalling Turning the raw electrical or optical signal from a sequencer into a sequence of A, C, G, T calls. Link
BED A simple line-oriented text format listing genomic intervals (chrom, start, end, …). Link
branch length The number on a phylogenetic tree edge, usually representing evolutionary distance to the parent node. Link
codon A group of three consecutive DNA or RNA bases coding for one amino acid (or a stop). Link
complement The base that pairs with a given DNA base (A↔︎T, C↔︎G). Link
FASTA A text format storing one or more named sequences, each with a > header line. Link
FASTQ A text format storing reads with per-base quality scores (@name, sequence, +, qualities). Link
GC content The fraction of bases in a sequence that are G or C. Link
internal node A node of a phylogenetic tree that has children — usually an inferred common ancestor. Link
IUPAC ambiguity codes The standard one-letter codes (N, R, Y, S, W, …) for “any of these bases”. Link
k-mer A substring of length k taken from a sequence. Link
k-mer index A data structure mapping each k-mer to where it occurs, used by aligners and search tools. Link
Needleman-Wunsch The classic dynamic-programming algorithm for global sequence alignment. Link
Newick format The standard parenthesised text format for storing phylogenetic trees. Link
pangenome A collection of related genomes (e.g. many strains) treated as one referenceable graph or set. Link
Phred+33 encoding The convention of storing a Phred quality score as the ASCII character score + 33. Link
Phred quality score An integer error probability per base: Q = −10 · log₁₀(P_error). Link
phylogeny / phylogenetic tree A branching diagram representing the evolutionary relationships between species, genes, or strains. Link
reverse complement The complement of a sequence read in the opposite direction — what you get on the other DNA strand. Link
SAM The text format for aligned sequencing reads — one line per alignment with reference position, flags, CIGAR, etc. Link
sequence alignment (global / local) Lining up two sequences end-to-end (global) or finding the best matching subregion (local). Link
single-cell expression matrix A large table of how much each gene is expressed in each individual cell — millions of cells, tens of thousands of genes. Link
sliding window A fixed-size window that moves one position at a time across a sequence (e.g. for k-mers or per-window GC). Link
Smith-Waterman The classic dynamic-programming algorithm for local sequence alignment. Link
tip / leaf A node in a phylogenetic tree with no children — a present-day species, gene, or strain. Link
VCF The standard text format for variant calls (positions where a sample differs from the reference). Link