From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Newsgroups: gmane.emacs.devel Subject: Re: continuation passing in Emacs vs. JUST-THIS-ONE Date: Sun, 12 Mar 2023 07:33:23 +0100 Message-ID: References: <627090382.312345.1678539189382@office.mailbox.org> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="BbDVGDii7EcyI6ox" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="38119"; mail-complaints-to="usenet@ciao.gmane.io" To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Sun Mar 12 07:34:05 2023 Return-path: Envelope-to: ged-emacs-devel@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1pbFHQ-0009h4-Jm for ged-emacs-devel@m.gmane-mx.org; Sun, 12 Mar 2023 07:34:04 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pbFGu-0006wu-Cy; Sun, 12 Mar 2023 01:33:32 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pbFGr-0006uf-NI for emacs-devel@gnu.org; Sun, 12 Mar 2023 01:33:29 -0500 Original-Received: from mail.tuxteam.de ([5.199.139.25]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pbFGq-0005hx-4f for emacs-devel@gnu.org; Sun, 12 Mar 2023 01:33:29 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=tuxteam.de; s=mail; h=From:In-Reply-To:Content-Type:MIME-Version:References:Message-ID: Subject:To:Date:Sender:Reply-To:Cc:Content-Transfer-Encoding:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Id:List-Help:List-Unsubscribe:List-Subscribe: List-Post:List-Owner:List-Archive; bh=S2uSmrASEQ58QXlZSJCcz4mMlJxhha1V9HOneghMwKM=; b=B4IiTNe8avOVH9GovBzYSef6z8 G1i6jdpiHR8YYMiAsEzaMSWP3cL26jDJPWTN4M34qHNiAQy8I1CXBi1tBDFStOjrI7LThrh1wLDf/ AgazCkW+prZspO8JGqdnislhlhqAkr6IgEr7PhhJfqKugLURZJL5Z4kbTv28oLRys66PZX8S1L3xs oRl0z1kDDT+NCAm5wlFAy1gzSjTNt3943oDAtQwbhexKRv3j9KNrAjVRHHpMVbWqdkksYDn3QNEdV oyF9G5rc/pDKSlob6/kWY9WrmeiC+ILEiqaCspdllYwEACYuj4xEnGGdqc9lMTyc7GavFw6oOScSQ UxzlNhHA==; Original-Received: from tomas by mail.tuxteam.de with local (Exim 4.94.2) (envelope-from ) id 1pbFGl-0004Ig-C2 for emacs-devel@gnu.org; Sun, 12 Mar 2023 07:33:23 +0100 Content-Disposition: inline In-Reply-To: Received-SPF: pass client-ip=5.199.139.25; envelope-from=tomas@tuxteam.de; helo=mail.tuxteam.de X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.devel:304352 Archived-At: --BbDVGDii7EcyI6ox Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Sat, Mar 11, 2023 at 05:45:15PM -0800, Jim Porter wrote: [...] > In any case, working on this would likely be a big help for Emacs. One of > the more-common things I see people wish for in Emacs is "threading". I > think this is probably a mistaken wish (Emacs generally doesn't use enough > CPU to saturate a core), but what they really want is for fewer operations > that block for a long time. If it were easier to divide up long-running > tasks into small chunks, that would go a long way towards solving these > sorts of issues. Oooh. You made my day :) > (In theory, you could even get real multithreading this way, if you could > divide up your task in a way that Emacs could be sure some chunk can be > offloaded onto another thread.) Exactly: those are two different building blocks, and most useful when available separately. Cheers --=20 t --BbDVGDii7EcyI6ox Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iF0EABECAB0WIQRp53liolZD6iXhAoIFyCz1etHaRgUCZA1yKgAKCRAFyCz1etHa RiAtAJ4/669LPSmwg/nwCp9Lu0wWelyuiQCeJ4mFr1VKWckVDlcyuVFBDHylzd0= =iQRW -----END PGP SIGNATURE----- --BbDVGDii7EcyI6ox--