← Back
Home › Systems › Operating systems and runtimes

terminal-shell

terminal emulator and shell

Ghostty, zsh

SystemTechniques · 12Primitives · 48 terminal-shell Deterministic simulation testingdistributed · medium: Run the whole system in one thread under a seeded scheduler with simulated network, disk and clock, so every failure replays from its seed.›Primary-backup replicationdistributed · medium: One node orders all writes and ships them to standbys; the acknowledgement rule (none, one, all) sets what a crash loses, and an external arbiter decides who takes over.›Font fallback itemizationgraphics · medium: Split text into runs by script, direction and font coverage; pick fallback fonts per runText shapinggraphics · medium: Map Unicode to positioned glyphs via OpenType GSUB/GPOS lookups, clusters and complex scriptsCoverage-guided fuzzingsecurity · medium: Mutate inputs, run an instrumented target, and keep any input that reaches a new code edge; feedback turns blind guessing into incremental search.›Point-in-time recoverystorage · medium: Periodic base backups plus a continuously archived change log let you rebuild the state as of any instant, then branch from there.›Delta debuggingcompilers · medium: Ddmin minimization of failing inputs or change setsUnicode text tokenization for searchsearch-sort · low: Turn multilingual text into index terms: segment words (UAX 29 style, CJK bigrams), normalize, case-fold and accent-fold, identically at index and query time.›Recursive-descent parsingcompilers · low: Hand-written top-down parser with one function per grammar rule; simple, fast, with full control over error messages and recovery.›Hdr histogramdata-structures · low: Log-linear bucketed histograms with bounded relative error for latency percentilesDamage trackinggraphics · low: Track dirty rectangles so each frame repaints and recomposites only what changedGap buffergraphics · low: Array with a movable gap for O(1) edits at the cursor; text editors and slot tablesGlyph atlas cachinggraphics · low: Rasterize glyphs on demand into GPU texture atlases keyed by glyph, size and subpixel offsetGPU command buffersgraphics · low: Record GPU work as a flat list of commands on the CPU, submit it in batches, and reuse its memory through a ring of frames in flight guarded by fences.›Vt escape sequence parsinggraphics · low: VT100 and xterm escape sequence state machine (CSI, OSC, DCS) driving a cell gridCopy-on-write forkhardware-os · low: fork() gives the child the parent's whole address space by sharing pages read-only and copying one only when someone writes it; vfork and posix_spawn skip even that.›Process supervisionhardware-os · low: A parent process starts services, reaps their exits and restarts them under a delay and burst-limit policy, then stops them with SIGTERM before SIGKILL.›Pseudo terminalshardware-os · low: Pseudo-terminals, job control and terminal escape handlingepoll event loopnetworking · low: One thread waits on thousands of non-blocking sockets with epoll_wait and handles only ready ones; the core of nginx, Redis and tokio.›Fuzzy finder scoringsearch-sort · low: Subsequence matching with gap/position scoring (fzf-style)Glob matchingsearch-sort · low: Glob/gitignore pattern matching without backtracking blowupMutual TLSsecurity · low: TLS where the client also proves a certificate key, so every connection carries a verified, rotatable machine identity.›Graceful drainingsystems · low: On a termination signal, stop taking new work, finish in-flight work until a deadline, tell clients to reconnect elsewhere, then exit; clients resume from a token.›+ 5 more techniques+ 32 more primitives

Similar systems

Share the most building blocks with this one.