Date: Wed, 03 Jun 2026 07:05:09 -0700
On Tuesday, 2 June 2026 16:31:41 Pacific Daylight Time Jonathan Grant via Std-
Proposals wrote:
> > On a desktop app I might want to try to save my current state and restart.
> > There is a list of text editors that keep their current state mapped to
> > disk with mmap() and can recover from a crash by mapping their working
> > memory right back in again after a restart.
> Could you tell me which editors do that? The risk is the current state
> surely would contain the constraint violation that caused the error
> detected at runtime?
Which is why they usually don't do what was proposed, but something similar:
they keep information saved to disk, usually only unsaved changes to open
files. Changed settings, undo history and other program state is usually not
saved. Even if more information is saved, it's in a serialised format, not an
image dump.
Imagine the user upgraded the application while it was running. A restart
would mean loading a memory dump from a "foreign" application and would
introduce further problems.
Proposals wrote:
> > On a desktop app I might want to try to save my current state and restart.
> > There is a list of text editors that keep their current state mapped to
> > disk with mmap() and can recover from a crash by mapping their working
> > memory right back in again after a restart.
> Could you tell me which editors do that? The risk is the current state
> surely would contain the constraint violation that caused the error
> detected at runtime?
Which is why they usually don't do what was proposed, but something similar:
they keep information saved to disk, usually only unsaved changes to open
files. Changed settings, undo history and other program state is usually not
saved. Even if more information is saved, it's in a serialised format, not an
image dump.
Imagine the user upgraded the application while it was running. A restart
would mean loading a memory dump from a "foreign" application and would
introduce further problems.
-- Thiago Macieira - thiago (AT) macieira.info - thiago (AT) kde.org Principal Engineer - Intel Data Center - Platform & Sys. Eng.
Received on 2026-06-03 14:05:15
