all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Ian Zimmerman <itz@buug.org>
To: help-gnu-emacs@gnu.org
Subject: Re: From Gnus to mu4e
Date: Fri, 28 Aug 2015 08:31:26 -0700	[thread overview]
Message-ID: <20150828145303.19310.0B5C0550@ahiker.mooo.com> (raw)
In-Reply-To: <20150828090619.GH30233@chitra.no-ip.org>

On 2015-08-28 11:06 +0200, Suvayu Ali wrote:

> And essentially this is the beauty of the maildir
> format, data integrity.

I agree, but that is not the same as absence of races.  See below.

> Hopefully I have explained myself clearly enough.  Or maybe you were
> trying to say something else?  In that case please feel free to stop me.

We have different definitions of "race".  To me, corruption is not a
necessary ingredient; a race is just a situation where two (or more)
threads or processes mutate data in ways that are independent
(ie. commutative) in the abstract, and yet the final state of the data
depends on the order of the changes.

A race can even be completely harmless if the two concrete
representations of the final state in fact represent the same abstract
state.  An extreme example of that would be a log structured system,
where the difference is simply in the order of the log records left by
the changes.  Yes, this is a race by my definition; but it's a feature,
not a bug :-)

> When MUA 2 fails, it is easily handled by reporting to the user and not
> trying to commit the changes again.  E.g. in mutt, this is handled by
> telling the user something like: file does not exist (I don't recall the
> exact phrasing), and keeping the folder state as is.

I don't know about you, but if I got this blurb from my MUA I would
first stare at the screen for minutes, repeating "wtf wtf", then (if I
was having a good day) investigate, and finally mutate the state of my
computer to ensure exclusive access :-) IOW, I don't want such weirdness
to happen, whether I call it "race" or not.

Lastly, it is not even clear what we should consider "corruption", or
the absence of it.  Is internal consistency enough?  Consider the
classic motivating example for database transactions, with two threads
trying to update an account balance datum, and only one succeeding.
Let's say there's no separate transactions table (a stretch, I know).
Then the data after the mixup is internally consistent; there just
aren't many ways that a single numerical value can be incosistent :-)
But it doesn't reflect reality, so maybe it is corrupt?

And to close the circle, this example in fact has analogy with our
maildir situation:  the MUA trying to set the "Replied" flag presumably
just sent off a reply.  So the failure to set the flag means the maildir
state, while internally consistent, doesn't reflect reality.

-- 
Please *no* private copies of mailing list or newsgroup messages.
Rule 420: All persons more than eight miles high to leave the court.




  reply	other threads:[~2015-08-28 15:31 UTC|newest]

Thread overview: 41+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-08-20 21:23 From Gnus to mu4e Julien Cubizolles
2015-08-21 10:28 ` Julien Cubizolles
2015-08-21 10:49   ` Colin Yates
2015-08-21 13:06 ` Suvayu Ali
2015-08-26  6:53   ` Julien Cubizolles
2015-08-25  5:49 ` Bastien
2015-08-25  6:28   ` Ian Zimmerman
2015-08-25  6:56     ` Bastien Guerry
2015-08-26  7:22   ` Julien Cubizolles
2015-08-27 12:50     ` Rainer M Krug
2015-08-27 17:15       ` Bastien
2015-08-28  8:39         ` Rainer M Krug
2015-08-28  8:44           ` Bastien
2015-08-28  8:51             ` Rainer M Krug
2015-08-28  8:58               ` Rasmus
2015-08-28  9:15                 ` Julien Cubizolles
2015-08-28 10:03                   ` Rainer M Krug
2015-08-28 10:08                     ` Rasmus
2015-08-28 10:41                       ` Rainer M Krug
2015-08-28 10:04                   ` Rasmus
2015-08-28  8:51           ` Bastien
2015-08-27 21:27       ` Julien Cubizolles
2015-08-27 23:34         ` Suvayu Ali
2015-08-27 23:50           ` Ian Zimmerman
2015-08-28  0:14             ` Suvayu Ali
2015-08-28  0:24               ` Ian Zimmerman
2015-08-28  8:25                 ` Rainer M Krug
2015-08-28  9:06                 ` Suvayu Ali
2015-08-28 15:31                   ` Ian Zimmerman [this message]
2015-08-31  0:16                     ` Suvayu Ali
2015-08-28  8:21         ` Rainer M Krug
2015-08-27 12:58     ` Suvayu Ali
2015-08-27 15:52       ` Glenn Morris
2015-08-27 17:32         ` Suvayu Ali
2015-08-27 17:11       ` Bastien
2015-08-27 17:08     ` Bastien
2015-08-27 17:30       ` Suvayu Ali
2015-08-27 21:52       ` Julien Cubizolles
2015-08-27 22:18         ` Bastien
2015-08-27 23:30           ` Julien Cubizolles
     [not found] <mailman.14.1440105837.31004.help-gnu-emacs@gnu.org>
2015-08-24 11:19 ` Joost Kremers

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20150828145303.19310.0B5C0550@ahiker.mooo.com \
    --to=itz@buug.org \
    --cc=help-gnu-emacs@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.