unofficial mirror of emacs-tangents@gnu.org
 help / color / mirror / Atom feed
From: Eli Zaretskii <eliz@gnu.org>
To: "Gerd Möllmann" <gerd.moellmann@gmail.com>
Cc: arthur.miller@live.com, emacs-tangents@gnu.org
Subject: Re: Shrinking the C core
Date: Thu, 14 Sep 2023 16:20:32 +0300	[thread overview]
Message-ID: <83r0n0lwm7.fsf@gnu.org> (raw)
In-Reply-To: <m2cyykx5yz.fsf@Pro.fritz.box> (message from Gerd Möllmann on Thu, 14 Sep 2023 15:03:00 +0200)

> From: Gerd Möllmann <gerd.moellmann@gmail.com>
> Cc: emacs-tangents@gnu.org
> Date: Thu, 14 Sep 2023 15:03:00 +0200
> 
> I think the biggest problem with uncooperative multi-threading in Emacs
> is that Emacs has so much global state.  As a consequence, it's unsafe
> to let two threads use anything in the C code in parallel.

Indeed, that's the main problem.  Just adding threads to Lisp is easy.

> Maybe one could think of using some Python-like GIL, but that's kind
> of pointless, isn't it?

We already have that with the Lisp threads that we have in Emacs.



  reply	other threads:[~2023-09-14 13:20 UTC|newest]

Thread overview: 22+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-09-13  5:06 Shrinking the C core Arthur Miller
2023-09-13  6:33 ` Gerd Möllmann
2023-09-14 11:35   ` Arthur Miller
2023-09-14 13:03     ` Gerd Möllmann
2023-09-14 13:20       ` Eli Zaretskii [this message]
2023-09-15 17:11         ` Emanuel Berg
2023-09-15 18:39           ` Eli Zaretskii
     [not found] <AM9PR09MB497796E739349F8CB9AD4F4996F1A@AM9PR09MB4977.eurprd09.prod.outlook.com>
2023-09-12 11:55 ` Eli Zaretskii
2023-09-12 18:22   ` chad
2023-09-12 18:47     ` Yuri Khan
2023-09-12 19:06     ` Eli Zaretskii
2023-09-12 19:07     ` joakim
2023-09-12 19:42       ` Eli Zaretskii
2023-09-12 21:56         ` joakim
2023-09-13  5:05           ` Emanuel Berg
2023-09-13 14:29             ` joakim
2023-09-15  5:46               ` Emanuel Berg
2023-09-13 15:33             ` Fraga, Eric
2023-09-15  5:51               ` Emanuel Berg
2023-09-15 11:38                 ` Fraga, Eric
     [not found] <AM9PR09MB4977E9C0FD5922D0291C4B0796F1A@AM9PR09MB4977.eurprd09.prod.outlook.com>
2023-09-12 11:29 ` Po Lu
     [not found] <AM9PR09MB4977C010362EBF83BCF3491C96E0A@AM9PR09MB4977.eurprd09.prod.outlook.com>
     [not found] ` <873503y66i.fsf@yahoo.com>
     [not found]   ` <AM9PR09MB49779854134CDC2E4FB2AD2996E0A@AM9PR09MB4977.eurprd09.prod.outlook.com>
     [not found]     ` <E1qbX63-0003Ty-Rn@fencepost.gnu.org>
     [not found]       ` <E1qdgsR-0000j8-BN@fencepost.gnu.org>
     [not found]         ` <AM9PR09MB497757F8D921063E3D60D40C96EFA@AM9PR09MB4977.eurprd09.prod.outlook.com>
     [not found]           ` <ZPhih7q2ml8v6EfP@ACM>
     [not found]             ` <87bkeeoqf3.fsf@dataswamp.org>
     [not found]               ` <ZPl0+E1jYEJ2noRt@tuxteam.de>
     [not found]                 ` <87wmx2mooq.fsf@dataswamp.org>
2023-09-07  7:52                   ` tomas

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=83r0n0lwm7.fsf@gnu.org \
    --to=eliz@gnu.org \
    --cc=arthur.miller@live.com \
    --cc=emacs-tangents@gnu.org \
    --cc=gerd.moellmann@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.
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).