Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Does this type of analysis and deterministic VM help async workloads (e.g. c++ coroutine, fiber, future, etc.)? My understanding is that they don't. I would love to know how to find the critical path for async code. It feels very hard (maybe impossible) to do without changing the framework code (e.g. embedding something like a request context so we know a later task on thread A is actually a continuation for request R).
 help



Yes it does. Everything is deterministic even the thread orderings and all randomness that would decide asyc scheduling in user space.

I see. I am not familiar with deterministic VMs. I can see how it can intercept all system calls. I guess randomness is deterministic as well because all the inputs to the RNG are deterministic. So everything is a deterministic state machine.

I wrote https://fzakaria.com/2026/10/24/dafuq-is-a-deterministic-vm this for a friend to better understand what it is.

Thanks for sharing.

> Give a CPU the same registers, the same memory and the same instructions, and it computes the same result.

So is branch prediction, cacheline misses, memory accesses I guess.

> One more outside influence is easy to miss: other CPUs. On two cores, which thread wins a race comes down to cache misses and pipeline stalls, so Rewind provides a single virtual CPU and the threads take turns on it.

Is this a limitation in practice? With a single virtual cpu, data races simply can't happen?


they are no longer possible due to timing from the hardware.



Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: