Skip to content

Comment on Ask HN: How do you run long computations without interruption?

Comments

Checkpointing - saving the state of the computation at intermediate points - can help a lot with this.

BUT, beware that checkpointing can also be unreliable if the system being simulated exhibits chaotic dynamics; truncating off "unimportant" decimal places during checkpointing can produce results that diverge rapidly between the "original" and "restarted from checkpoint" versions.

Yes, checkpoints help a ton. Even if this means dealing with a slower algorithm. Then make sure to never overwrite the intermediate steps and back them up as-is if needed.

AboutSource Built by g1lg1l

Hackerly is an independent reader for Hacker News, built on the public HN API. Not affiliated with Y Combinator.