# Rewind VM Builds a Clock Out of Conditional Branches

Original title: A Clock Made of Branches

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

▲ 3 · by [surprisetalk](<https://news.ycombinator.com/user?id=surprisetalk>) · 💬 0
[original](<https://fzakaria.com/2026/11/01/a-clock-made-of-branches>) · [HN discussion](<https://news.ycombinator.com/item?id=50628600>)

## Summary

Building Rewind, a deterministic VM, means solving time: the host wall clock varies between runs, so replays diverge. Exit time advances 5µs per syscall but treats CPU work as instant, letting timeouts and races slip through. Counter time instead ticks one nanosecond per retired conditional branch, the approach rr popularized. Testing a billion-iteration loop shows instruction counts drift with interrupts while branch counts stay exact, making branches Rewind's default clock.

## Key quote

> Some say time is an illusion. I say it's a `jnz` counter.

---

## Cite

- Page: https://zeli.app/story/50628600
- Date: 2026-11-24
- Source: fzakaria.com (https://fzakaria.com/2026/11/01/a-clock-made-of-branches)
- Hacker News: https://news.ycombinator.com/item?id=50628600

## Other languages

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