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

科技回声

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

GitHubTwitter

首页

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

资源链接

HackerNews API原版 HackerNewsNext.js

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

Duffs Device

19 点作者 MindTwister超过 8 年前

3 条评论

kruczek超过 8 年前
My favourite comment regarding Duff&#x27;s Device is from Tom Duff himself:<p>&quot;Many people have said that the worst feature of C is that switches don&#x27;t break automatically before each case label. This code forms some sort of argument in that debate, but I&#x27;m not sure whether it&#x27;s for or against.&quot;
dancek超过 8 年前
My favorite use of Duff&#x27;s device is this optimization in TIS-100: <a href="https:&#x2F;&#x2F;reddit.com&#x2F;r&#x2F;tis100&#x2F;comments&#x2F;38hfvl&#x2F;multiplier_optimisation&#x2F;" rel="nofollow">https:&#x2F;&#x2F;reddit.com&#x2F;r&#x2F;tis100&#x2F;comments&#x2F;38hfvl&#x2F;multiplier_optim...</a>
Diti超过 8 年前
<a href="https:&#x2F;&#x2F;hn.algolia.com&#x2F;?query=Duffs%20Device" rel="nofollow">https:&#x2F;&#x2F;hn.algolia.com&#x2F;?query=Duffs%20Device</a>
评论 #12759065 未加载