算法艺术创作
algorithmic-art
通过代码和可调参数创作生成艺术与交互式视觉效果。
go-concurrency-pipelines【设计与创意】Design, implement, test, and review bounded in-process Go concurrency using goroutines, channels, iterators, mutexes, shared collections, WaitGroup, errgroup, backpressure, ordering, cancellation, and deterministic lifecycle checks. Use when building worker pools, streaming pipelines, concurrent batches, background stages, or diagnosing races, gorout…
独立 GitHub 快照 · 自动分类 · 以原作者文档为准
Every goroutine needs an owner, a stop condition, and a completion path. Bound admission before optimizing throughput.
| Task | Load |
|---|---|
| Design a pipeline | guidelines.md, workflows/design-cancellable-pipeline.md |
| Review goroutine ownership | workflows/review-goroutine-lifecycle.md |
| Test concurrency deterministically | workflows/test-concurrency-contract.md |
| Choose channels, iterators, buffers, or ordering | references/concurrency-pipelines/knowledge.md, references/concurrency-pipelines/rules.md |
| Review mutexes, WaitGroup, errgroup, or shared collections | references/concurrency-pipelines/rules.md, references/concurrency-pipelines/examples.md |
| Review patterns | references/concurrency-pipelines/examples.md |
select guarantees fairness.Guidance is transformed and paraphrased from Inanc Gumus, Go by Example: Programmer's Guide to Idiomatic and Testable Programs (Manning, 2025), Chapters 6-7 and Appendix E. Examples are original.
Synchronization, context, and shared-collection guidance also incorporates transformed material from Teiva Harsanyi, 100 Go Mistakes and How to Avoid Them (Manning, 2022), Chapters 8-9.
Book: https://www.manning.com/books/go-by-example
Verify language and API behavior against https://go.dev/ref/spec, https://pkg.go.dev/context, https://pkg.go.dev/iter, and https://go.dev/doc/articles/race_detector.