From: Eli Zaretskii <eliz@gnu.org>
To: chad <yandros@gmail.com>
Cc: rms@gnu.org, emacs-devel@gnu.org, p.stephani2@gmail.com,
yyoncho@gmail.com, arthur.miller@live.com, alexanderm@web.de,
drew.adams@oracle.com, monnier@iro.umontreal.ca
Subject: Re: Questions about throw-on-input
Date: Sat, 16 May 2020 14:29:50 +0300 [thread overview]
Message-ID: <83r1vkce35.fsf@gnu.org> (raw)
In-Reply-To: <CAO2hHWav_aahmgevyH_DM_Ck4KSGf=Pid6rM-LKWNJ9puZr7MA@mail.gmail.com> (message from chad on Fri, 15 May 2020 12:47:08 -0700)
> From: chad <yandros@gmail.com>
> Date: Fri, 15 May 2020 12:47:08 -0700
> Cc: Arthur Miller <arthur.miller@live.com>, Richard Stallman <rms@gnu.org>,
> EMACS development team <emacs-devel@gnu.org>, p.stephani2@gmail.com, yyoncho@gmail.com,
> alexanderm@web.de, Eli Zaretskii <eliz@gnu.org>, Drew Adams <drew.adams@oracle.com>
>
> The idea here is to create potential boundaries between the giant shared-mutable soup ala Oberon, Squeak,
> and (from what I understand) LispM, while still allowing useful shared state. In this hypothetical world, what
> are the cases where making most mutable data frame/window-local and building a minimal shared arena for
> explict lock/mod/copy state would break down? I can imagine that a list of current buffers, for example, would
> need to cross that boundary. Would project-wide search, edit, and refactoring tools be too constrained if a
> project had to live within a single frame/window? Does the tab-bar/tab-line interface help us figure out how to
> present the boundaries to the user in a helpful way?
I admit that I don't really understand what you are suggesting. The
Web browser model doesn't really help since, as Stefan pointed out,
almost nothing is shared between different pages being shown in
different windows/tabs in a browser, in stark contrast to what happens
in Emacs.
Making threads local to windows immediately brings up a question about
the same buffer being shown in more than one window, something I tend
to do a lot when studying code or writing something in one place of a
buffer by looking at what another place does.
Another piece of the global shared state is all the lists we maintain
that make Emacs help us, like suggest defaults by using history. Most
of that will be severely punished by limiting those lists to a single
window, especially if you consider that windows are ephemeral and get
deleted a lot.
Even redisplay is a problem: while on GUI frames it works on each
window independently from others, that is not so on TTY frames, where
optimal redrawing of the screen dictates us to redraw on the frame
level.
So I think your proposal will need to be much more detailed before it
can be seriously considered. Which is actually one of the more
profound lessons I learned from hacking Emacs: it is never enough to
have the general idea of how things work, no matter how accurate that
general idea is. The devil is in the details, and those details will
present tough problems, some of which will invalidate the proposed
solutions. You must consider at least the main of those details up
front, or your solution will be revealed as unworkable after a lot of
efforts were already invested.
My suggestion is to take a small number of common commands and see how
much of the global state is involved in their execution, both on the
Lisp level and on the C level. Then you might have a better idea how
to subdivide the global state, and maybe even whether it is feasible
to subdivide it into any meaningful parts.
next prev parent reply other threads:[~2020-05-16 11:29 UTC|newest]
Thread overview: 52+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-05-10 13:47 Questions about throw-on-input Alexander Miller
2020-05-11 14:13 ` Eli Zaretskii
2020-05-11 15:21 ` Stefan Monnier
2020-05-11 16:19 ` Eli Zaretskii
2020-05-11 17:27 ` Stefan Monnier
2020-05-11 17:39 ` Alexander Miller
2020-05-11 18:23 ` Eli Zaretskii
2020-05-11 18:24 ` Stefan Monnier
2020-05-11 19:48 ` Alexander Miller
2020-05-11 20:14 ` Stefan Monnier
2020-05-12 22:33 ` Alexander Miller
2020-05-13 14:43 ` Eli Zaretskii
2020-05-13 18:47 ` Alexander Miller
2020-05-14 8:32 ` Philipp Stephani
2020-05-14 14:23 ` Eli Zaretskii
2020-05-14 14:37 ` Philipp Stephani
2020-05-14 16:56 ` Drew Adams
2020-05-15 3:21 ` Richard Stallman
2020-05-15 3:54 ` Stefan Monnier
2020-05-15 8:19 ` Arthur Miller
2020-05-15 15:45 ` Stefan Monnier
2020-05-15 16:46 ` Yuan Fu
2020-05-15 17:31 ` Stefan Monnier
2020-05-15 17:50 ` yyoncho
2020-05-15 18:44 ` Alexander Miller
2020-05-15 18:55 ` Stefan Monnier
2020-05-15 19:46 ` Philipp Stephani
2020-05-15 18:00 ` Andrea Corallo
2020-05-15 17:35 ` Arthur Miller
2020-05-15 19:47 ` chad
2020-05-16 11:29 ` Eli Zaretskii [this message]
2020-05-12 2:39 ` Daniel Colascione
2020-05-12 14:37 ` Eli Zaretskii
2020-05-11 18:17 ` Eli Zaretskii
-- strict thread matches above, loose matches on Subject: below --
2020-05-09 13:09 Alexander Miller
2020-05-10 11:11 ` yyoncho
2020-05-07 7:31 Ivan Yonchovski
2020-05-07 12:36 ` Eli Zaretskii
2020-05-07 14:28 ` Ivan Yonchovski
2020-05-07 21:11 ` yyoncho
2020-05-08 1:58 ` Stefan Monnier
2020-05-08 4:36 ` yyoncho
2020-05-08 4:43 ` yyoncho
2020-05-12 4:15 ` Michael Heerdegen
2020-05-08 10:41 ` Eli Zaretskii
2020-05-08 11:23 ` Ivan Yonchovski
2020-05-08 11:45 ` Eli Zaretskii
2020-05-08 11:55 ` yyoncho
2020-05-08 14:55 ` Stefan Monnier
2020-05-08 18:04 ` yyoncho
2020-05-07 13:49 ` Stefan Monnier
2020-05-07 15:36 ` Ivan Yonchovski
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=83r1vkce35.fsf@gnu.org \
--to=eliz@gnu.org \
--cc=alexanderm@web.de \
--cc=arthur.miller@live.com \
--cc=drew.adams@oracle.com \
--cc=emacs-devel@gnu.org \
--cc=monnier@iro.umontreal.ca \
--cc=p.stephani2@gmail.com \
--cc=rms@gnu.org \
--cc=yandros@gmail.com \
--cc=yyoncho@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).