Re:Introducing Swift
by AlexanderDhoore on Monday June 02, 2014 @04:43PM
(#7836241)
I immediately thought about that as well. I wonder how they pull it off? Swift is not a functional language, so they just save every single variable, or what?
[ Parent
| on HN ]
Re:Introducing Swift
by seanmcdirmid on Monday June 02, 2014 @04:54PM
(#7836310)
Time travel debugging has existed for a long time, and it's not limited to functional languages; the most obvious way they could do this is through checkpointing.
Checkpointing is a natural fit with the Cocoa API, which uses an event loop. Just save the state of the application after each event is handled.