编程与软件工程divan.github.io编辑精选
Go 并发可视化
Visualizing Concurrency in Go (2016)
2016 — 2017,它一次次回到首页
黑点是上首页(≥ 50 分)的那次投稿,空心点是没冲上去的投稿,点越大分数越高。
导读
作者用动画可视化 Go 语言中常见的并发模式(如 worker pool、fan-in/fan-out、pipeline 等),直观展示 goroutine 与 channel 之间的数据流动。文章将抽象的 CSP 并发模型转化为可观看的图形,帮助读者理解各种并发结构的差异。
为什么经久不衰:它把最难直观理解的并发概念变成了看得见的动画,这种讲解方式至今仍是最有效的 Go 并发入门材料之一。
HN 评论精选
希望将可视化扩展到真实程序运行时,认为看见数据流就能理解复杂性
这太棒了。有没有人知道能否扩展这种可视化,让它基于真实程序的实际运行来渲染?我有个理论:如果人类能看到交互和数据流动,很多复杂性问题就能被理解。即使程序因此慢 100 倍,能看到 bug 就能修复它,能看到复杂性就能理解它。
Dangeranger查看英文原文
This is very nice. Does anyone have an idea of how to extend the visualization so that they could be rendered based on the actual runtime of a real program? I have a theory that much complexity could be understood if humans could just see the interactions and the data flowing. Even if the program took 100X longer to run, if you can see the bug, you can fix it. If you can see the complexity, you can understand it.
这不是又一篇普通教程,而是独特且用心的作品
必须称赞一下作者——我点进来时半心以为又是'另一篇 goroutine/channel 教程',但这确实是非常出色且独特的东西,下了很大功夫。
jerf查看英文原文
I just have to compliment the author on this, even this makes for sort of a vacuous HN comment, because it is that cool. I clicked through half-expecting "just another Go goroutine/channel tutorial", but this really is something very nice and unique, with a lot of effort put in.
赞赏作者把视频内容整理成可搜索的文章
我之前看过视频——技巧很妙,我喜欢各种模式之间的视觉差异。很高兴它被写成了文章——太多好材料被锁在不可搜索的视频里了。
Groxx查看英文原文
I saw the video a while ago - really neat technique, I love the visual differences between patterns. Love that it's written down - far too much great material is locked up, unsearchable, in videos.
认为这种可视化方式同样适用于其他并发系统,期待跨模型对比
这是解释并发模型非常巧妙的方式。我为 Erlang VM 做过类似的东西(没那么高级),很想看到这两种模型的对比。
eddd查看英文原文
That's a really neat way of explaining concurrency model. I did something similar for Erlang VM http://eddwardo.github.io/elixir/links/2015/11/04/links-in-elixir/ (less advanced). I'd love to see comparison of these two models.
历次讨论
同类还值得读
开源应用架构
The Architecture of Open Source Applications
《开源软件架构》(AOSA)是一本在线免费书,邀请知名开源项目的作者亲自剖析其内部设计,涵盖 SQLAlchemy、LLVM、Audacity、Apache、Bash 等系统。
编程与软件工程上首页 9 次 · 2011–2024aosabook.org编辑精选编程语言简史:简短、不完整且多半错误
A Brief, Incomplete, and Mostly Wrong History of Programming Languages
一篇以戏谑、故意不准确的方式回顾编程语言史的博客文章,用夸张轶事和讽刺定义串起 Lisp、C、C++、Java、JavaScript、PHP 等语言。
编程与软件工程上首页 8 次 · 2009–2021james-iry.blogspot.comSQLite 是如何测试的
How SQLite is tested
SQLite 官方文档页,系统介绍 SQLite 的测试体系:多种测试方法(TCL 测试、模糊测试、回归测试、静态分析等)和海量测试用例,展示了这个小型开源项目如何靠极致测试获得…
编程与软件工程上首页 8 次 · 2009–2025sqlite.org编辑精选高级编程语言(2009)
Advanced programming languages (2009)
Matt Might 的经典文章,按用途推荐“高级编程语言”:如果追求就业就选主流语言,如果追求表达力、学术研究或创业,则推荐 Haskell、OCaml、Scala 等函数式语…
编程与软件工程上首页 8 次 · 2009–2022matt.might.net我的 Forth 与栈机器经历
Yosefk - My history with Forth & stack machines
作者以亲身经历回顾了使用 Forth 语言和栈式机器的历程:既赞叹其简洁优雅、代码量小、可自举的优点,也坦率指出栈操作在实际编程中的痛苦,以及 Forth 社区文化中的问题。
编程与软件工程上首页 8 次 · 2010–2024yosefk.com编辑精选