@millihertz
It might not be true for web "apps", but don't applications on e.g. mobile phones still work exactly like that? 🤔
@millihertz
No, I think it's pretty accurate. I think saving the state boils down to saving program's memory — when everything is position independent it's no longer a problem. And if this makes the program crash, it just gets relaunched. And of course its state gets cleared if the app was updated. I think even they have even implemented something like this for desktop applications in Mac OS X, but I'm not sure how it's done now.
@millihertz
However the part that on top of that Android applications are running in some sort of VM or at least get JIT-compiled slipped my mind completely. You're absolutely right, it is indeed more complex than things used to be 😄