unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Dmitry Gutov <dgutov@yandex.ru>
To: Stefan Monnier <monnier@iro.umontreal.ca>
Cc: bruce.connor.am@gmail.com, emacs-devel <emacs-devel@gnu.org>
Subject: Re: Async package.el
Date: Wed, 08 Apr 2015 04:49:09 +0300	[thread overview]
Message-ID: <55248915.5070707@yandex.ru> (raw)
In-Reply-To: <jwv6197y5s5.fsf-monnier+emacs@gnu.org>

On 04/08/2015 12:46 AM, Stefan Monnier wrote:

> I strongly disagree.

I'm not sure you actually do. By "interface", I mean how the user works 
with it, not whether we use asynchronous calls under the hood (which, 
with care, usually can improve the user experience).

>> While doing it in parallel is great, refreshing the table of
>> packages right under the user's nose is bound to create problems.
>
> PCL-CVS and VC-Dir have been doing the same for years with
> great success.  It shouldn't cause problems.  But indeed, to make it
> work well requires extra care.

I haven't used PCL-CVS, but VC-Dir is a good counter-example: while it's 
refreshed asynchronously, we don't really expect the user to do much 
while that happens, other than maybe look at the output. It's just nicer 
to have a responsive Emacs during this operation (which could be long in 
certain cases).

And when vc-dir buffer is initially displayed, we don't have any "stale" 
data about the repository. First the data is fetched (though 
asynchronously), then the user can interact with it.

>> - Wait until the user invokes `M-x list-packages' to update it. We could do
>> it while Emacs is idle.
>
> I suspect you mean to add a "Don't" at the very beginning.  It'd be

I kinda did, implicitly (the last sentence before the list ended with 
"we don't have to"). Admittedly, it's awkward wording.

> acceptable to add such a (mis)feature, but it should very clearly be OFF
> by default, since we don't want Emacs to "call home" in such a way
> by default.

Fair enough. I'm also more partial to the option 1 (only refresh once a 
day), because it's more predictable, but the above would be closer to 
how other systems and applications look for updates (in the background, 
without bothering the user), so it should be something to consider.



  reply	other threads:[~2015-04-08  1:49 UTC|newest]

Thread overview: 40+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-04-06 10:46 Async package.el Artur Malabarba
2015-04-06 13:53 ` Dmitry Gutov
2015-04-06 14:32   ` Artur Malabarba
2015-04-07  1:19     ` Dmitry Gutov
2015-04-07 21:46       ` Stefan Monnier
2015-04-08  1:49         ` Dmitry Gutov [this message]
2015-04-08 13:32           ` Stefan Monnier
2015-04-09  1:49             ` Dmitry Gutov
2015-04-09 14:06               ` raman
2015-04-09 14:22                 ` Rasmus
2015-04-09 14:50                   ` Artur Malabarba
2015-04-09 14:53                     ` Artur Malabarba
2015-04-09 15:19                   ` async message Ivan Shmakov
2015-04-10 14:58                     ` raman
2015-04-10  1:32                   ` Async package.el raman
2015-04-09 18:18                 ` Stefan Monnier
2015-04-10 15:00                   ` raman
2015-04-12  0:46                   ` Artur Malabarba
2015-04-12  3:53                     ` Stefan Monnier
2015-04-07 23:26       ` Artur Malabarba
2015-04-08  2:19         ` Dmitry Gutov
2015-04-08  9:43           ` Artur Malabarba
2015-04-08 16:02             ` Dmitry Gutov
2015-04-08 18:39               ` Artur Malabarba
2015-04-09  2:10                 ` Dmitry Gutov
2015-04-09 10:14                   ` Artur Malabarba
2015-04-09 12:34                     ` Dmitry Gutov
2015-04-12  1:38                       ` Artur Malabarba
2015-04-07  5:31     ` Daiki Ueno
2015-04-07  9:13       ` Dmitry Gutov
2015-04-07  9:59         ` Artur Malabarba
2015-04-07 11:22           ` Robert Pluim
2015-04-07 12:33             ` Artur Malabarba
2015-04-07 14:29               ` Robert Pluim
2015-04-08  2:21                 ` Artur Malabarba
2015-04-07 21:50           ` Stefan Monnier
2015-04-08  5:27           ` Daiki Ueno
2015-04-09  8:38           ` Achim Gratz
2015-04-09 13:09             ` Stefan Monnier
2015-04-07 18:06 ` Stefan Monnier

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

  List information: https://www.gnu.org/software/emacs/

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

  git send-email \
    --in-reply-to=55248915.5070707@yandex.ru \
    --to=dgutov@yandex.ru \
    --cc=bruce.connor.am@gmail.com \
    --cc=emacs-devel@gnu.org \
    --cc=monnier@iro.umontreal.ca \
    /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 public inbox

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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).