all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Eli Zaretskii <eliz@gnu.org>
To: Arthur Miller <arthur.miller@live.com>
Cc: emacs-devel@gnu.org
Subject: Re: Info: No GIL Multithreading strat for Python
Date: Sun, 03 Mar 2024 21:32:28 +0200	[thread overview]
Message-ID: <86zfvfm7qr.fsf@gnu.org> (raw)
In-Reply-To: <DU2PR02MB10109095028CFD45E5AA2830E965C2@DU2PR02MB10109.eurprd02.prod.outlook.com> (message from Arthur Miller on Sun, 03 Mar 2024 20:01:06 +0100)

> From: Arthur Miller <arthur.miller@live.com>
> Cc: emacs-devel@gnu.org
> Date: Sun, 03 Mar 2024 20:01:06 +0100
> 
> > Python is a programming language, where the programmers are
> > responsible for what the parallel programs they write do and how do
> > they cope with the various dangers of concurrency.  If the program
> > crashes, the programmer has only him/herself to blame.
> 
> I am not sure what you are trying to say?

Just what I said: that problems with implementing concurrency in Emacs
are not problems of the Emacs Lisp programming language.  So they
cannot be solved solely by changing the language.

> Anyway; Python Intepretter and Emacs are not the same, but there are some
> important similarities and similar problems. What they are talking there might
> be an interesting multithreading strategy for Emacs as well. They have similar
> problem with the shared state.

No, the problems in Emacs are much harder, because the shared state
exists independently of the programs written in Emacs Lisp, and
because the way we write Emacs Lisp programs basically _requires_ the
shared state to exist.

> > By contrast, Emacs is a program that lets users process text in
> > various scenarios, where users expect Emacs to react gracefully to
> > errors.  Emacs the program has a very large global state that doesn't
> > work well with any concurrency, and which any programmer will keep as
> 
> Yes, we all know that, and that is what that presentation was about; that is why
> I have hinted abou it.

Yes, we all know what you wanted to say.  And that is why I wrote the
response: to point out an important caveat.  So that people would keep
that in mind when they watch.



  reply	other threads:[~2024-03-03 19:32 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-03-03 11:50 Info: No GIL Multithreading strat for Python Arthur Miller
2024-03-03 15:56 ` Eli Zaretskii
2024-03-03 19:01   ` Arthur Miller
2024-03-03 19:32     ` Eli Zaretskii [this message]
2024-03-04 12:19       ` Arthur Miller
2024-03-04 12:44         ` Eli Zaretskii
2024-03-04 15:55           ` Arthur Miller
2024-03-04 16:30           ` Konstantin Kharlamov
2024-03-04 16:50             ` Eli Zaretskii
2024-03-05  0:44               ` chad
2024-03-05  0:44               ` chad

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=86zfvfm7qr.fsf@gnu.org \
    --to=eliz@gnu.org \
    --cc=arthur.miller@live.com \
    --cc=emacs-devel@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.