# RealDiff: 运行时行为差异分析工具

Original title: Show HN: RealDiff – runtime behavior diffing for pull requests (six languages)

> Hacker News story 49464459 · language: zh · submitted 2026-08-27
> Web version: https://zeli.app/zh/story/49464459
> About this feed: https://zeli.app/llms.txt · Agent guide: https://zeli.app/skill.md

▲ 40 · by [issacnitin](<https://news.ycombinator.com/user?id=issacnitin>) · 💬 10
[original](<https://github.com/issacnitin/RealDiff>) · [HN discussion](<https://news.ycombinator.com/item?id=49464459>)

## Summary

RealDiff 是一款专为 Pull Request 设计的运行时行为差异分析工具，支持 .NET、Java、Node、Go、Rust 和 Python 六种语言。它不仅能检测代码修改，更能深入追踪这些修改在运行时引发的实际行为变化，包括那些未直接编辑的文件中产生的连锁反应。通过构建两个 Git 版本并观察测试执行，RealDiff 能精准定位因排序稳定性、重试策略等细微改动导致的逻辑偏差，帮助开发者在合并前发现传统代码审查难以察觉的潜在 Bug。

## Key quote

> 普通的代码差异告诉你修改了什么，而 RealDiff 告诉你这些修改真正改变了什么，包括那些 Pull Request 从未触碰的文件中的影响。

## HN discussion (10 comments)

### [vlovich123](<https://news.ycombinator.com/item?id=49465643>)

> 我读了几遍 readme，还是完全搞不懂这玩意儿有啥用。那个 Sort => SortBy 的动机示例，既没说明高亮的是什么，也没说怎么高亮的。它是用旧测试套件跑新改动，作为一种弱形式的变异测试吗？还是别的什么？

### [jedisct1](<https://news.ycombinator.com/item?id=49468022>)

> 不支持 Zig？

---

## Cite

- Page: https://zeli.app/zh/story/49464459
- Date: 2026-08-27
- Source: github.com (https://github.com/issacnitin/RealDiff)
- Hacker News: https://news.ycombinator.com/item?id=49464459

## Other languages

- en: https://zeli.app/story/49464459 · markdown: https://zeli.app/story/49464459.md
- ja: https://zeli.app/ja/story/49464459 · markdown: https://zeli.app/ja/story/49464459.md
- ko: https://zeli.app/ko/story/49464459 · markdown: https://zeli.app/ko/story/49464459.md
- de: https://zeli.app/de/story/49464459 · markdown: https://zeli.app/de/story/49464459.md
- es: https://zeli.app/es/story/49464459 · markdown: https://zeli.app/es/story/49464459.md
- ru: https://zeli.app/ru/story/49464459 · markdown: https://zeli.app/ru/story/49464459.md
