From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0 ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id aupPGsidHGF3jgAAgWs5BA (envelope-from ) for ; Wed, 18 Aug 2021 07:42:32 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0 with LMTPS id CC6CFcidHGFJNQAA1q6Kng (envelope-from ) for ; Wed, 18 Aug 2021 05:42:32 +0000 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id CD55413976 for ; Wed, 18 Aug 2021 07:42:31 +0200 (CEST) Received: from localhost ([::1]:54608 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mGELN-0001fi-Jw for larch@yhetil.org; Wed, 18 Aug 2021 01:42:29 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:38210) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mGEKL-0001fa-88 for emacs-orgmode@gnu.org; Wed, 18 Aug 2021 01:41:25 -0400 Received: from mail-io1-xd2e.google.com ([2607:f8b0:4864:20::d2e]:47098) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mGEKJ-0007sx-Mv for emacs-orgmode@gnu.org; Wed, 18 Aug 2021 01:41:24 -0400 Received: by mail-io1-xd2e.google.com with SMTP id b200so1158677iof.13 for ; Tue, 17 Aug 2021 22:41:22 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=aivwCy04c44Jkdho6Yj+ITy5TvDzej2t7iIp2sTFUVc=; b=aCRby/+t/M6ZgioUy+Ulp2J2iN4Kg8q4EhAn4Bmem1/qiUDKFPk7aq0MQQcLJr3h8t KSxGBXEPjvs+xBMmnuKAm09HvIXJfboMhQyOU7/qsjOzP8mliij8sRq+QpPpzb2r2SYQ o+ej7311413YCvC6suMtF3c8ODWwC9EOcLEW+SkI8nTFh0J8OeKK2jBHNHzN1mdu449d rLraa4UNtA/QM/l0MuSr3esTn1puY70ineAACfZFSEzQYwkIW9C5RsDzbuQveBUkpRwj +S5jZm+u3pRUwWQJ7KAOCl3DfatNukNI+9VOrWzazAqJVIMe/9d6+JHS3lbJA8k3CuPE mg2Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=aivwCy04c44Jkdho6Yj+ITy5TvDzej2t7iIp2sTFUVc=; b=S1iaznW2jLd0dychyt8tJfxCI08Y9rOru5ONXeshXN/jMWisdZTpg4b8vFjvnei3Tr oyryF1GgGh+/ZIp8Uf02kSkY0B7ltU6S0H3Z65i185oGP3aNzMnnndLNBCFY6A6y7ko3 rezQsv8H1Kg/ZI9bWQ1C7Gnyf0zztqh2HFDCFACqC7wrpFuogx6agbn5EClFlIBsWCsD sNd/knMxlj+Ddaw3MpwR5hSQRaMcegt6AgvAWfRnh/Xt9IJN7xgFpEB+WQaAHyPsxRjZ 7n4bcL0EPVvoyn93aJZG63AR+niaog4Q8kK16Be6aCvKbeR7sOOxKiMOnNe1EAfLjrbB 1IzQ== X-Gm-Message-State: AOAM532jYR5Wz5is6vyXpk46d3jZ8VHD9bpqNc51czgvHCm/Ah0ZPPPs QTxR1wtPIr8U+Dx2GuNW0Rtf8t1vSWZxOtfwChg= X-Google-Smtp-Source: ABdhPJw+aVwX2jUSaUIIjmq21KK4H8FOu2+uw4u9whH4vwoq/FvaxC5hMrdwXLYImAuGF39sK5x3QN6I/+pUE0gc080= X-Received: by 2002:a05:6638:1495:: with SMTP id j21mr6413084jak.117.1629265282025; Tue, 17 Aug 2021 22:41:22 -0700 (PDT) MIME-Version: 1.0 References: <874kbox5ww.fsf@gmail.com> <87v944v9ys.fsf@web.de> In-Reply-To: <87v944v9ys.fsf@web.de> From: Henrik Frisk Date: Wed, 18 Aug 2021 07:41:11 +0200 Message-ID: Subject: Re: Build agenda asynchronously To: "Dr. Arne Babenhauserheide" Content-Type: multipart/alternative; boundary="000000000000614d5805c9cee2a2" Received-SPF: pass client-ip=2607:f8b0:4864:20::d2e; envelope-from=frisk.h@gmail.com; helo=mail-io1-xd2e.google.com 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, FREEMAIL_FROM=0.001, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-orgmode@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Tim Cross , org-mode-email Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org Sender: "Emacs-orgmode" X-Migadu-Flow: FLOW_IN ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1629265352; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=aivwCy04c44Jkdho6Yj+ITy5TvDzej2t7iIp2sTFUVc=; b=Pg3L+Bz/uHgtioYAz/Pw8hGqsH3fs//JwmMMAJDfnL3TxfaBSXL7qs3NF/6J+4IV5AcEg4 3f6druvos0SoZlGa8fz4h/8bZwdegE93mim9LrTpKabRIeBo/4pBGuJxp0K+ZfuJfNr34Y WMCksZo8bVlQqRARSgr/Oyub6097GiYI+Q3eOCpIRzCtzkk1S8p5VBtVLhbAT5/m2R2rrD GIOU2peV7AdnaH+6wZ8/Ke2VZUuJLCQNZHrMij2xgN+1sxgEhgGHM/K/1QTasx3EpLTOy1 XTbFVJEyhAXdYNZ+Ey0vsfHmFLba0d53xWRNzD7ncS+7zt8WimXvLKA+J3eg9g== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1629265352; a=rsa-sha256; cv=none; b=b2HtwWs09oRm7Rm7qh7UGBKzpISkRs3cPLfGQscVdB6t7TLHsStVdaDJOxrQga/7WT+5+W bJGUcSDLByknnz7WoGJ25phw2WbgpPctG2g0D5p1I3fH7im8V/P+qPkeNE25K9Z8n6cJHx pROe1x92st3WUq6fH+AtGw9e9HVcHO0FV/T5mxN5Vmjcxs2AnnoW5ORnoGi+/+WVuNScmP saEYMfYVAR5PM3d0jpZ97h8hY+unmvqJWixRECFd3jcdC+Vuj5VIEvAujL+Jm11ObFBo5v zNnjhY6Zv/o7vEPfJJmE4ZxpHBr9yooj6WabM1vIhGmf2usqmU1JElj44RzPeA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20161025 header.b="aCRby/+t"; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (aspmx1.migadu.com: domain of emacs-orgmode-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=emacs-orgmode-bounces@gnu.org X-Migadu-Spam-Score: -3.12 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20161025 header.b="aCRby/+t"; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (aspmx1.migadu.com: domain of emacs-orgmode-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=emacs-orgmode-bounces@gnu.org X-Migadu-Queue-Id: CD55413976 X-Spam-Score: -3.12 X-Migadu-Scanner: scn1.migadu.com X-TUID: FREJHeKECRR4 --000000000000614d5805c9cee2a2 Content-Type: text/plain; charset="UTF-8" Den tis 17 aug. 2021 kl 08:54 skrev Dr. Arne Babenhauserheide < arne_bab@web.de>: > > Tim Cross writes: > > > Emacs' support for asynchronous operations is at best primitive. There > > is built-in support for calling processes asynchonously and > > there is some other development work to set the stage for adding threads, > > but I think general asynchronous processing inside Emacs is a long way > > off. A lot of how Emacs lisp works fundamentally lacks the low level > > control structures necessary to make data structures and operations on > > those structures thread safe. This means you have to work at a very low > > level in order to ensure code is thread safe and that simply isn't > > practical. Even defining the basic model for an asynchronous emacs lisp > > is non-trivial and once you have the model, you ahve to implement it. > > Maybe it could be possible to fire up a second Emacs and retrieve the > agenda-buffer? > > This is what I do for commands like exporting the agenda which can take a while with the -nw flag, but that is of course unsatisfactory for most use cases. /Henrik --000000000000614d5805c9cee2a2 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Den tis 17 aug. 2021 kl 08:54 skrev Dr. A= rne Babenhauserheide <arne_bab@web.de= >:

Tim Cross <th= eophilusx@gmail.com> writes:

> Emacs' support for asynchronous operations is at best primitive. T= here
> is built-in support for calling processes asynchonously and
> there is some other development work to set the stage for adding threa= ds,
> but I think general asynchronous processing inside Emacs is a long way=
> off. A lot of how Emacs lisp works fundamentally lacks the low level > control structures necessary to make data structures and operations on=
> those structures thread safe. This means you have to work at a very lo= w
> level in order to ensure code is thread safe and that simply isn't=
> practical. Even defining the basic model for an asynchronous emacs lis= p
> is non-trivial and once you have the model, you ahve to implement it.<= br>
Maybe it could be possible to fire up a second Emacs and retrieve the
agenda-buffer?

This is what I do for commands like exporting the age= nda which can take a while with the -nw flag, but that is of course unsatis= factory for most use cases.

/Henrik
--000000000000614d5805c9cee2a2--