TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

Visualizing Garbage Collection Algorithms

329 点作者 silentbicycle超过 10 年前

9 条评论

mnemonik超过 10 年前
If you find this interesting, you might also enjoy &quot;A Unified Theory of Garbage Collection&quot; by Bacon et all: <a href="http://www.cs.virginia.edu/~cs415/reading/bacon-garbage.pdf" rel="nofollow">http:&#x2F;&#x2F;www.cs.virginia.edu&#x2F;~cs415&#x2F;reading&#x2F;bacon-garbage.pdf</a>
评论 #8266288 未加载
kazinator超过 10 年前
This is useful; I&#x27;ve been puzzled by the actual behavior of a garbage collector. For instance, you might be dismayed, after implementing generational GC, that it benchmarks worse compared to reconfiguring for pure mark and sweep. Some visualization could help explain why. Raw execution profiling isn&#x27;t all that helpful because it is entangled with the program, so you have to rely on collecting and logging various statistics from the collector.
azmenthe超过 10 年前
Very cool, it would be nice if the animations looped though!
评论 #8264746 未加载
sriku超过 10 年前
On a total tangent, I&#x27;ve never been satisfied with the analogy of &quot;garbage collection&quot; for what memory managers do ... and tried to come up with something better [1]. Not surprisingly, it came up when I was actually washing dishes :)<p>[1] <a href="http://sriku.org/blog/2014/07/06/dish-washing-versus-garbage-collection/" rel="nofollow">http:&#x2F;&#x2F;sriku.org&#x2F;blog&#x2F;2014&#x2F;07&#x2F;06&#x2F;dish-washing-versus-garbage...</a>
bengali3超过 10 年前
nice. Shows why forcing GC frequently can be counter productive, esp with the copy collector
评论 #8269552 未加载
agersant超过 10 年前
Looks great! Thanks for making this.
molixiaoge超过 10 年前
great
molixiaoge超过 10 年前
ss
frozenport超过 10 年前
Obligatory Quote:<p><i>&quot;If Java had true garbage collection, most programs would delete themselves upon execution.&quot; -- Robert Sewell</i><p>Interestingly, this doesn&#x27;t apply to Scala.
评论 #8266493 未加载