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

科技回声

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

GitHubTwitter

首页

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

资源链接

HackerNews API原版 HackerNewsNext.js

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

Show HN: Pyke – A tiny Python clone of Make based on checksums

6 点作者 aziis98超过 3 年前

1 comment

kazinator超过 3 年前
Consider iterating on cycles until a fixed point is reached: checksums of objects involved in the cycle are not changing.<p>If the fixed point is not reached in some number of iterations, then abort.<p>Cycles can happen in builds. A simple example is compiling a document in some markup language, plus its table of contents, into the compiled form. Suppose the compilation itself is what updates the table of contents (because details like page numbers are not known until the compilation pass). Then the table of contents is both an input and an output. If the table of contents file has changed, the job must be run again.<p>(Diagnosing and aborting cycles could be a default behavior; it could be that the user has to somehow declare cycles, by specially blessing backward references with some required annotation.)