Loading repository data…
Loading repository data…
Totoro-jam / repository
Battle-tested programming patterns from production codebases — React, Linux, Go, Chromium, and more. Precise source links, multi-language examples, runnable exercises.
A transparent discovery signal based on current public GitHub metadata.
This score does not audit code, security, maintainers, documentation quality, or suitability. Verify the repository and its current documentation before adoption.
Code-level programming patterns extracted from production codebases.
Interactive visualizations with time-travel playback · Precise source links · Multi-language · Runnable exercises
English | 简体中文
🧠 Data Structures
⚡ Concurrency
🏗️ Systems
♻️ Memory
🔄 Behavioral
📊 Proven In
| What exists | What's missing |
|---|---|
| Design patterns books | Too abstract, too OOP-centric |
| Algorithm repos | Disconnected from real engineering |
| System design guides | Architecture-level, not code-level |
This project: code-level techniques from React, Linux, Go, Chromium — each with verifiable source links.
| Pattern | What It Does | Proven In |
|---|---|---|
| Bitmask | Pack N flags into one integer, check any combo in O(1) | React Flags · Linux stat.h |
| Double Buffering | Swap two copies atomically, zero allocation | React Fiber · SDL |
| Cooperative Scheduling | Yield control between work chunks to stay responsive | React Scheduler · Go Runtime |
| Min Heap | O(1) peek at highest priority, O(log n) push/pop | React MinHeap · Linux CFS |
| Diff / Patch | Compute minimal edits between two sequences | React Reconciler · Git |
| Object Pool | Pre-allocate and reuse to avoid GC pressure | Go sync.Pool · Godot |
| Ring Buffer | Fixed-size circular queue, zero allocation | LMAX Disruptor · Linux |
| State Machine | Explicit states, impossible transitions unrepresentable | XState · Linux TCP |
| Copy-on-Write | Share by reference, copy only on mutation | Git objects · Rust Cow |
| Observer | Subscribe to events, decouple producers from consumers | Node EventEmitter · Redux |
| Iterator | Lazy sequences, zero intermediate allocations | Rust Iterator · Python gen |
| Semaphore | Bounded concurrency with a counter | Linux · Go x/sync |
| Batch Processing | Accumulate ops, execute as group | Kafka |
| Retry with Backoff | Exponential delay + jitter on failure | Kubernetes · gRPC |
| Event Loop | Single-threaded loop multiplexes I/O via epoll/kqueue | libuv · Redis ae |
| Flyweight | Share identical objects, avoid duplicates | [Python |