unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Eli Zaretskii <eliz@gnu.org>
To: Dmitry Gutov <dgutov@yandex.ru>
Cc: laszlomail@protonmail.com, larsi@gnus.org,
	stefankangas@gmail.com, drew.adams@oracle.com,
	emacs-devel@gnu.org
Subject: Re: [External] : Re: Would you say this information window is well designed?
Date: Sun, 28 Feb 2021 19:32:59 +0200	[thread overview]
Message-ID: <83sg5gm71w.fsf@gnu.org> (raw)
In-Reply-To: <8f6be1e9-09ab-09ae-69cd-eef092d4dc8b@yandex.ru> (message from Dmitry Gutov on Sat, 27 Feb 2021 23:44:18 +0200)

> Cc: drew.adams@oracle.com, stefankangas@gmail.com, larsi@gnus.org,
>  emacs-devel@gnu.org
> From: Dmitry Gutov <dgutov@yandex.ru>
> Date: Sat, 27 Feb 2021 23:44:18 +0200
> 
> > thread-yield runs in the context of the thread that yields.  You make
> > it sound like there's some entity other than the involved threads
> > which runs thread-yield, but that's not what happens.
> 
> It was also my impression that the threading facility in Emacs is 
> incomplete.

Nothing in Emacs is ever complete.

> For one thing, error handling is very low-level (saving only the last 
> error looks like a straight translation from C).

Patches welcome.  The original version didn't provide even that
rudimentary error handling.

> Another: there is no 'thread-resume' which some came to expect from 
> other languages.

IMO, thread-resume makes no sense when only one thread can run at a
time.

We could instead add an optional argument to thread-yield, with the
effect that the calling thread would yield to the thread specified by
the argument.

> But it seems we can substitute with condition-wait (in the worker 
> thread) + condition-notify (in an idle timer which it would create 
> before waiting). That should help suspend-resume the worker thread on a 
> regular basis, all the while giving the main thread the time to do its 
> thing.

I encourage you (and everyone else) to try to come up with a real-life
application that uses this paradigm, and see if it works well.  The
original design didn't intend for this to become the main paradigm,
but that doesn't mean it cannot work well.

> Either way, I don't think this can solve the original issue. Having a 
> link appear only some time after a Help buffer is shown is not a great 
> experience either: blinking elements are a visual nuisance. So if we 
> could pre-index the manual for symbols, that would be preferable.

I tend to agree.



  reply	other threads:[~2021-02-28 17:32 UTC|newest]

Thread overview: 32+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-02-22 18:37 Would you say this information window is well designed? Peter Dean
2021-02-22 18:48 ` Eli Zaretskii
2021-02-22 19:23   ` Dmitry Gutov
2021-02-22 19:28     ` Eli Zaretskii
2021-02-22 20:28       ` Joost Kremers
2021-02-22 21:49       ` Dmitry Gutov
2021-02-22 21:57         ` Lars Ingebrigtsen
2021-02-22 22:30           ` [External] : " Drew Adams
2021-02-23  0:45             ` Stefan Kangas
2021-02-23  5:34               ` Drew Adams
2021-02-23  5:46                 ` Drew Adams
2021-02-23  5:54                 ` Peter Dean
2021-02-23 15:22                   ` Eli Zaretskii
2021-02-23 15:29                     ` Peter Dean
2021-02-23 16:00                       ` Eli Zaretskii
2021-02-23 17:32                         ` Peter Dean
2021-02-23 17:40                           ` Eli Zaretskii
2021-02-23 17:59                             ` Peter Dean
2021-02-23 18:26                               ` Eli Zaretskii
2021-02-23 19:36                                 ` Peter Dean
2021-02-23 19:46                                   ` Eli Zaretskii
2021-02-23 21:58                                     ` Peter Dean
2021-02-24  3:25                                       ` Eli Zaretskii
2021-02-27 21:44                                 ` Dmitry Gutov
2021-02-28 17:32                                   ` Eli Zaretskii [this message]
2021-03-01  5:22                                     ` Richard Stallman
2021-02-23  5:44               ` Drew Adams
2021-02-23 14:18               ` Lars Ingebrigtsen
2021-02-23 15:44                 ` Drew Adams
2021-02-23 16:15                   ` Stefan Kangas
2021-02-23 16:28                     ` Drew Adams
2021-02-22 21:19 ` Stefan Kangas

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=83sg5gm71w.fsf@gnu.org \
    --to=eliz@gnu.org \
    --cc=dgutov@yandex.ru \
    --cc=drew.adams@oracle.com \
    --cc=emacs-devel@gnu.org \
    --cc=larsi@gnus.org \
    --cc=laszlomail@protonmail.com \
    --cc=stefankangas@gmail.com \
    /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).