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

科技回声

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

GitHubTwitter

首页

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

资源链接

HackerNews API原版 HackerNewsNext.js

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

A Genetic Programming Approach to Automated Software Repair.

22 点作者 mrlebowski超过 15 年前

3 条评论

jacquesm超过 15 年前
Very interesting stuff. I did notice that this bug was due to a broken test procedure, a simple test loop during the initial write would have brought this problem out instantly.<p>If your code has an integer range of several 10's of thousands of input possibilities and it costs you next to nothing to run it why not exhaustively test that function?<p>That way your confidence goes up tremendously, just a couple of edge cases vs the whole range, I know which one I'd pick.<p>The run output would simply be two columns of integers, very easy to scan for errors. (the output should be equal or monotonous increase from day by day, and should not hang...).<p>Of course that's after the fact, but there is really no routine so trivial that you can get away without really testing if it does what you intended.
评论 #849359 未加载
mrlebowski超过 15 年前
Westley Weimer has a presentation on the same @ Stanford University today at 2pm (1 hr from now) in Gates 104<p>Map - <a href="http://maps.google.com/maps?f=q&#38;source=s_q&#38;hl=en&#38;geocode=&#38;q=Gates+104,+stanford&#38;sll=37.0625,-95.677068&#38;sspn=45.957536,93.076172&#38;ie=UTF8&#38;ll=37.430173,-122.172963&#38;spn=0.001414,0.00284&#38;t=h&#38;z=19" rel="nofollow">http://maps.google.com/maps?f=q&#38;source=s_q&#38;hl=en&#38...</a>
评论 #849353 未加载
extension超过 15 年前
Don't get too excited, this requires unit tests to detect the bug. In other words, if you already have a pretty good understanding of the bug, this thing will evolve a fix for you instead of having to write it yourself.<p>If you can write an algorithm that <i>finds</i> bugs, then you've really got something.
评论 #850051 未加载