# Nix wrote half of my debugger

> Hacker News story 50017247 · language: en · submitted 2026-10-09
> Web version: https://zeli.app/story/50017247
> About this feed: https://zeli.app/llms.txt · Agent guide: https://zeli.app/skill.md

▲ 234 · by [ingve](<https://news.ycombinator.com/user?id=ingve>) · 💬 62
[original](<https://fzakaria.com/2026/10/07/nix-wrote-half-of-my-debugger>) · [HN discussion](<https://news.ycombinator.com/item?id=50017247>)

## Summary

A developer built Rewind VM, a deterministic VM that turns every Nix build into a pure function of its inputs, including thread scheduling. Using it to hunt race conditions, he discovered that Nix already provides the hardest parts of a debugger: exact inputs, debug symbols, and sources. The tool now offers source panels, stack frames, gdb support, thread lanes, and a 'Check from here' feature to pinpoint race conditions.

## Key quote

> I went into each new feature thinking it would be a big code-lift but I kept running into the same thing: the hard part of each feature was already done, and Nix had done it.

## HN discussion (62 comments)

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

> There is likely a mass of devs that is probably, hmmm, 10x the number of Nix devs from over a year ago, who know exactly what Nix offers and why it is cool, but couldn't be bothered to master it until AI came along and basically "solved the problem".
>
> So I'd expect AI to rapidly accelerate Nix adoption. Hopefully, because it is amazing.

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

> Seeing Nix these days is such a whiplash experience. We have fully deterministic systems and then we have LLMs. God ;)

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

> I kind of confused what nix has to do with this considering it seems to basically be reimplementing rr?

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

> I find myself moving more and more non-build things into nix builds because I don't want to roll my own cache invalidation.  Seems like this is yet another reason to do so.

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

> Dude, this is amazing stuff. Farid really is putting out banger after Nix banger haha. This sounds like a mini/less capable Antithesis runtime, but running on your machine.
>
> Curious: how does Rewind deal with randomness?

---

## Cite

- Page: https://zeli.app/story/50017247
- Date: 2026-10-09
- Source: fzakaria.com (https://fzakaria.com/2026/10/07/nix-wrote-half-of-my-debugger)
- Hacker News: https://news.ycombinator.com/item?id=50017247

## Other languages

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