From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Jim Porter Newsgroups: gmane.emacs.devel Subject: Re: continuation passing in Emacs vs. JUST-THIS-ONE Date: Sun, 2 Apr 2023 21:51:56 -0700 Message-ID: References: <627090382.312345.1678539189382@office.mailbox.org> <87sfe7suog.fsf@gmail.com> <1c6fedae-10b4-5d97-5036-eaa736e1b816@gmail.com> <87mt4c6xju.fsf@logand.com> <87a6001xm0.fsf@logand.com> <87tty78fwg.fsf@logand.com> <875yad240l.fsf@logand.com> <87mt3pr4sa.fsf@yahoo.com> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="15964"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Tomas Hlavaty , Karthik Chikmagalur , Thomas Koch , "emacs-devel@gnu.org" To: Po Lu , Stefan Monnier Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Mon Apr 03 06:52:42 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 1pjCBN-0003zG-E1 for ged-emacs-devel@m.gmane-mx.org; Mon, 03 Apr 2023 06:52:41 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pjCAj-0007En-Qj; Mon, 03 Apr 2023 00:52:01 -0400 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 1pjCAi-0007Ec-Hi for emacs-devel@gnu.org; Mon, 03 Apr 2023 00:52:00 -0400 Original-Received: from mail-pj1-x102d.google.com ([2607:f8b0:4864:20::102d]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1pjCAg-0001EJ-SZ for emacs-devel@gnu.org; Mon, 03 Apr 2023 00:52:00 -0400 Original-Received: by mail-pj1-x102d.google.com with SMTP id e15-20020a17090ac20f00b0023d1b009f52so31245751pjt.2 for ; Sun, 02 Apr 2023 21:51:58 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; t=1680497517; x=1683089517; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:mime-version:date:message-id:from:to:cc :subject:date:message-id:reply-to; bh=TY5tXXyUJ8tRS00GY7cMhszmg4Hhw15GoKMUWwSyyR4=; b=Zqm/85C3wW7NGJyl5gWd0kHDNmk6DAB0YRXpHf2nR3B/Na5rKbb/cuB+keYMYYoq1N feS+VoLhOk0A0bYgBMWkoUZIxk6ACmzH0vIR4mff/Zz85tKpyYW/tJhfNTuy/iMWCmac h1yYlXkEFQeIGttZ/drHRuGKexgV1wW8k48WezcM7FvxPIPxkoNcJxTnnd6LoUbp+GN0 IAmq/oV0yOHldm6eQfA6OW5k1bdhyegLu1xMrtopxcWXybLu10jsA4A2oKuflnMpKlyE YF7E7XNMmswb73o5Q338vYq4qWO1TyZntbUW/BhaMnNGyOBdI+XiVJ0SZOtChE4faIgw 9K3A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1680497517; x=1683089517; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=TY5tXXyUJ8tRS00GY7cMhszmg4Hhw15GoKMUWwSyyR4=; b=4Qukj9/4fV720f5DsyuFvrxq3E7GSOx4Kiq7lgs8IJZs0i86Xrq2ERiI9ze6xrsROk n2ceDzUIqQ+ii/BlAV8zfV7WdfACfwaLoT+cBQ0bkJVrzdIaWgzWRFLXmtHknxjmuwcu wl5TafTri+SMzIxLZ3vB8qEH6DIZbKtStPU6b2Lc98HYfXHEjD4PFLkkMAMG5raKF0+J j+TOt3r0+NVw6A7yKniHdXJXxwUgOLcPp/2I8WqRQ7m50YIc1X3NOUnFbQy5kYtZ47NZ Kolrt6celH0cglyT6BVUyBGfUiAst+8GQz+Z9tqgaHqb8V/TbkEF/oTXLZRzgsOtPqQD NoWw== X-Gm-Message-State: AO0yUKUDoz18s0ERrARPDIVsLYyDjT0Icoc1eUloPDHGcyGuHTW4ZPWU PnLVYM9TmWdwd4RApqc2tvs= X-Google-Smtp-Source: AK7set8KY9qUAe/YRjDOPM03BuifWCT0cpGQ2Ki//JDQXI/3R0Q1KgJ7SMUYU5wcjm98Z6e3NY+8Zw== X-Received: by 2002:a05:6a20:3a87:b0:da:dc14:33d with SMTP id d7-20020a056a203a8700b000dadc14033dmr27994264pzh.53.1680497517206; Sun, 02 Apr 2023 21:51:57 -0700 (PDT) Original-Received: from [192.168.1.2] (cpe-76-168-148-233.socal.res.rr.com. [76.168.148.233]) by smtp.googlemail.com with ESMTPSA id m3-20020aa79003000000b006260645f2a7sm6032375pfo.17.2023.04.02.21.51.56 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sun, 02 Apr 2023 21:51:56 -0700 (PDT) Content-Language: en-US In-Reply-To: <87mt3pr4sa.fsf@yahoo.com> Received-SPF: pass client-ip=2607:f8b0:4864:20::102d; envelope-from=jporterbugs@gmail.com; helo=mail-pj1-x102d.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, 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-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:305062 Archived-At: On 4/2/2023 9:03 PM, Po Lu wrote: > I have not looked carefully at this thread, but I would hope that if > people are discussing a way to add multiprocessing to Emacs, we settle > on separate threads of execution executing in parallel, with all the > interlocking necessary to make that happen, like in most Unix thread > implementations. Indeed, one of my hopes is to have a way to package some task so that (eventually) it can be run on another thread, and everything Just Works. From one of my previous messages on the subject[1]: On 3/11/2023 5:45 PM, Jim Porter wrote: > 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. > > (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.) [1] https://lists.gnu.org/archive/html/emacs-devel/2023-03/msg00472.html