From unknown Wed Jul 30 13:11:05 2025 X-Loop: help-debbugs@gnu.org Subject: bug#38807: [Feature request]: Support lisp workers like web workers. Resent-From: HaiJun Zhang Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 30 Dec 2019 05:29:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 38807 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: madcarrotmans, via, Bug, reports, for, GNU, Emacs, 38807@debbugs.gnu.org X-Debbugs-Original-To: madcarrotmans via Bug reports for GNU Emacs, the Swiss army knife of text editors Received: via spool by submit@debbugs.gnu.org id=B.15776836915020 (code B ref -1); Mon, 30 Dec 2019 05:29:02 +0000 Received: (at submit) by debbugs.gnu.org; 30 Dec 2019 05:28:11 +0000 Received: from localhost ([127.0.0.1]:60452 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ilnb9-0001It-EU for submit@debbugs.gnu.org; Mon, 30 Dec 2019 00:28:11 -0500 Received: from lists.gnu.org ([209.51.188.17]:37116) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ilnb6-0001Il-Mn for submit@debbugs.gnu.org; Mon, 30 Dec 2019 00:28:10 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:41738) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ilnb4-0002dN-QD for bug-gnu-emacs@gnu.org; Mon, 30 Dec 2019 00:28:08 -0500 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: *** X-Spam-Status: No, score=3.3 required=5.0 tests=BAYES_50,FREEMAIL_FROM, HTML_MESSAGE,MSGID_FROM_MTA_HEADER,RCVD_IN_DNSWL_NONE, RECEIVED_FROM_WINDOWS_HOST,URIBL_BLOCKED autolearn=disabled version=3.3.2 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ilnb2-0005Nd-Ja for bug-gnu-emacs@gnu.org; Mon, 30 Dec 2019 00:28:05 -0500 Received: from mail-oln040092254062.outbound.protection.outlook.com ([40.92.254.62]:6246 helo=APC01-PU1-obe.outbound.protection.outlook.com) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1ilnb1-0005HV-0M for bug-gnu-emacs@gnu.org; Mon, 30 Dec 2019 00:28:04 -0500 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=MKRHU/cfYA24TW2XbVS1iy/nxU73SrteVKnN6PC5e/b5RINRowzMefDpIGJEOyGuGzvMsp6pS2aTtcjXHTUNDihD5kuG6HlcwFPlmhPX8v1wWUqR7VwcAS8bdEoUks8TanTtNCTzymAK+Ro2lbY7Z7sQ424ttcnEpwrUhpful3IBEL3GgFJgeQvN+8UzyF+QC/9Arx0VBZJn14veZERI4HLWnG06UyifYUBgy/NO7m4fDgbVpMst88Pn5JPtoGJh6jRxBncVEvNFSXLWbZCtKwMOJE3C3PhOxQnK6iGWZCXl0fXQsRmpWS3hqrh1xk7iqVA2jMwIT0MqqJzmm1mRew== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=+N8AOvX4EiKfXKnSsMuWE01Box9vJWYQ03fPOgHD6jU=; b=lwVj85nnRekka7hsOV7drjoIIcgrZSOA1j5K+M5ncL/28pYaLOMna/hesm4s3hvkYU8NVf3/5kg6ULxo6ra75+r7o6DMvXF6xP6DklHAEQ8ioWklwMoJrbqO+U4TRQ6JuVLaeTu2UGTzufoOMs6G3qDPXPdt2e42BYEyoddnYxoRDcQjObvbS/bb3YzNWkZUo2S+IUpiOuSfcOy+XZP+VZd/gzqlXLNESLNaLDgCvmwf985CAJBzvv8vM3CKAgr77ITBM71IofPMLhHG6RJhVN+P5rJyK5ICK0gQL195/BFGwMs6qNwPRQCN6TxxtD0vv6kPa3YnJWzKakgKFV49LA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=outlook.com; dmarc=pass action=none header.from=outlook.com; dkim=pass header.d=outlook.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=outlook.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=+N8AOvX4EiKfXKnSsMuWE01Box9vJWYQ03fPOgHD6jU=; b=Qfqzs+CQm8Q++H9LrG9183hu+hoNoKNRFZym0mfs7pe6g+X1vGaWSIasLHXdydEJYR2fgcxpu4cjl2it1bC3QYhz7w7sali48hGvmiRsPKTARRpHfrRK0JIXHeW+eMiFZHlH7zRzLAXKO7fwgdnGy491uWbngQnC2Yo0mjoXfF7+APjLmyCB4DyH2fT8HESd0I62xJ/g2nV3o17FX+gtep+VY/DMZyaZb7arnXmbohXwPFxhUUc0iU0Fo65rlI5qyBg26rpX6DHPixKfZhbuKR0Xgb6QqP9oGrgpmf61ckffrMKrnQF6w4jmrxFADFHtyqHmXl7/ma49o200gL/QMg== Received: from SG2APC01FT013.eop-APC01.prod.protection.outlook.com (10.152.250.53) by SG2APC01HT179.eop-APC01.prod.protection.outlook.com (10.152.251.138) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2581.11; Mon, 30 Dec 2019 05:27:56 +0000 Received: from PS1PR03MB3606.apcprd03.prod.outlook.com (10.152.250.55) by SG2APC01FT013.mail.protection.outlook.com (10.152.250.186) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2581.11 via Frontend Transport; Mon, 30 Dec 2019 05:27:56 +0000 X-IncomingTopHeaderMarker: OriginalChecksum:03E9E7882D597F1E652689B4A1486B1BFC66B07CA62B6713A0B52A74AE6C7799; UpperCasedChecksum:6C6772CE4312D6C374C67FCFA8BD83931062E07E58A2A282A2DE6CD0F4948CD9; SizeAsReceived:8710; Count:46 Received: from PS1PR03MB3606.apcprd03.prod.outlook.com ([fe80::b05a:28e4:205a:d7d4]) by PS1PR03MB3606.apcprd03.prod.outlook.com ([fe80::b05a:28e4:205a:d7d4%5]) with mapi id 15.20.2602.009; Mon, 30 Dec 2019 05:27:55 +0000 Date: Mon, 30 Dec 2019 13:27:44 +0800 From: HaiJun Zhang Message-ID: References: X-Readdle-Message-ID: 9501a8fa-9ac4-48ee-8054-622e9d8b9d41@Spark Content-Type: multipart/alternative; boundary="5e098ad5_26f324ba_4379" X-ClientProxiedBy: HK2PR0401CA0004.apcprd04.prod.outlook.com (2603:1096:202:2::14) To PS1PR03MB3606.apcprd03.prod.outlook.com (2603:1096:803:4e::17) X-Microsoft-Original-Message-ID: <9501a8fa-9ac4-48ee-8054-622e9d8b9d41@Spark> MIME-Version: 1.0 Received: from [192.168.1.103] (1.196.187.170) by HK2PR0401CA0004.apcprd04.prod.outlook.com (2603:1096:202:2::14) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2581.11 via Frontend Transport; Mon, 30 Dec 2019 05:27:55 +0000 X-Readdle-Message-ID: 9501a8fa-9ac4-48ee-8054-622e9d8b9d41@Spark X-Microsoft-Original-Message-ID: <9501a8fa-9ac4-48ee-8054-622e9d8b9d41@Spark> X-TMN: [OsZAkqQcYnvVUySN8/jB8g7oP62oyYDc] X-MS-PublicTrafficType: Email X-IncomingHeaderCount: 46 X-EOPAttributedMessage: 0 X-MS-Office365-Filtering-Correlation-Id: b827796a-0775-4b92-fc0a-08d78ce9063f X-MS-TrafficTypeDiagnostic: SG2APC01HT179: X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: q1QexVLeUbhuwXHF3IDRpbWT5GBSUfprw6QzWI5RBQj4c5CQir5G+hB1w8mgd7ZVBAj5V+IbzHQhzpwM1nJu4V+YRKkuxqpMRNzyyf8wgqeC362xTVWiH5yOh1QwwqUOI28zIZU/zwnaCSW+4I3emw5BvEtYn2t6RtFr4oCrqCW7PF8xDdghTcqcf/WA/S2lWxL/Vwn8jPB03zLRBX6EUj05L8NHoEvNx68/sS9GZhk= X-OriginatorOrg: outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: b827796a-0775-4b92-fc0a-08d78ce9063f X-MS-Exchange-CrossTenant-OriginalArrivalTime: 30 Dec 2019 05:27:55.8568 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 84df9e7f-e9f6-40af-b435-aaaaaaaaaaaa X-MS-Exchange-CrossTenant-FromEntityHeader: Internet X-MS-Exchange-CrossTenant-RMS-PersistedConsumerOrg: 00000000-0000-0000-0000-000000000000 X-MS-Exchange-Transport-CrossTenantHeadersStamped: SG2APC01HT179 X-detected-operating-system: by eggs.gnu.org: Windows 7 or 8 [fuzzy] X-Received-From: 40.92.254.62 X-Spam-Score: -1.3 (-) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -2.3 (--) --5e098ad5_26f324ba_4379 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline I think the web worker is a good design for GUI applications such as web = browser. The workers do heavy work and provide the results to the UI thre= ad. The UI thread only displays the result and responds to user input eve= nts which makes good user responsiveness. The web workers run in other context. They=C2=A0can=E2=80=99t access data= in the UI thread. They can only communicate with the UI thread by callin= g some limited APIs. See:=C2=A0https://developer.mozilla.org/en-US/docs/Web/API/Web=5FWorkers=5F= API/Using=5Fweb=5Fworkers --5e098ad5_26f324ba_4379 Content-Type: text/html; charset="utf-8" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline
I think the web worker is a good design for GUI applicati= ons such as web browser. The workers do heavy work and provide the results = to the UI thread. The UI thread only displays the result and responds to us= er input events which makes good user responsiveness.

The web workers run in other context. They c= an=E2=80=99t access data in the UI thread. They can only communicate with t= he UI thread by calling some limited APIs.

--5e098ad5_26f324ba_4379-- From unknown Wed Jul 30 13:11:05 2025 X-Loop: help-debbugs@gnu.org Subject: bug#38807: [Feature request]: Support lisp workers like web workers. Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 30 Dec 2019 15:24:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 38807 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: HaiJun Zhang Cc: 38807@debbugs.gnu.org Received: via spool by 38807-submit@debbugs.gnu.org id=B38807.157771942211208 (code B ref 38807); Mon, 30 Dec 2019 15:24:01 +0000 Received: (at 38807) by debbugs.gnu.org; 30 Dec 2019 15:23:42 +0000 Received: from localhost ([127.0.0.1]:33209 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ilwtS-0002ui-Em for submit@debbugs.gnu.org; Mon, 30 Dec 2019 10:23:42 -0500 Received: from eggs.gnu.org ([209.51.188.92]:33143) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ilwtR-0002uV-6x for 38807@debbugs.gnu.org; Mon, 30 Dec 2019 10:23:41 -0500 Received: from fencepost.gnu.org ([2001:470:142:3::e]:35444) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ilwtL-0000zU-Pm; Mon, 30 Dec 2019 10:23:35 -0500 Received: from [176.228.60.248] (port=3848 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1ilwtL-0003Ht-7i; Mon, 30 Dec 2019 10:23:35 -0500 Date: Mon, 30 Dec 2019 17:23:42 +0200 Message-Id: <83o8vpn8g1.fsf@gnu.org> From: Eli Zaretskii In-reply-to: (message from HaiJun Zhang on Mon, 30 Dec 2019 13:27:44 +0800) References: MIME-version: 1.0 Content-type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Spam-Score: -2.3 (--) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) > Date: Mon, 30 Dec 2019 13:27:44 +0800 > From: HaiJun Zhang > > I think the web worker is a good design for GUI applications such as web browser. The workers do heavy > work and provide the results to the UI thread. The UI thread only displays the result and responds to user > input events which makes good user responsiveness. > > The web workers run in other context. They can’t access data in the UI thread. They can only communicate > with the UI thread by calling some limited APIs. We have threads in Emacs, so you could start by using them, no? From unknown Wed Jul 30 13:11:05 2025 X-Loop: help-debbugs@gnu.org Subject: bug#38807: [Feature request]: Support lisp workers like web workers. Resent-From: Dmitry Gutov Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 30 Dec 2019 15:41:03 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 38807 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Eli Zaretskii , HaiJun Zhang Cc: 38807@debbugs.gnu.org Received: via spool by 38807-submit@debbugs.gnu.org id=B38807.157772045812880 (code B ref 38807); Mon, 30 Dec 2019 15:41:03 +0000 Received: (at 38807) by debbugs.gnu.org; 30 Dec 2019 15:40:58 +0000 Received: from localhost ([127.0.0.1]:33242 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ilxA9-0003Lg-W0 for submit@debbugs.gnu.org; Mon, 30 Dec 2019 10:40:58 -0500 Received: from mail-lj1-f175.google.com ([209.85.208.175]:38051) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ilxA8-0003LU-TU for 38807@debbugs.gnu.org; Mon, 30 Dec 2019 10:40:57 -0500 Received: by mail-lj1-f175.google.com with SMTP id w1so11692299ljh.5 for <38807@debbugs.gnu.org>; Mon, 30 Dec 2019 07:40:56 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=6lermEihTt39gyI0/6Q9rkdxcnXdyMEEzXLCsRFzHw4=; b=VD10K4yhJB7+INQCrSbYOKcZqaMJP/klOOFP4KQkvBNF5bXVXq61+QiAE0UIsNr+Tb mJfkCSiR4OTQ8gTeUZzZiC8ai3x4fZl8q+IoHisD26XbPUQIa/rGM1k8SThe+z7r49+X QFbv0uW3phWuk3HFgrrlh+p9xaT3or6bTRbi3c01/rq2DUB6vnRAqDv2E313z3gF+FaB iYOKOOI4/8VGJHiNraktIxlznJEv79KuC7at6fCdk1ncjHPjpycC2R1I1BVPvGx+Q8Ir yCery8D93Mpvk1PrMaRFOlgSxL4h1lGJB8HyzqNqfT98T2HJO7+fqJCXR/aVf3xtlqbg xVVQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:subject:to:cc:references:from:message-id :date:user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=6lermEihTt39gyI0/6Q9rkdxcnXdyMEEzXLCsRFzHw4=; b=WHgV7L4xuGDqchVXa1hEfc78mfgado4omYV/mEEwwwix84duOsXK/AneiYZgm9NL7l Hk/Xxmw3K+b47iIGa9FLGTxcr/dYFq7zf8PknQQTme6SZKdWTVUic49YKUNvXELM4eIU 1IrHhn1mkmQc/rG46Wuoi7kl7/eJkwQAvrvq1VNB7eAEBHvJf5aoM44FsPTAXIgECB+q b3usRHDSOQoK+Po08I5MMp2uxnVRVV/1JhSmYtXUncfNkmoluZMrdxW/Phu7tpsu6t5f lmp9qB2DfXrgospHEQPlsXhtPJ6x281Ba1csNhtf917mRI9AiAGtBFGdR02qLQT2fl78 49ZA== X-Gm-Message-State: APjAAAVX13MyKLGlSYu05PkuAGLnD08phI4OljaBJKI7SYSoObx1L7TQ r/quy+ElrL8dEpIGLJxfa7F2DhgKq6Q= X-Google-Smtp-Source: APXvYqwuluhjU2p3K4kAR+SAmgNTOEH+sAtCxTzm31f7mxmOHkqPw3ELaxBXnj9WnnVEguvTu+aG5g== X-Received: by 2002:a2e:910b:: with SMTP id m11mr39175614ljg.213.1577720450605; Mon, 30 Dec 2019 07:40:50 -0800 (PST) Received: from [192.168.1.142] ([178.252.127.239]) by smtp.googlemail.com with ESMTPSA id r15sm5201227ljh.11.2019.12.30.07.40.49 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 30 Dec 2019 07:40:49 -0800 (PST) References: <83o8vpn8g1.fsf@gnu.org> From: Dmitry Gutov Message-ID: <48d683e5-e0ec-2cbf-c8db-ad41cfc553e1@yandex.ru> Date: Mon, 30 Dec 2019 18:40:49 +0300 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.9.0 MIME-Version: 1.0 In-Reply-To: <83o8vpn8g1.fsf@gnu.org> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-Spam-Score: 1.8 (+) X-Spam-Report: Spam detection software, running on the system "debbugs.gnu.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: On 30.12.2019 17:23, Eli Zaretskii wrote: > We have threads in Emacs, so you could start by using them, no? The main point of Web Workers is that they run in parallel to the main thread. So the bit about not being able to access "data in the UI thread" is about no need for synchronization, I suppose. Content analysis details: (1.8 points, 10.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- 1.5 RCVD_IN_SORBS_WEB RBL: SORBS: sender is an abusable web server [178.252.127.239 listed in dnsbl.sorbs.net] 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail provider (dgutov[at]yandex.ru) -0.0 SPF_PASS SPF: sender matches SPF record 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record 0.2 HEADER_FROM_DIFFERENT_DOMAINS From and EnvelopeFrom 2nd level mail domains are different -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at https://www.dnswl.org/, no trust [209.85.208.175 listed in list.dnswl.org] -0.0 RCVD_IN_MSPIKE_H2 RBL: Average reputation (+2) [209.85.208.175 listed in wl.mailspike.net] 0.0 FREEMAIL_FORGED_FROMDOMAIN 2nd level domains in From and EnvelopeFrom freemail headers are different X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 0.8 (/) On 30.12.2019 17:23, Eli Zaretskii wrote: > We have threads in Emacs, so you could start by using them, no? The main point of Web Workers is that they run in parallel to the main thread. So the bit about not being able to access "data in the UI thread" is about no need for synchronization, I suppose. From unknown Wed Jul 30 13:11:05 2025 X-Loop: help-debbugs@gnu.org Subject: bug#38807: [Feature request]: Support lisp workers like web workers. Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 30 Dec 2019 16:27:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 38807 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Dmitry Gutov Cc: netjune@outlook.com, 38807@debbugs.gnu.org Received: via spool by 38807-submit@debbugs.gnu.org id=B38807.157772318817507 (code B ref 38807); Mon, 30 Dec 2019 16:27:01 +0000 Received: (at 38807) by debbugs.gnu.org; 30 Dec 2019 16:26:28 +0000 Received: from localhost ([127.0.0.1]:33286 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ilxsB-0004YJ-La for submit@debbugs.gnu.org; Mon, 30 Dec 2019 11:26:27 -0500 Received: from eggs.gnu.org ([209.51.188.92]:40967) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ilxsA-0004Y8-I0 for 38807@debbugs.gnu.org; Mon, 30 Dec 2019 11:26:26 -0500 Received: from fencepost.gnu.org ([2001:470:142:3::e]:37114) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ilxs4-0006j4-JJ; Mon, 30 Dec 2019 11:26:20 -0500 Received: from [176.228.60.248] (port=3893 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1ilxs3-0004GR-NC; Mon, 30 Dec 2019 11:26:20 -0500 Date: Mon, 30 Dec 2019 18:26:27 +0200 Message-Id: <835zhxn5jg.fsf@gnu.org> From: Eli Zaretskii In-reply-to: <48d683e5-e0ec-2cbf-c8db-ad41cfc553e1@yandex.ru> (message from Dmitry Gutov on Mon, 30 Dec 2019 18:40:49 +0300) References: <83o8vpn8g1.fsf@gnu.org> <48d683e5-e0ec-2cbf-c8db-ad41cfc553e1@yandex.ru> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Spam-Score: -2.3 (--) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) > Cc: 38807@debbugs.gnu.org > From: Dmitry Gutov > Date: Mon, 30 Dec 2019 18:40:49 +0300 > > On 30.12.2019 17:23, Eli Zaretskii wrote: > > We have threads in Emacs, so you could start by using them, no? > > The main point of Web Workers is that they run in parallel to the main > thread. This reminds me of an old joke: when a shop owner was approached by an employee asking to work 5 days a week, the owner answered: let's start with one, and then gradually arrive at 5. More to the point, I did say "you could start", didn't I? From unknown Wed Jul 30 13:11:05 2025 X-Loop: help-debbugs@gnu.org Subject: bug#38807: [Feature request]: Support lisp workers like web workers. Resent-From: Michael Albinus Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 30 Dec 2019 18:32:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 38807 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Eli Zaretskii Cc: HaiJun Zhang , 38807@debbugs.gnu.org Received: via spool by 38807-submit@debbugs.gnu.org id=B38807.157773069629820 (code B ref 38807); Mon, 30 Dec 2019 18:32:02 +0000 Received: (at 38807) by debbugs.gnu.org; 30 Dec 2019 18:31:36 +0000 Received: from localhost ([127.0.0.1]:33378 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ilzpH-0007ku-UP for submit@debbugs.gnu.org; Mon, 30 Dec 2019 13:31:36 -0500 Received: from mout.gmx.net ([212.227.15.19]:57403) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ilzpG-0007kf-Nv for 38807@debbugs.gnu.org; Mon, 30 Dec 2019 13:31:35 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1577730687; bh=Qa7PD/Sot3tuB8oUmiDFk2Xlv8unzgFlbMUAyeM+XR4=; h=X-UI-Sender-Class:From:To:Cc:Subject:References:Date:In-Reply-To; b=NXi9XH9CGOYmiR8riGt6Qy5sWiV3yu5lE9zKdKAKYzev+poUmwgdFX62h/TVmkxcM AZno5T/3MZVKmiJOhFym5qGpZPn/vj3yXVoV+gFkTk7S5soLEfgzIv2Owzh8UuD3Us RwcLRvCrGzCIyybucxfH94qUMuNoMLEjZDNNzv6k= X-UI-Sender-Class: 01bb95c1-4bf8-414a-932a-4f6e2808ef9c Received: from detlef.gmx.de ([212.86.59.161]) by mail.gmx.com (mrgmx004 [212.227.17.190]) with ESMTPSA (Nemesis) id 1MrhQ6-1jZgdO3rfA-00niz8; Mon, 30 Dec 2019 19:31:27 +0100 From: Michael Albinus References: <83o8vpn8g1.fsf@gnu.org> Date: Mon, 30 Dec 2019 19:31:26 +0100 In-Reply-To: <83o8vpn8g1.fsf@gnu.org> (Eli Zaretskii's message of "Mon, 30 Dec 2019 17:23:42 +0200") Message-ID: <87mub9u0ld.fsf@gmx.de> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Provags-ID: V03:K1:jH+u7QkwjTWAGrBnfyN4XzC8uq6fK/P+tXw7M3P3DIbgTSt/Zmi v8qe0Lpf+JQ7gOIerGiwK6tBGW8nBS9QIkSZ6rb3+qZ10HYSYjweDHRoVmnT2B+rRmnobEH 7FrYrj+aGr2I+QpqQXAeODTtHQK+RTre8SKMJhGrvfhNo4CXmcAgF+NkCOSF+Wr+Iste7NO jB6iW9cbkcCJ+Dc+9D+Yw== X-Spam-Flag: NO X-UI-Out-Filterresults: notjunk:1;V03:K0:b2su1htjnuM=:5v4Q5uM5CbFabdNzMCxKWL EDiFous/keTBmpAhO1H1DVpUHgRWjUjzg0Hkk5aK8e2Xzic3/qJmwuNApzQxdrV1K+dGDT2TR gcRMNOWbJHVAUHKbo/nJwiMmCOsviMA4zwvomNKPiNrJSRvSej4mlFb8hZnHW1rAimng8J+/b 8eoEE6A4ROhgkFx8xcJQQOatEeGaKJX1zm20C99+bC916YgvMUoR63qaGBdi0n+1TgwcAdztZ um7+uagrVd4o5GSMnQo4oZ1zVjmZMQQocEuMFd5SG1bup4XmTLCZS8Pc+lv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it@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) Eli Zaretskii writes: >> Date: Mon, 30 Dec 2019 13:27:44 +0800 >> From: HaiJun Zhang >>=20 >> I think the web worker is a good design for GUI applications such as >> web browser. The workers do heavy >> work and provide the results to the UI thread. The UI thread only >> displays the result and responds to user >> input events which makes good user responsiveness.=20 >>=20 >> The web workers run in other context. They can=E2=80=99t access data in = the >> UI thread. They can only communicate >> with the UI thread by calling some limited APIs. > > We have threads in Emacs, so you could start by using them, no? The point seems to be that there is a dedicated UI thread. That we don't have (yet) in Emacs, and I like this idea. Best regards, Michael. From unknown Wed Jul 30 13:11:05 2025 X-Loop: help-debbugs@gnu.org Subject: bug#38807: [Feature request]: Support lisp workers like web workers. Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 30 Dec 2019 19:20:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 38807 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Michael Albinus Cc: netjune@outlook.com, 38807@debbugs.gnu.org Received: via spool by 38807-submit@debbugs.gnu.org id=B38807.15777335922099 (code B ref 38807); Mon, 30 Dec 2019 19:20:02 +0000 Received: (at 38807) by debbugs.gnu.org; 30 Dec 2019 19:19:52 +0000 Received: from localhost ([127.0.0.1]:33416 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1im0a0-0000Xn-CA for submit@debbugs.gnu.org; Mon, 30 Dec 2019 14:19:52 -0500 Received: from eggs.gnu.org ([209.51.188.92]:35804) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1im0Zx-0000XX-MW for 38807@debbugs.gnu.org; Mon, 30 Dec 2019 14:19:51 -0500 Received: from fencepost.gnu.org ([2001:470:142:3::e]:39800) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1im0Zs-00027V-7e; Mon, 30 Dec 2019 14:19:44 -0500 Received: from [176.228.60.248] (port=2968 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1im0Zr-0006x5-N6; Mon, 30 Dec 2019 14:19:44 -0500 Date: Mon, 30 Dec 2019 21:19:50 +0200 Message-Id: <831rslmxih.fsf@gnu.org> From: Eli Zaretskii In-reply-to: <87mub9u0ld.fsf@gmx.de> (message from Michael Albinus on Mon, 30 Dec 2019 19:31:26 +0100) References: <83o8vpn8g1.fsf@gnu.org> <87mub9u0ld.fsf@gmx.de> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Spam-Score: -2.3 (--) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) > From: Michael Albinus > Cc: HaiJun Zhang , 38807@debbugs.gnu.org > Date: Mon, 30 Dec 2019 19:31:26 +0100 > > The point seems to be that there is a dedicated UI thread. That we don't > have (yet) in Emacs, and I like this idea. We do have that on MS-Windows. Except that you'll be surprised how much of "UI" in Emacs cannot be done in a separate thread, mainly because the Lisp machine is under such complete control of what the UI does, and you cannot run several instances of the Lisp machine simultaneously and asynchronously. From unknown Wed Jul 30 13:11:05 2025 X-Loop: help-debbugs@gnu.org Subject: bug#38807: [Feature request]: Support lisp workers like web workers. Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 30 Dec 2019 19:23:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 38807 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: michael.albinus@gmx.de Cc: netjune@outlook.com, 38807@debbugs.gnu.org Received: via spool by 38807-submit@debbugs.gnu.org id=B38807.15777337752481 (code B ref 38807); Mon, 30 Dec 2019 19:23:01 +0000 Received: (at 38807) by debbugs.gnu.org; 30 Dec 2019 19:22:55 +0000 Received: from localhost ([127.0.0.1]:33420 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1im0cw-0000dx-Qt for submit@debbugs.gnu.org; Mon, 30 Dec 2019 14:22:55 -0500 Received: from eggs.gnu.org ([209.51.188.92]:41601) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1im0cu-0000de-U7 for 38807@debbugs.gnu.org; Mon, 30 Dec 2019 14:22:53 -0500 Received: from fencepost.gnu.org ([2001:470:142:3::e]:39843) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1im0cp-00053M-E9; Mon, 30 Dec 2019 14:22:47 -0500 Received: from [176.228.60.248] (port=3157 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1im0co-0007DI-K3; Mon, 30 Dec 2019 14:22:47 -0500 Date: Mon, 30 Dec 2019 21:22:54 +0200 Message-Id: <83zhf9lisx.fsf@gnu.org> From: Eli Zaretskii In-reply-to: <831rslmxih.fsf@gnu.org> (message from Eli Zaretskii on Mon, 30 Dec 2019 21:19:50 +0200) References: <83o8vpn8g1.fsf@gnu.org> <87mub9u0ld.fsf@gmx.de> <831rslmxih.fsf@gnu.org> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Spam-Score: -2.3 (--) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) > Date: Mon, 30 Dec 2019 21:19:50 +0200 > From: Eli Zaretskii > Cc: netjune@outlook.com, 38807@debbugs.gnu.org > > because the Lisp machine is under such complete control of what the UI > does This might confuse. What I meant is that the Lisp machine controls a lot of what the UI does, not the other way around (of course). From unknown Wed Jul 30 13:11:05 2025 X-Loop: help-debbugs@gnu.org Subject: bug#38807: [Feature request]: Support lisp workers like web workers. Resent-From: HaiJun Zhang Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 31 Dec 2019 00:41:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 38807 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Michael Albinus , Eli Zaretskii Cc: 38807@debbugs.gnu.org Received: via spool by 38807-submit@debbugs.gnu.org id=B38807.157775283029727 (code B ref 38807); Tue, 31 Dec 2019 00:41:02 +0000 Received: (at 38807) by debbugs.gnu.org; 31 Dec 2019 00:40:30 +0000 Received: from localhost ([127.0.0.1]:33629 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1im5aI-0007jP-5G for submit@debbugs.gnu.org; Mon, 30 Dec 2019 19:40:30 -0500 Received: from mail-oln040092253059.outbound.protection.outlook.com ([40.92.253.59]:6103 helo=APC01-SG2-obe.outbound.protection.outlook.com) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1im5aF-0007j9-6B for 38807@debbugs.gnu.org; Mon, 30 Dec 2019 19:40:29 -0500 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=MRnOgrgP7UitziFAXZk3UcyIcbu+RkF1mjpBhM2yB4PkYUx1sQt4LB8YhF/AOxfv61Idt+XVCfgc8CZw13CU1waTz68e7+mxdHbOxehzjpmXpda9R+uL5/4Eks1mJ4/iZhlIqpnW5hdfzn7UpHBgtB7fQ7vbwErAn0uxf8NGvsBhtzzuNv+JE2wjcfy2biroEfetoMpL2qTOAbGWP3HJytuhH3v+rlG1ju00gTak3UDLUnFVX5RPhhyrVE7Kn+CXErkxZ6jRzXTq5d0+Flkvykviw6WvXjtMccUnzxcLd3KAjIkimHM4szV+XCOPodlUGo2LJInGrkByQkix0lsGug== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=LY25MFrgLRZTE6jszCSlTG+88DQzb/lwQK4Zfw+BeQg=; b=JAu6/whbKh3rsQqV5I6u5IIzzdDlkSx4FsPSN7kUVXMj3QAytlOGg8zGNoft2S2mCli1uiVrkmVtdGaJ76fGmxRPxHZRaLkKgEhmm5U5wsYCR1YPOVw/ViND66mbuXNaULhRlzislF3G1EEFB9MzY2yele74fWFn7PyxT9VffH/EA62zJFYFIjYl981cCBdM1fQtdFK0ULDIiVeaUscjv3iKfRPnC2VfHRzlRcpObvrl/iGckPJrEf0sz6CWiBktV19uRaEiVgoCH/XCM/PV07RKJmi6beWw9y/NZ6nbQRjmkfjY44l+8lg8VjLjp+NCy95EsnPGz18Sa4FmdRJsrw== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=outlook.com; dmarc=pass action=none header.from=outlook.com; dkim=pass header.d=outlook.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=outlook.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=LY25MFrgLRZTE6jszCSlTG+88DQzb/lwQK4Zfw+BeQg=; b=ZANZ1SMZ6jxPutmHrteLEDNPi+rhkw1VAe6WTPq+XQSDV51+LIulQ4Fn6oh2y29TtlzxUaUEkPgc+N/uUTXa1fmxm3wLEX0jJbzjlkWnQmv8ZTBRCmlCYvwjN6oaygnrTGDiIV4yZF1XXOSo7HP8Gbm0M55TqaalQW6rsAlPlcqNLTyB7ZxYAJlZ6ruX31eRfWWh5q0zaBWUWdgMnQ0U5SShLO+soHpEXE+MHSxtwA4qE5J6AOlaj2ZaX3bdgAyZfPAZCnndHSIIVjofbgoiWtjhwuxjeV142xAcQUgslj+qSZ54rpd+dr8FrgjzlPbqmK9fUN990AZM9habjFJECg== Received: from SG2APC01FT042.eop-APC01.prod.protection.outlook.com (10.152.250.53) by SG2APC01HT023.eop-APC01.prod.protection.outlook.com (10.152.251.193) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2581.11; Tue, 31 Dec 2019 00:40:17 +0000 Received: from PS1PR03MB3606.apcprd03.prod.outlook.com (10.152.250.51) by SG2APC01FT042.mail.protection.outlook.com (10.152.251.18) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2581.11 via Frontend Transport; Tue, 31 Dec 2019 00:40:17 +0000 X-IncomingTopHeaderMarker: OriginalChecksum:8DD8E3940618507BBD7A1CEEC6CB04BB48EE6786B498165118D08BDF46494D19; UpperCasedChecksum:93912C8E4A491E12EDF0B9F1319FE84A24D8C67488CA32581489E475928719E7; SizeAsReceived:8920; Count:48 Received: from PS1PR03MB3606.apcprd03.prod.outlook.com ([fe80::b05a:28e4:205a:d7d4]) by PS1PR03MB3606.apcprd03.prod.outlook.com ([fe80::b05a:28e4:205a:d7d4%5]) with mapi id 15.20.2602.010; Tue, 31 Dec 2019 00:40:17 +0000 Date: Tue, 31 Dec 2019 08:40:06 +0800 From: HaiJun Zhang Message-ID: In-Reply-To: <831rslmxih.fsf@gnu.org> References: <83o8vpn8g1.fsf@gnu.org> <87mub9u0ld.fsf@gmx.de> <831rslmxih.fsf@gnu.org> X-Readdle-Message-ID: d9669c10-6f74-4563-a8ba-4351d017002f@Spark Content-Type: multipart/alternative; boundary="5e0a98ec_2e48f044_4379" X-ClientProxiedBy: HK2PR02CA0207.apcprd02.prod.outlook.com (2603:1096:201:20::19) To PS1PR03MB3606.apcprd03.prod.outlook.com (2603:1096:803:4e::17) X-Microsoft-Original-Message-ID: MIME-Version: 1.0 Received: from [192.168.1.103] (1.196.187.170) by HK2PR02CA0207.apcprd02.prod.outlook.com (2603:1096:201:20::19) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2581.11 via Frontend Transport; Tue, 31 Dec 2019 00:40:15 +0000 X-Readdle-Message-ID: d9669c10-6f74-4563-a8ba-4351d017002f@Spark X-Microsoft-Original-Message-ID: X-TMN: [Yfvajj0nHKtUKvqE3FtbW4bKI7Ker22W] X-MS-PublicTrafficType: Email X-IncomingHeaderCount: 48 X-EOPAttributedMessage: 0 X-MS-Office365-Filtering-Correlation-Id: 93f90294-11da-4ea3-864b-08d78d8a0180 X-MS-TrafficTypeDiagnostic: SG2APC01HT023: X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: HUeo4hhuqWjeHffrvguE18yYKhu20oVHICqXcQWBQqfpFbPSEdyH5hsBfdveX0CiO4tTHQ8H6jMXE4ihmOUMAISVtESj/7GfRYctcT+4PU8rfZMRKvrpnLlVBEoFPLNCK7oG3Bf+xOEVC7ZSR0du9+X7EknA5CYXs4Gy5Ph0PYc9pcnBetJCk1TSCwGdgaPV X-OriginatorOrg: outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 93f90294-11da-4ea3-864b-08d78d8a0180 X-MS-Exchange-CrossTenant-OriginalArrivalTime: 31 Dec 2019 00:40:17.0485 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 84df9e7f-e9f6-40af-b435-aaaaaaaaaaaa X-MS-Exchange-CrossTenant-FromEntityHeader: Internet X-MS-Exchange-CrossTenant-RMS-PersistedConsumerOrg: 00000000-0000-0000-0000-000000000000 X-MS-Exchange-Transport-CrossTenantHeadersStamped: SG2APC01HT023 X-Spam-Score: 0.0 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) --5e0a98ec_2e48f044_4379 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline =E5=9C=A8 2019=E5=B9=B412=E6=9C=8831=E6=97=A5 +0800 AM3:19=EF=BC=8CEli Za= retskii =EF=BC=8C=E5=86=99=E9=81=93=EF=BC=9A > > =46rom: Michael Albinus > > Cc: HaiJun Zhang , 38807=40debbugs.gnu.org > > Date: Mon, 30 Dec 2019 19:31:26 +0100 > > > > The point seems to be that there is a dedicated UI thread. That we do= n't > > have (yet) in Emacs, and I like this idea. > > We do have that on MS-Windows. Except that you'll be surprised how > much of =22UI=22 in Emacs cannot be done in a separate thread, mainly > because the Lisp machine is under such complete control of what the UI > does, and you cannot run several instances of the Lisp machine > simultaneously and asynchronously. What about the following idea: 1. Make the current lisp machine be customized which has two profiles: =C2=A0 =C2=A0 + full featured: as the current running lisp machine in ema= cs =C2=A0 =C2=A0 + subset one: without all UI functions 2. Run the full featured one as emacs does now. It acts as the master lis= p machine(for UI only), which behave like the UI thread(process) in the w= eb browser. 3. Run some subset ones for workers. Workers are started by the master li= sp machine. Workers can send messages to the master machine by calling so= me APIs. The messages are copied to the master lisp machine, so GCs don=E2= =80=99t need to work across machines. 4. Provide some APIs for them to communicate with each other. --5e0a98ec_2e48f044_4379 Content-Type: text/html; charset="utf-8" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline
=E5=9C=A8 2019=E5=B9=B412=E6=9C=8831=E6= =97=A5 +0800 AM3:19=EF=BC=8CEli Zaretskii <eliz@gnu.org>=EF=BC=8C= =E5=86=99=E9=81=93=EF=BC=9A
From: Michael Albinus = <michael.albinus@gmx.de>
Cc: HaiJun Zhang <netjune@outlook.com>, 38807@debbugs.gnu.org
Date: Mon, 30 Dec 2019 19:31:26 +0100

The point seems to be that there is a dedicated UI thread. That we don't have (yet) in Emacs, and I like this idea.

We do have that on MS-Windows. Except that you'll be surprised how
much of "UI" in Emacs cannot be done in a separate thread, mainly=
because the Lisp machine is under such complete control of what the UI
does, and you cannot run several instances of the Lisp machine
simultaneously and asynchronously. 

What about the following idea:
1. Make the current lisp machine be customized which has two profiles:=
    + full featured: as the current running lisp machine= in emacs
    + subset one: without all UI functions
2. Run the full featured one as emacs does now. It acts as the master = lisp machine(for UI only), which behave like the UI thread(process) in the = web browser.
3. Run some subset ones for workers. Workers are started by the master= lisp machine. Workers can send messages to the master machine by calling s= ome APIs. The messages are copied to the master lisp machine, so GCs don=E2= =80=99t need to work across machines.
4. Provide some APIs for them to communicate with each other.

--5e0a98ec_2e48f044_4379-- From unknown Wed Jul 30 13:11:05 2025 X-Loop: help-debbugs@gnu.org Subject: bug#38807: [Feature request]: Support lisp workers like web workers. Resent-From: arthur miller Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 31 Dec 2019 01:40:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 38807 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: HaiJun Zhang , Michael Albinus , Eli Zaretskii Cc: "38807@debbugs.gnu.org" <38807@debbugs.gnu.org> Received: via spool by 38807-submit@debbugs.gnu.org id=B38807.15777563852589 (code B ref 38807); Tue, 31 Dec 2019 01:40:01 +0000 Received: (at 38807) by debbugs.gnu.org; 31 Dec 2019 01:39:45 +0000 Received: from localhost ([127.0.0.1]:33647 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1im6VZ-0000fd-K9 for submit@debbugs.gnu.org; Mon, 30 Dec 2019 20:39:45 -0500 Received: from mail-oln040092066102.outbound.protection.outlook.com ([40.92.66.102]:8054 helo=EUR01-VE1-obe.outbound.protection.outlook.com) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1im6VW-0000fO-9z for 38807@debbugs.gnu.org; Mon, 30 Dec 2019 20:39:40 -0500 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=HAQfxjM9FVUkEHqSIBgn9n5amOZlChRZhvO5cRmS5wyjANQuIxeSqoOMa7phkHBUDH4hepUVd+gpzaEkUW3RsDTUqSkG7Vt7XvAGBr6N0rBfVQ2Ci779JnmkwIMSYlA8YhPjBXznI+IlqahHL8hK0q5ypkXxtXwnJnZZtU41nqgU/mXFe2UJS2WaHis8uiK/ciDrYjlJj/cuski2GhKKVEiHeCansEU7wGYA/O2m4E5cqvqzobU01tG3ju5nOSZaEaG+0nlrcLsY7pI+hrlIw4Vxf+BNknE/nn8oEo/MxO5UXNz7n1cM+oGp+Z256FL05a+CKelhUpbA21KX8+tpdg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=Ap7Dx+HktzicxLtQRj6lER6Wup8d9oYG71q9tSSp8j8=; b=VaHaXGKy4tS7MIB13jdTwzukJSE8aAx7mI9U+vAtjsxzONszGbg95kaIasdSRb9ck24vNCS8lM6aWrBIcen0DBUN81jreISqc7xuCwpaZ8t11kY4oCICiCdBn982Jh6uyN9ARH/9EI2sMcSPOajPf/kS8MM6YV2wBFKnkB3vvaszHvw89T93DwKr/KJ22Z0Y2kBCvCd1nzNGIBbJWA9liWPRpHxtum6Jvqx/4ljylQp0KC7O2HrmrGOEXt3w/66Q/loDeT9GsXD7BbIH40Md0sP00/2V9c4FmpJP+xFbB0jJz+t59PdIcG3vPliL4T42qLgOX85w0IL3z10hgtkYCA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=none; dmarc=none; dkim=none; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=live.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=Ap7Dx+HktzicxLtQRj6lER6Wup8d9oYG71q9tSSp8j8=; b=mbi0TCx08XlHJpaNsXQrvIcRJuT1tK9SqmevSqWk54OkCbK6VZWr/PzZ2POxeLs07EZqychtcVuBRcfLEZ9ZSqcODQWhRddadyeB8lgmdUsl50n6j2Ycx5wLFUSRxDW1L2QgGz/yfoGXDMDVov7ouB3LbHyY1EzFJrviQuwqyZYtDqTTf7f2rhe/7HOR/7OyQabiahgZTgzjEo6jtn5TMjGb/lIwPah/AmEdi1XC/8mwFTPxLa/Kid8Q6qnd3FojrB2am/ItUHQf/jGfTYDrlTsYyeDFmRXTOgTjto9G0WITGhKlo3sD6WGfXIn6HGItcZE4DQPI3fXk0C0bGpC1IQ== Received: from HE1EUR01FT044.eop-EUR01.prod.protection.outlook.com (10.152.0.56) by HE1EUR01HT019.eop-EUR01.prod.protection.outlook.com (10.152.1.34) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2581.11; Tue, 31 Dec 2019 01:39:31 +0000 Received: from VI1P194MB0429.EURP194.PROD.OUTLOOK.COM (10.152.0.60) by HE1EUR01FT044.mail.protection.outlook.com (10.152.0.107) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2581.11 via Frontend Transport; Tue, 31 Dec 2019 01:39:31 +0000 Received: from VI1P194MB0429.EURP194.PROD.OUTLOOK.COM ([fe80::35f2:9ea2:efd6:1d46]) by VI1P194MB0429.EURP194.PROD.OUTLOOK.COM ([fe80::35f2:9ea2:efd6:1d46%5]) with mapi id 15.20.2581.007; Tue, 31 Dec 2019 01:39:30 +0000 From: arthur miller Thread-Topic: bug#38807: [Feature request]: Support lisp workers like web workers. Thread-Index: AQHVvtIUlRPP0+Xs2kGZfAus7e+JfqfSzL+SgAA0zviAAA0p34AAWVcAgAAQmPI= Date: Tue, 31 Dec 2019 01:39:29 +0000 Message-ID: References: <83o8vpn8g1.fsf@gnu.org> <87mub9u0ld.fsf@gmx.de> <831rslmxih.fsf@gnu.org>, In-Reply-To: Accept-Language: sv-SE, en-US Content-Language: sv-SE X-MS-Has-Attach: X-MS-TNEF-Correlator: x-incomingtopheadermarker: OriginalChecksum:A1F7E5B76DEA5CEE633BAA714F17043104BE140C2912B4822F18F6E9A8619E9B; UpperCasedChecksum:02EA718F82897B632BC7644D2DE4BA6DEF3FCF866F470CBC0E877C494B54B667; SizeAsReceived:7355; Count:46 x-ms-exchange-messagesentrepresentingtype: 1 x-tmn: [9BKPfrAk2nEQTLs/wEMImzXPdmRQ9KLd] x-ms-publictraffictype: Email x-incomingheadercount: 46 x-eopattributedmessage: 0 x-ms-office365-filtering-correlation-id: a50c1431-5bfd-4a9d-7dd9-08d78d924787 x-ms-exchange-slblob-mailprops: mBRmoEB1kyKUhVpXaHBUPvTJsLHNc4A+rKWp/gbwMm1fmI2kVFlZKVHZqj8zyvt74gOs2lJ3SzxsPvkZ5+AzZ5+/lmjER/M1YNy8kkrgTNBP3pxfQiitqocp+8n0OWXEcvBNwLk+6XIU5Dz21JBNSvIjkF65MkzlBBK7PzQpQY6cjU8ErMop4bjmd/1mAW6Y04WgPHQ2SQ0wKtvGf8o3p3XvcmjiGc0cS7JpQBLiYdNdVh3WCDH9dG5YSBaEMSZ82ymvNS48giZiVVEkj8M7hMA5YkulWX3pTxf+sY6evleXesVTKu2amjXsNwdpghgkzi4bVrdL3P1b7hcbY8WutorcTpxbRZ24wLHR1ZoUEcsw85nX4hFaX+D8gndZHGOFgHXN88DamcWfmC/XUgmWj/zKNXzXtZ0eelYq//bVUe7n5h8qwQ+McLi+qPXQPlqYcDKslVgh4QiKoFAxMZFmlNNGv02kxg6L+B+31h4ZfUPVccMszWMwBfG6pAQKA9YHi7Pg1hrdMQilYx9fj3jLF5c+qJntb/44bU4bUVEd0KjN5j7hGH8Q/mOg/EpbL1cZCGIiyZFYttXMBE3nAz6F8vEnUafsb9AO37DYTXKDYU9IbYIo8/CEjqigTEhyFDTHkH1i1FUYzXujkGQIU6ZxaJ7i4xDP1y6c1FSMVi9qrdBORUkj2UIoC64/rINFL296Ztf5X8JRjgTpcF8p5baoUq0NtcqQYjJLEg4aYqi5MCvVLRg9csLkQe9rDPy+FAuA4YQN3dZxCS8= x-ms-traffictypediagnostic: HE1EUR01HT019: x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: 6+zcg3MWv65ohrYEBz62t5PHbsEAuIFjetgE2LnKRGuVQ/z7wByZCHGU/MZT/Au17l/6A3bdPohYeD2PGXL4XhnqewCcd/QkU5WwyAgjGtjvsrUyStsy/ftDH6F+vQYwHB7EovmhWgHvSoVlbb/Jb8s//W5mUPXq6XxgZlrnDEU3KgEX098MsVABe+iYdsML x-ms-exchange-transport-forked: True Content-Type: multipart/alternative; boundary="_000_VI1P194MB042988D3D831EADE88E6D1FC96260VI1P194MB0429EURP_" MIME-Version: 1.0 X-OriginatorOrg: live.com X-MS-Exchange-CrossTenant-RMS-PersistedConsumerOrg: 00000000-0000-0000-0000-000000000000 X-MS-Exchange-CrossTenant-Network-Message-Id: a50c1431-5bfd-4a9d-7dd9-08d78d924787 X-MS-Exchange-CrossTenant-rms-persistedconsumerorg: 00000000-0000-0000-0000-000000000000 X-MS-Exchange-CrossTenant-originalarrivaltime: 31 Dec 2019 01:39:29.9938 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Internet X-MS-Exchange-CrossTenant-id: 84df9e7f-e9f6-40af-b435-aaaaaaaaaaaa X-MS-Exchange-Transport-CrossTenantHeadersStamped: HE1EUR01HT019 X-Spam-Score: 0.0 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) --_000_VI1P194MB042988D3D831EADE88E6D1FC96260VI1P194MB0429EURP_ Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: base64 Q29vbCBpZGVhLg0KDQpJIGhhdmUgYSBxdWVzdGlvbi4gIElzIGl0IGV2ZW4gbmVjZXNzYXJ5IGZv ciBsaXNwIG1hY2hpbmUgdG8gY29udHJvbCBVST8NCg0KQ291bGRuJ3QgbGlzcCBtYWNoaW5lIHBv c3QgaXRzICJ1aSBldmVudHMiIHRvIGEgc29tZSBraW5kIG9mIHJlbmRlciBxdWV1ZSBhbmQgbWF5 YmUgaW5wdXQgcXVldWUsIGluc3RlYWQgb2YgZHJhd2luZyBhbmQgaGFuZGxpbmcgc3R1ZmYgaW1t ZWRpYXRlbHkgaW4gYW4gT1Mgd2luZG93PyBUaGF0IGNvdWxkIGRlY291cGxlIGRyYXdpbmcgZnJv bSB0aGUgcmVzdCBhbmQgY291bGQgb3BlbiBmb3Igc29tZSBvdGhlciBpbnRlcmVzdGluZyBzdHVm ZiB3aGVuIGl0IGNvbWVzIGZvciByZW5kZXJpbmcuDQoNCkkgZG9uJ3Qga25vdyBtYXliZSBhbm90 aGVyIHRocmVhZCBmb3IgaW5wdXQgcXVldWUuIFByb2JhYmx5IHRvbyBtdWNoIHdvcmsgYW5kIEkg cmVhbGx5IGRvbid0IGtub3cgaWYgdGhhdCB3b3VsZCBiZSBwb3NzaWJsZSB3aXRoIEVtYWNzIGFy Y2hpdGVjdHVyZSwgYXQgbGVhc3QgYXMgb2YgY3VycmVudC4NCg0KSSBtZWFuIGRvZXMgbGlzcCBt YWNoaW5lIHJlYWxseSBuZWVkIHRvIGtub3cgd2hlcmUgaXQgZHJhd3M/IEl0IGNvdWxkIGFzIHdl bGwganVzdCAiZHJhdyIgc29tZSBldmVudHMgdG8gYSBxdWV1ZSB3aGljaCBjb3VsZCBiZSByZW5k ZXJlZCB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aCBvdGhlci48L2Rpdj4NCjxkaXY+PGJyPg0KPC9kaXY+DQo8 L2Rpdj4NCjwvZGl2Pg0KPC9ib2R5Pg0KPC9odG1sPg0K --_000_VI1P194MB042988D3D831EADE88E6D1FC96260VI1P194MB0429EURP_-- From unknown Wed Jul 30 13:11:05 2025 X-Loop: help-debbugs@gnu.org Subject: bug#38807: [Feature request]: Support lisp workers like web workers. Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 31 Dec 2019 16:37:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 38807 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: HaiJun Zhang Cc: 38807@debbugs.gnu.org, michael.albinus@gmx.de Received: via spool by 38807-submit@debbugs.gnu.org id=B38807.157781016714080 (code B ref 38807); Tue, 31 Dec 2019 16:37:02 +0000 Received: (at 38807) by debbugs.gnu.org; 31 Dec 2019 16:36:07 +0000 Received: from localhost ([127.0.0.1]:35040 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1imKV4-0003f1-KL for submit@debbugs.gnu.org; Tue, 31 Dec 2019 11:36:06 -0500 Received: from eggs.gnu.org ([209.51.188.92]:48190) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1imKV3-0003eZ-9K for 38807@debbugs.gnu.org; Tue, 31 Dec 2019 11:36:05 -0500 Received: from fencepost.gnu.org ([2001:470:142:3::e]:51699) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1imKUx-00014J-Kz; Tue, 31 Dec 2019 11:35:59 -0500 Received: from [176.228.60.248] (port=1304 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1imKUl-0007fq-Dg; Tue, 31 Dec 2019 11:35:57 -0500 Date: Tue, 31 Dec 2019 18:35:57 +0200 Message-Id: <83lfqslafm.fsf@gnu.org> From: Eli Zaretskii In-reply-to: (message from HaiJun Zhang on Tue, 31 Dec 2019 08:40:06 +0800) References: <83o8vpn8g1.fsf@gnu.org> <87mub9u0ld.fsf@gmx.de> <831rslmxih.fsf@gnu.org> MIME-version: 1.0 Content-type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Spam-Score: -2.3 (--) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) > Date: Tue, 31 Dec 2019 08:40:06 +0800 > From: HaiJun Zhang > Cc: 38807@debbugs.gnu.org > > We do have that on MS-Windows. Except that you'll be surprised how > much of "UI" in Emacs cannot be done in a separate thread, mainly > because the Lisp machine is under such complete control of what the UI > does, and you cannot run several instances of the Lisp machine > simultaneously and asynchronously. > > What about the following idea: > 1. Make the current lisp machine be customized which has two profiles: > + full featured: as the current running lisp machine in emacs > + subset one: without all UI functions > 2. Run the full featured one as emacs does now. It acts as the master lisp machine(for UI only), which behave > like the UI thread(process) in the web browser. > 3. Run some subset ones for workers. Workers are started by the master lisp machine. Workers can send > messages to the master machine by calling some APIs. The messages are copied to the master lisp > machine, so GCs don’t need to work across machines. > 4. Provide some APIs for them to communicate with each other. The Lisp interpreter already sort-of "queues" display changes, because it only changes Lisp data structures, and then the display engine references those data structures at display time. So those data structures serve as a kind-of "queue", since redisplay runs when Emacs is idle (i.e., the last Lisp command completed its job). But the problem is in the other direction: it's not that Lisp somehow "drives" the UI, it's that the UI frequently calls into Lisp as part of its job. The simplest example is mode-line format: it includes references to variables, and can also include :eval forms that call the interpreter. Your idea in fact means to have several isolated Lisp machines in the same process. But how can we do something like that without a very radical redesign of Emacs, when so many things in Emacs are implicitly part of the global state? Buffers, global variables, windows, frames--all those are global resources, and every thread will want to access them. Emacs was not designed to allow that. Your idea can be implemented with two processes, though. And there is already a package called emacs-async which does that: https://github.com/jwiegley/emacs-async The disadvantage is that it is cumbersome to share data between the two instances of Emacs, and large amounts of data will make that inefficient. From unknown Wed Jul 30 13:11:05 2025 X-Loop: help-debbugs@gnu.org Subject: bug#38807: [Feature request]: Support lisp workers like web workers. Resent-From: HaiJun Zhang Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 01 Jan 2020 03:00:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 38807 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Eli Zaretskii Cc: 38807@debbugs.gnu.org, michael.albinus@gmx.de Received: via spool by 38807-submit@debbugs.gnu.org id=B38807.157784759220054 (code B ref 38807); Wed, 01 Jan 2020 03:00:02 +0000 Received: (at 38807) by debbugs.gnu.org; 1 Jan 2020 02:59:52 +0000 Received: from localhost ([127.0.0.1]:35373 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1imUEh-0005DO-SA for submit@debbugs.gnu.org; Tue, 31 Dec 2019 21:59:52 -0500 Received: from mail-oln040092255103.outbound.protection.outlook.com ([40.92.255.103]:63228 helo=APC01-HK2-obe.outbound.protection.outlook.com) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1imUEf-0005D9-3n for 38807@debbugs.gnu.org; Tue, 31 Dec 2019 21:59:51 -0500 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=H+Sud/cROJF7JrQAz8bskZ6y2Pe29yuGIotQR6+MGlpxeP3mWaQxSeEXIWiNVP/FqqoFYwz4BlSvq8jao7lwr8agq6oNmw69ALs2nT6AfVNTvFMA06Slr9OSGOd4WIGuxxbb4e4vRybVR97+6egiB21Jt4kb2aG1GfaVJWu548QQdvQ0UyIldWCfxoHYOStXhwHGlO4dneYL/e8LBlO/ZYd8cscdQrdOCW+A9Kz7tb0irrqHkZRIzK4U9pdGiOmbmSVv9NQatSQVV9k/817OpxOT2Rtofz3J++Q2PYTdWLMqSwLpWBNR63/coGEjwVvABeNG7A4L37kkWDNTyMsidg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=F0faxDl4LjYCHBppZS1a12DzVftmLe4lVgo5650XrTs=; b=YV04KTvehHmnCVpI0n//3PhNQdLuXgxUd0xVWC9kh1RyJJ/yzVTKo0r1kh80+jnwHjUaoV1l/Y/wUdN3kBqs97NElTtbn+FffO7tCawpEqq7wwb+kxKNXE7Hz6aeBanGBUtkFPwcoMXnwVBZg7aQXAFUefva4D+iMmY5QZ6UiboQ5dZ8AlmCylpiQ9l0bfW1MGTlPsauodezNC5/VlTsDwZ9tzFf4aI/xRfjQTv74fwk8r40YOAs2WPx7J45zOuxlbEPTxOWp0vISwMJrmpd4L0s/CX1JT4fJIYln32O1K07jwPJ2AtTtF9DzfTHCu1ljCR6M0fGAQtWEgcOgjr4nQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=outlook.com; dmarc=pass action=none header.from=outlook.com; dkim=pass header.d=outlook.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=outlook.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=F0faxDl4LjYCHBppZS1a12DzVftmLe4lVgo5650XrTs=; b=gsfz0swMKVebpfdkjhASP8RxqcqPNvpE5FyFIew2tAlwuwEPEL0mdQQvgp2TsGqei/K9xjl7Z3E3gdam2QsCJhR/NRi9WAlzggx9SO3TZsWl+Kfato1dM4Giz4/67DRcMgdENW+UGwZ3ygdBoSEdIXU0/FGT3cS9iOP7YI4A70cqWkC1SS3N6Pk4p3vx0FoI650PMEZJwG2DheJsErJM8/aCQbgyIVjLPDL8YLxRW34VKrzWqbbXuqTqMOLjTpT7Nfxr7yiucn0oJhRzW2sSr/ZZMXgGUgIUpwr7/axEGufyysSCshjI57qTpWiroNBFSNsGHZTyIyveP2WlLHBNpw== Received: from HK2APC01FT007.eop-APC01.prod.protection.outlook.com (10.152.248.58) by HK2APC01HT042.eop-APC01.prod.protection.outlook.com (10.152.249.77) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2602.11; Wed, 1 Jan 2020 02:59:40 +0000 Received: from SG2PR03MB3611.apcprd03.prod.outlook.com (10.152.248.60) by HK2APC01FT007.mail.protection.outlook.com (10.152.248.139) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2602.11 via Frontend Transport; Wed, 1 Jan 2020 02:59:40 +0000 X-IncomingTopHeaderMarker: OriginalChecksum:82A621800856D6A9AB04A0F71F784EE55A270B30FF0A1812FBA258D05404F738; UpperCasedChecksum:BCB8A226DDB832ECB37EF2EFBFEF78D6EFC065F46C6F0600311CD379B811B560; SizeAsReceived:9003; Count:48 Received: from SG2PR03MB3611.apcprd03.prod.outlook.com ([fe80::65f4:d979:9d3d:1829]) by SG2PR03MB3611.apcprd03.prod.outlook.com ([fe80::65f4:d979:9d3d:1829%7]) with mapi id 15.20.2602.010; Wed, 1 Jan 2020 02:59:40 +0000 Date: Wed, 1 Jan 2020 10:59:31 +0800 From: HaiJun Zhang Message-ID: In-Reply-To: <83lfqslafm.fsf@gnu.org> References: <83o8vpn8g1.fsf@gnu.org> <87mub9u0ld.fsf@gmx.de> <831rslmxih.fsf@gnu.org> <83lfqslafm.fsf@gnu.org> X-Readdle-Message-ID: ea3f0cf0-d0b1-4680-a9e5-6d9384946289@Spark Content-Type: multipart/alternative; boundary="5e0c0b19_5451cf49_4379" X-ClientProxiedBy: HK0PR03CA0105.apcprd03.prod.outlook.com (2603:1096:203:b0::21) To SG2PR03MB3611.apcprd03.prod.outlook.com (2603:1096:4:17::11) X-Microsoft-Original-Message-ID: MIME-Version: 1.0 Received: from [192.168.1.103] (1.193.170.223) by HK0PR03CA0105.apcprd03.prod.outlook.com (2603:1096:203:b0::21) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2602.11 via Frontend Transport; Wed, 1 Jan 2020 02:59:39 +0000 X-Readdle-Message-ID: ea3f0cf0-d0b1-4680-a9e5-6d9384946289@Spark X-Microsoft-Original-Message-ID: X-TMN: [ACP+Qv8Vr0XiZuraZGopINkXphW+0ilv] X-MS-PublicTrafficType: Email X-IncomingHeaderCount: 48 X-EOPAttributedMessage: 0 X-MS-Office365-Filtering-Correlation-Id: b57cb36b-eb63-4cd6-4f8d-08d78e66a522 X-MS-TrafficTypeDiagnostic: HK2APC01HT042: X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: +Pa6EpZTtnzGixivUbi8n9WWNioPaxA7UEk0QkO4UkD9NNmGoyEkkpynSLUOJ0f+fNz/1cYG6qhLDqnQhemLHZBBYLaCFi0S9ewyg7zCyidj5wzPm4PDg9N/jD8so4FGLw1LKdMzZuCU5FS+S292D0i3jjV2UGUabupBdYb37+WIxZV/TLNh+ZG36tkvO2JyyZuanFt46YRWN+Pwy3yyQu9IUuVimLx67jb56mxAnsk= X-OriginatorOrg: outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: b57cb36b-eb63-4cd6-4f8d-08d78e66a522 X-MS-Exchange-CrossTenant-OriginalArrivalTime: 01 Jan 2020 02:59:40.8449 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 84df9e7f-e9f6-40af-b435-aaaaaaaaaaaa X-MS-Exchange-CrossTenant-FromEntityHeader: Internet X-MS-Exchange-CrossTenant-RMS-PersistedConsumerOrg: 00000000-0000-0000-0000-000000000000 X-MS-Exchange-Transport-CrossTenantHeadersStamped: HK2APC01HT042 X-Spam-Score: 0.0 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) --5e0c0b19_5451cf49_4379 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline =E5=9C=A8 2020=E5=B9=B41=E6=9C=881=E6=97=A5 +0800 AM12:36=EF=BC=8CEli Zar= etskii =EF=BC=8C=E5=86=99=E9=81=93=EF=BC=9A > The Lisp interpreter already sort-of =22queues=22 display changes, beca= use > it only changes Lisp data structures, and then the display engine > references those data structures at display time. So those data > structures serve as a kind-of =22queue=22, since redisplay runs when Em= acs > is idle (i.e., the last Lisp command completed its job). > > But the problem is in the other direction: it's not that Lisp somehow > =22drives=22 the UI, it's that the UI frequently calls into Lisp as par= t > of its job. The simplest example is mode-line format: it includes > references to variables, and can also include :eval forms that call > the interpreter. > It is much clearer to me now. We can keep them all as the UI thread. > Your idea in fact means to have several isolated Lisp machines in the > same process. But how can we do something like that without a very > radical redesign of Emacs, when so many things in Emacs are implicitly > part of the global state=3F Buffers, global variables, windows, > frames--all those are global resources, and every thread will want to > access them. Emacs was not designed to allow that. > All those global resources are not accessible by workers. Workers can onl= y access network, file system and other non-global resources. They only d= o the following things: 1. retrieve content from network, parse the data, and send the result(lis= p data) to the UI thread to present it 2. communicate with subprocesses, parse the data from subprocesses, and s= end the result to the UI thread 3. do file indexing and send the index result to the UI thread 4. do other heavy work like mathematicl calculation and deep learning, se= nd the result to the UI thread Let the UI thread do as less work as possible. > Your idea can be implemented with two processes, though. And there is > already a package called emacs-async which does that: > > https://github.com/jwiegley/emacs-async > I knew this package. It is a good idea. Modern web browsers also use sepa= rate processes to render page content(one or more pages per process). The= y design specific IPC to let the worker processes to communicate with the= main(UI) process. They have good performance and good user responsivenes= s. I think emacs is much like web browsers. Both render large text content a= nd care user responsiveness. We can learn from them. > The disadvantage is that it is cumbersome to share data between the > two instances of Emacs, and large amounts of data will make that > inefficient. We may design an IPC for their=C2=A0communication. --5e0c0b19_5451cf49_4379 Content-Type: text/html; charset="utf-8" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline
=E5=9C=A8 2020=E5=B9=B41=E6=9C=881=E6=97= =A5 +0800 AM12:36=EF=BC=8CEli Zaretskii <eliz@gnu.org>=EF=BC=8C= =E5=86=99=E9=81=93=EF=BC=9A
The Lisp interpreter a= lready sort-of "queues" display changes, because
it only changes Lisp data structures, and then the display engine
references those data structures at display time. So those data
structures serve as a kind-of "queue", since redisplay runs when = Emacs
is idle (i.e., the last Lisp command completed its job).

But the problem is in the other direction: it's not that Lisp somehow
"drives" the UI, it's that the UI frequently calls into Lisp as p= art
of its job. The simplest example is mode-line format: it includes
references to variables, and can also include :eval forms that call
the interpreter.


It is much clearer to me now. We can keep them all as the UI thread.

Your idea in fact mean= s to have several isolated Lisp machines in the
same process. But how can we do something like that without a very
radical redesign of Emacs, when so many things in Emacs are implicitly
part of the global state? Buffers, global variables, windows,
frames--all those are global resources, and every thread will want to
access them. Emacs was not designed to allow that.


All those global resources are not accessible by workers.= Workers can only access network, file system and other non-global resource= s. They only do the following things:
1. retrieve content from network, parse the data, and sen= d the result(lisp data) to the UI thread to present it
2. communicate with subprocesses, parse the data from sub= processes, and send the result to the UI thread
3. do file indexing and send the index result to the UI t= hread
4. do other heavy work like mathematicl calculation and d= eep learning, send the result to the UI thread

Let the UI thread do as less work as possible.


Your idea can be imple= mented with two processes, though. And there is
already a package called emacs-async which does that:

https://github.com/jwiegley/emacs-async


I knew this package. It is a good idea. Modern web browsers also use separa= te processes to render page content(one or more pages per process). They de= sign specific IPC to let the worker processes to communicate with the main(= UI) process. They have good performance and good user responsiveness. =

I think emacs is much like web browsers. Both render larg= e text content and care user responsiveness. We can learn from them.

The disadvantage is th= at it is cumbersome to share data between the
two instances of Emacs, and large amounts of data will make that
inefficient. 

We may design an IPC for their communication.

--5e0c0b19_5451cf49_4379-- From unknown Wed Jul 30 13:11:05 2025 X-Loop: help-debbugs@gnu.org Subject: bug#38807: [Feature request]: Support lisp workers like web workers. Resent-From: HaiJun Zhang Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 01 Jan 2020 03:07:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 38807 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Eli Zaretskii , Dmitry Gutov Cc: 38807@debbugs.gnu.org Received: via spool by 38807-submit@debbugs.gnu.org id=B38807.157784800620746 (code B ref 38807); Wed, 01 Jan 2020 03:07:02 +0000 Received: (at 38807) by debbugs.gnu.org; 1 Jan 2020 03:06:46 +0000 Received: from localhost ([127.0.0.1]:35378 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1imULN-0005OX-QQ for submit@debbugs.gnu.org; Tue, 31 Dec 2019 22:06:46 -0500 Received: from mail-oln040092253050.outbound.protection.outlook.com ([40.92.253.50]:6137 helo=APC01-SG2-obe.outbound.protection.outlook.com) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1imULK-0005OG-Oc for 38807@debbugs.gnu.org; Tue, 31 Dec 2019 22:06:44 -0500 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=SEj3GkLtaEnH7JYhk2uO2mr1qqYwyjL4LjN20a7P0ukwd6w/QDfNXo1O6qrinMWCNij+9J493kTjKnNgHumdyYGaTcpqC2BOvUV8KhvKhAhx+UAurWVcr4AOF1iHpt3zzhKxGUaWQvH3X8FIfgycLE/2jCGSzrVrxWo3jJVXhFB332Y4mS5lRjP6ZjKB9i1b6j+Fp40eSOo7ILZyMuobJexQkcSAY2ADfVxIqYl2yl//fgv7l6Zcl6JnD0t9GjWnl7lHP+7lkV2p0kYbGHp3bU2v77bpDa+KvIRVQtjGOt1jL+CuQenjbmMs0bbhMDWYELYzq8JgUSY9ng/azAwPzA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=R/s1XcKfhIps5pYtjwZPb8sX3R2abov7VTs3krRa5Hs=; b=H7Euz6mrQTYhIbTeiIZFePGlUwTpi8V/Y7iSTl+PSvGVdu81fuaLpLplMB2iNgRy9tqHeDrnhdFnsxklnhLRv7aggnkJQib7FM+ewgjGq3fZJkkeI1YeM1pi7L1P/nMhUQPaQyEfZmn424KBDXjOouG+DvYBbljQNktIhBrCtyvZt9d139T8sg/42fIXBXGOsMwvNelQplIiYsCSfC5/zpBP2GblAsvOxI5//4c5t2U7iL1S73v1CJwC0J65651BQnhIj6IL2tlm5QppdCPYJwydGn6D8A8KROrFNoCU9tKMFsGAmsP+/kNREcd/H9Gb6gheIlhDhnt8xoqAVq1wzw== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=outlook.com; dmarc=pass action=none header.from=outlook.com; dkim=pass header.d=outlook.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=outlook.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=R/s1XcKfhIps5pYtjwZPb8sX3R2abov7VTs3krRa5Hs=; b=cqSOxxkyOVPLcq88etzDLYqRBIRL4TH8Ybpfn0qCgnBT5ReB8T3F3Oh2kVAfHDIohWDyRTaUh96in9qZZ38lx2yJiaonymqkg6rXc5s1bC+i2/CqEd+0rBFoqh+ONiU1f8ACQkr677MgNFz46831PtVRshaiHeD04GiMQvMNS+h5+V+CCBvK0xOoe/jMQZdNXeIxD1C1TUUfEMc1Som1vYHPGLpEqKq0uf9wklwWZ2tUMy+t+07NhwRL6S+JdYdF8z+62XgtHJT0rXXilzdEae0O7evSS6j7JYFOeZB9O/kxkNWUO96cQ6takbX5yI4PW7eSN2sgykYjgr1Endi78g== Received: from HK2APC01FT014.eop-APC01.prod.protection.outlook.com (10.152.248.60) by HK2APC01HT156.eop-APC01.prod.protection.outlook.com (10.152.248.255) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2602.11; Wed, 1 Jan 2020 03:06:34 +0000 Received: from SG2PR03MB3611.apcprd03.prod.outlook.com (10.152.248.56) by HK2APC01FT014.mail.protection.outlook.com (10.152.248.103) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2581.11 via Frontend Transport; Wed, 1 Jan 2020 03:06:34 +0000 X-IncomingTopHeaderMarker: OriginalChecksum:0CB176BE4962A3E9174CF6AE0077C9E65DA3FC4A93F605AC4D24A33BC0E2BF11; UpperCasedChecksum:4EC2B6C921790B3DDA33EE302B1E7972B35C0A0A7AAFDE7491027952389AEBF7; SizeAsReceived:8925; Count:48 Received: from SG2PR03MB3611.apcprd03.prod.outlook.com ([fe80::65f4:d979:9d3d:1829]) by SG2PR03MB3611.apcprd03.prod.outlook.com ([fe80::65f4:d979:9d3d:1829%7]) with mapi id 15.20.2602.010; Wed, 1 Jan 2020 03:06:33 +0000 Date: Wed, 1 Jan 2020 11:06:24 +0800 From: HaiJun Zhang Message-ID: In-Reply-To: <48d683e5-e0ec-2cbf-c8db-ad41cfc553e1@yandex.ru> References: <83o8vpn8g1.fsf@gnu.org> <48d683e5-e0ec-2cbf-c8db-ad41cfc553e1@yandex.ru> X-Readdle-Message-ID: da981e2f-daf2-4698-b086-94e45d8c46e0@Spark Content-Type: multipart/alternative; boundary="5e0c0cb6_368db37e_4379" X-ClientProxiedBy: HK2PR03CA0054.apcprd03.prod.outlook.com (2603:1096:202:17::24) To SG2PR03MB3611.apcprd03.prod.outlook.com (2603:1096:4:17::11) X-Microsoft-Original-Message-ID: MIME-Version: 1.0 Received: from [192.168.1.103] (1.193.170.223) by HK2PR03CA0054.apcprd03.prod.outlook.com (2603:1096:202:17::24) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2602.7 via Frontend Transport; Wed, 1 Jan 2020 03:06:32 +0000 X-Readdle-Message-ID: da981e2f-daf2-4698-b086-94e45d8c46e0@Spark X-Microsoft-Original-Message-ID: X-TMN: [49CxB7h0Qh5ROLi5EFbkRtrEBFWO96d1] X-MS-PublicTrafficType: Email X-IncomingHeaderCount: 48 X-EOPAttributedMessage: 0 X-MS-Office365-Filtering-Correlation-Id: 1a796fd5-aac3-45c1-be8a-08d78e679b15 X-MS-TrafficTypeDiagnostic: HK2APC01HT156: X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: hKUZSKuQaWs3I2lR6bqFWTP92foAp95c3F6xgUzvYWKzpCvFk2wMBablKvegzsDyvAq5HgSooRLPok9c4HaMIFdS3mObgmX7zYiYwUJIlDBmTbPw6eIhFOtGjdsEH4MZERM+xlZQ3gCELpnC2nv6cZFDsOAJEF9+E6/u1B9iqbalRXTcVS+0s64rGszCfOHE X-OriginatorOrg: outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 1a796fd5-aac3-45c1-be8a-08d78e679b15 X-MS-Exchange-CrossTenant-OriginalArrivalTime: 01 Jan 2020 03:06:33.3122 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 84df9e7f-e9f6-40af-b435-aaaaaaaaaaaa X-MS-Exchange-CrossTenant-FromEntityHeader: Internet X-MS-Exchange-CrossTenant-RMS-PersistedConsumerOrg: 00000000-0000-0000-0000-000000000000 X-MS-Exchange-Transport-CrossTenantHeadersStamped: HK2APC01HT156 X-Spam-Score: 0.0 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) --5e0c0cb6_368db37e_4379 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline =E5=9C=A8 2019=E5=B9=B412=E6=9C=8830=E6=97=A5 +0800 PM11:40=EF=BC=8CDmitr= y Gutov =EF=BC=8C=E5=86=99=E9=81=93=EF=BC=9A > On 30.12.2019 17:23, Eli Zaretskii wrote: > > We have threads in Emacs, so you could start by using them, no=3F > > The main point of Web Workers is that they run in parallel to the main > thread. > > So the bit about not being able to access =22data in the UI thread=22 i= s > about no need for synchronization, I suppose. Yes. That is what I mean. They can do heavy work without pausing user inp= ut. --5e0c0cb6_368db37e_4379 Content-Type: text/html; charset="utf-8" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline
=E5=9C=A8 2019=E5=B9=B412=E6=9C=8830=E6= =97=A5 +0800 PM11:40=EF=BC=8CDmitry Gutov <dgutov@yandex.ru>=EF= =BC=8C=E5=86=99=E9=81=93=EF=BC=9A
On 30.12.2019 17:23, E= li Zaretskii wrote:
We have threads in Ema= cs, so you could start by using them, no?

The main point of Web Workers is that they run in parallel to the main
thread.

So the bit about not being able to access "data in the UI thread"= is
about no need for synchronization, I suppose. 

Yes. That is what I mean. They can do heavy work without pausing user = input.

--5e0c0cb6_368db37e_4379-- From unknown Wed Jul 30 13:11:05 2025 X-Loop: help-debbugs@gnu.org Subject: bug#38807: [Feature request]: Support lisp workers like web workers. Resent-From: HaiJun Zhang Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 01 Jan 2020 03:17:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 38807 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Eli Zaretskii , Michael Albinus Cc: 38807@debbugs.gnu.org Received: via spool by 38807-submit@debbugs.gnu.org id=B38807.157784859321716 (code B ref 38807); Wed, 01 Jan 2020 03:17:02 +0000 Received: (at 38807) by debbugs.gnu.org; 1 Jan 2020 03:16:33 +0000 Received: from localhost ([127.0.0.1]:35394 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1imUUr-0005eB-DG for submit@debbugs.gnu.org; Tue, 31 Dec 2019 22:16:33 -0500 Received: from mail-oln040092253098.outbound.protection.outlook.com ([40.92.253.98]:26253 helo=APC01-SG2-obe.outbound.protection.outlook.com) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1imUUo-0005dx-S8 for 38807@debbugs.gnu.org; Tue, 31 Dec 2019 22:16:32 -0500 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=a/tZENyRbzyL/HZUlXRqIXpHtvEQk4qc3o16V7BgyoPUOOC51PxzLAj7WCFZI3VRiZRC/PA4oIMW/l1XkTH3IVgkrlQMUiv+4Nn92AxLP3wR2fMDmpac2ecIlWSIcZuTT0Rt58QeBKu115HCB24Z5GU6rtZdZQeQA0N4ffLOhEWXkAT8WmtKe4aVz+0L6t1YigNSAP++TcxD7HScTS9GJlx9xek9AJaLzyMzhUkYk59CcssDdvNLQXYICa0lDxapZVZuszgh1ITNvCj6V+EEvaCY2AGPE1ZemQ5UC4sJtgxziAFyFVdszX+e1xWu0X+cWaY9MFT5rUAxHcS8S8D+cg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=akGSMkUShIQzxHBrpCDjmijuJuyYxb1Woq6xAO9S7yY=; b=idbDIXiX2KcG7Ic5B1vVqJPdSaGJ8LX93wo3GW1buojzI5yz/ECgXC2hOvtAtzyht1s+wRDNPZ4ZbMTPZQpJPLW/+JH/h8TJjtT8sExwrQ2zX98BEhzIbm9Rthf1jsaHpBYoEOdFRzRpXtUPMvQz1syDImNKzZXg18YyH7wgwKdlzd+6BHw4UfNLFARnI8DLOhT1Wn4oFNqpyR3GjOFVSoEW8Tzqt3J3R5D2XhecrNbUVAuJSTzorkEtrbQxWrHrhC25q33rfuSLECZbBJpEDoNslz0/U4VeBZpTufHYVH+1ZqM3okr+ki0+2wqxnMdq03HQBjnlWiwHLRTerKmcAg== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=outlook.com; dmarc=pass action=none header.from=outlook.com; dkim=pass header.d=outlook.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=outlook.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=akGSMkUShIQzxHBrpCDjmijuJuyYxb1Woq6xAO9S7yY=; b=nvIOfVBQZDyL0olUoCrtEDeOk85nFKbwkMRuqzEPC71bOI6vboh+f2Jtk1mv2kWtd4l8WonfLzNrd0uE5ReZ5uIPABygELcs55f3IMipYVvZQWMDqjElgvvwdlLhMeCU9kphssuxo1vw/ZWfRdpCBBCQflEcyemzjiGk2fIueVtI2gcx6tXpRHNzEFONH9UgCnmiTpI5NZHuYwydTZX6TFexOdi+2LSI1doK7XPUS8aKLXg+hmb7Pc4l9axSSHewpYieXSoG3tLDNzI14SO55e7R7J3jVcPdUTNEWVEzj2sB5Utapc8z4EyUNKFapTRBRmsE34zzG3zb0qkChpWPQQ== Received: from HK2APC01FT020.eop-APC01.prod.protection.outlook.com (10.152.248.58) by HK2APC01HT060.eop-APC01.prod.protection.outlook.com (10.152.249.32) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2602.11; Wed, 1 Jan 2020 03:16:22 +0000 Received: from SG2PR03MB3611.apcprd03.prod.outlook.com (10.152.248.52) by HK2APC01FT020.mail.protection.outlook.com (10.152.248.186) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2602.11 via Frontend Transport; Wed, 1 Jan 2020 03:16:22 +0000 X-IncomingTopHeaderMarker: OriginalChecksum:8E05EC3B74664AC370808DF11EC353F5E8F9917A1CF5422495BD5770ECD9EEA9; UpperCasedChecksum:9D89DF891DE61ACDC77CAEDDE614F59AD643EE50CBF70FA4345D9665EB3BBAFC; SizeAsReceived:8886; Count:48 Received: from SG2PR03MB3611.apcprd03.prod.outlook.com ([fe80::65f4:d979:9d3d:1829]) by SG2PR03MB3611.apcprd03.prod.outlook.com ([fe80::65f4:d979:9d3d:1829%7]) with mapi id 15.20.2602.010; Wed, 1 Jan 2020 03:16:22 +0000 Date: Wed, 1 Jan 2020 11:16:13 +0800 From: HaiJun Zhang Message-ID: In-Reply-To: <87mub9u0ld.fsf@gmx.de> References: <83o8vpn8g1.fsf@gnu.org> <87mub9u0ld.fsf@gmx.de> X-Readdle-Message-ID: 179aa6e0-bf8a-41d0-84e6-7c0928c867ed@Spark Content-Type: multipart/alternative; boundary="5e0c0f03_7e448de9_4379" X-ClientProxiedBy: HK2PR03CA0064.apcprd03.prod.outlook.com (2603:1096:202:17::34) To SG2PR03MB3611.apcprd03.prod.outlook.com (2603:1096:4:17::11) X-Microsoft-Original-Message-ID: <179aa6e0-bf8a-41d0-84e6-7c0928c867ed@Spark> MIME-Version: 1.0 Received: from [192.168.1.103] (1.193.170.223) by HK2PR03CA0064.apcprd03.prod.outlook.com (2603:1096:202:17::34) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2602.8 via Frontend Transport; Wed, 1 Jan 2020 03:16:21 +0000 X-Readdle-Message-ID: 179aa6e0-bf8a-41d0-84e6-7c0928c867ed@Spark X-Microsoft-Original-Message-ID: <179aa6e0-bf8a-41d0-84e6-7c0928c867ed@Spark> X-TMN: [JnmcIvRnK3a28lgBU1vox+Nc6qbmuVnh] X-MS-PublicTrafficType: Email X-IncomingHeaderCount: 48 X-EOPAttributedMessage: 0 X-MS-Office365-Filtering-Correlation-Id: 041c8270-7e4a-4e9b-6e47-08d78e68fa12 X-MS-TrafficTypeDiagnostic: HK2APC01HT060: X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: MugkGHsOrW62nX+K80KKBNCnxg8g1WdaIDvySoRVviCqvDPqXpbUNSDT4hlqW0F+dhSpidezGnbjQE1nJY2iBOSVi3R5bz0k/iu9G4aQwsQc9kehWHuBYDZz3qBPfcLlia2SfvH7iVPZzDUcJjGRVjTa1cRTk3oUyRCp/GCzvf11I19PZizbSjGDV8KBbXEp X-OriginatorOrg: outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 041c8270-7e4a-4e9b-6e47-08d78e68fa12 X-MS-Exchange-CrossTenant-OriginalArrivalTime: 01 Jan 2020 03:16:22.1858 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 84df9e7f-e9f6-40af-b435-aaaaaaaaaaaa X-MS-Exchange-CrossTenant-FromEntityHeader: Internet X-MS-Exchange-CrossTenant-RMS-PersistedConsumerOrg: 00000000-0000-0000-0000-000000000000 X-MS-Exchange-Transport-CrossTenantHeadersStamped: HK2APC01HT060 X-Spam-Score: 0.0 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) --5e0c0f03_7e448de9_4379 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline =E5=9C=A8 2019=E5=B9=B412=E6=9C=8831=E6=97=A5 +0800 AM2:31=EF=BC=8CMichae= l Albinus =EF=BC=8C=E5=86=99=E9=81=93=EF=BC=9A > > The point seems to be that there is a dedicated UI thread. That we don'= t > have (yet) in Emacs, and I like this idea. > We can even keep all in emacs currently as the =E2=80=9CUI thread=E2=80=9D= and run another lisp machine for a worker. --5e0c0f03_7e448de9_4379 Content-Type: text/html; charset="utf-8" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline
=E5=9C=A8 2019=E5=B9=B412=E6=9C=8831=E6= =97=A5 +0800 AM2:31=EF=BC=8CMichael Albinus <michael.albinus@gmx.de&= gt;=EF=BC=8C=E5=86=99=E9=81=93=EF=BC=9A

The point seems to be that there is a dedicated UI thread. That we don't have (yet) in Emacs, and I like this idea.


We can even keep all in emacs currently as the =E2=80=9CUI thread=E2=80=9Da= nd run another lisp machine for a worker.

--5e0c0f03_7e448de9_4379-- From unknown Wed Jul 30 13:11:05 2025 X-Loop: help-debbugs@gnu.org Subject: bug#38807: [Feature request]: Support lisp workers like web workers. Resent-From: HaiJun Zhang Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 01 Jan 2020 03:21:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 38807 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Dmitry Gutov , Eli Zaretskii Cc: 38807@debbugs.gnu.org Received: via spool by 38807-submit@debbugs.gnu.org id=B38807.157784884322094 (code B ref 38807); Wed, 01 Jan 2020 03:21:02 +0000 Received: (at 38807) by debbugs.gnu.org; 1 Jan 2020 03:20:43 +0000 Received: from localhost ([127.0.0.1]:35402 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1imUYt-0005kH-9Y for submit@debbugs.gnu.org; Tue, 31 Dec 2019 22:20:43 -0500 Received: from mail-oln040092255023.outbound.protection.outlook.com ([40.92.255.23]:26656 helo=APC01-HK2-obe.outbound.protection.outlook.com) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1imUYr-0005jv-66 for 38807@debbugs.gnu.org; Tue, 31 Dec 2019 22:20:41 -0500 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=R2H/23algulYJmFhKGmEsaiU7rIEEQDMXw5strusr8L5hny/NQG8hpi3rz9O5+iVVqDfJULsggEMqRxuGCPZXfWDpjtGNg5TlyMhd6mq23XKxK7g6vN7m3+kjoGl5ezm0JJgpNSssqDxbkGmxaxMbEYHsuko3EBfVXsKcazLWf6JIyS74pBRIVbqr65iGf9QQdDHQFwf5x+zq6AV44+BlazRTtCMJ7H+J7YAOkb0STz9Ql+RKOku8YpTewJf0w7ye8FjJ7Et2shMZNFHrpEYFUcnxjNwKlkoxGfqDPXry53fZjb92t6E3qn8Ilj/GWlqHRmWV0YChkuQNRz1Vh0nvg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=TS1tJ+Phxv18eVHwgK5qCBJEHpt+2ssNkq8KXjSoOdg=; b=AjDFMVoOQu35+rK/3PWa9pBOxIQKY1dqc6DEzJsE2cumcU21fNhZAvSoP6ZXBVip4DQS9CtiL4QP3Umx2kJJ63dKNGCAAP7Blti49C0KjCN6SdimbH9HOs6mhjznH4MQHr+GWgrHImXKxGD64ruK4rECCtWlrxvXar+78WVp4p0D5VpxBVzFe4BSHxd5HHye7M8WLDPrk0KbkZrysg4orVyn85jOicCq6Xzji8r8X3wY96mqYp7YEtbUOJ4vNk6qD2ObrxzKlVKjAvywIQRgHH6U/OpwUHcl0RpwFgP9ZQrtxf86OvMDOYeKLImO8a2tHyP1FnGooxWXkER8cWtLuA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=outlook.com; dmarc=pass action=none header.from=outlook.com; dkim=pass header.d=outlook.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=outlook.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=TS1tJ+Phxv18eVHwgK5qCBJEHpt+2ssNkq8KXjSoOdg=; b=auGAN5agoNS/PngMByDWj5+TcTz/MBp/4SejGVluNvxczJf7Ft4aOI6geLMz4QjvqwTL4gLpG8pMNe1gnXhg2AJSTr/v7XnP0PIXZIqO3P7UFqLo1VRlIBKEwvKSuzbaYJ9K6UiBIBoH/Qk+MaYvbF2DQqTCpjxWp0UJRxbhw+gga6R9G0tWjeTayjiuUFWv5eusUOpGBZahojH3qG8lTxdv83DeDHFvA+nUCmgBAOQJYNC6nWYxndUdFDMGuCtYPS5+La2BE0MPJ7vpbIiNnOcH4yMtDgqyVIs1dDZ133SQi7+gcYhn3wSct8/zJyWXDIL23+cwbR3HmktAkxtfog== Received: from HK2APC01FT020.eop-APC01.prod.protection.outlook.com (10.152.248.53) by HK2APC01HT146.eop-APC01.prod.protection.outlook.com (10.152.249.84) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2602.11; Wed, 1 Jan 2020 03:20:33 +0000 Received: from SG2PR03MB3611.apcprd03.prod.outlook.com (10.152.248.52) by HK2APC01FT020.mail.protection.outlook.com (10.152.248.186) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2602.11 via Frontend Transport; Wed, 1 Jan 2020 03:20:33 +0000 X-IncomingTopHeaderMarker: OriginalChecksum:DC9B47540C56ED79A326D8B1D47B8E80C1D4BF0E3CB2AD8631AE4DAF9DB068CC; UpperCasedChecksum:F8D2BB0D6F66A800C56FC9EDD719DB6D6A3135E6CFE6185A6761D1480C32870A; SizeAsReceived:8926; Count:48 Received: from SG2PR03MB3611.apcprd03.prod.outlook.com ([fe80::65f4:d979:9d3d:1829]) by SG2PR03MB3611.apcprd03.prod.outlook.com ([fe80::65f4:d979:9d3d:1829%7]) with mapi id 15.20.2602.010; Wed, 1 Jan 2020 03:20:33 +0000 Date: Wed, 1 Jan 2020 11:20:25 +0800 From: HaiJun Zhang Message-ID: In-Reply-To: <835zhxn5jg.fsf@gnu.org> References: <83o8vpn8g1.fsf@gnu.org> <48d683e5-e0ec-2cbf-c8db-ad41cfc553e1@yandex.ru> <835zhxn5jg.fsf@gnu.org> X-Readdle-Message-ID: 5e003165-d2eb-4854-aafc-90cf4f808b6c@Spark Content-Type: multipart/alternative; boundary="5e0c0ffe_cbe5be9_4379" X-ClientProxiedBy: HK2P15301CA0012.APCP153.PROD.OUTLOOK.COM (2603:1096:202:1::22) To SG2PR03MB3611.apcprd03.prod.outlook.com (2603:1096:4:17::11) X-Microsoft-Original-Message-ID: <5e003165-d2eb-4854-aafc-90cf4f808b6c@Spark> MIME-Version: 1.0 Received: from [192.168.1.103] (1.193.170.223) by HK2P15301CA0012.APCP153.PROD.OUTLOOK.COM (2603:1096:202:1::22) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2623.0 via Frontend Transport; Wed, 1 Jan 2020 03:20:32 +0000 X-Readdle-Message-ID: 5e003165-d2eb-4854-aafc-90cf4f808b6c@Spark X-Microsoft-Original-Message-ID: <5e003165-d2eb-4854-aafc-90cf4f808b6c@Spark> X-TMN: [zTHttMszIT1quJNUYL5WwDNiEInLH9gK] X-MS-PublicTrafficType: Email X-IncomingHeaderCount: 48 X-EOPAttributedMessage: 0 X-MS-Office365-Filtering-Correlation-Id: 7944a76e-359a-4ec1-1de7-08d78e698f9d X-MS-TrafficTypeDiagnostic: HK2APC01HT146: X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: kYKpT/g/hdmOZtrq+IEO6CdP+2MCr8ergH7riROAprYhXoNtN5Du1nlQ3J2tqmqmfuTmEVqfVa+GSNSjtIPCzXRUwjTW6hjcoSaMXvuApb4O2jl+PEUTh7SlML11wWCq6LlsWROJE1JTNQAcqtHyCPn4RJEJQiLCTEF72F/lAvX1kz9Nx9P189mfsJJM6PaQ X-OriginatorOrg: outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 7944a76e-359a-4ec1-1de7-08d78e698f9d X-MS-Exchange-CrossTenant-OriginalArrivalTime: 01 Jan 2020 03:20:33.0572 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 84df9e7f-e9f6-40af-b435-aaaaaaaaaaaa X-MS-Exchange-CrossTenant-FromEntityHeader: Internet X-MS-Exchange-CrossTenant-RMS-PersistedConsumerOrg: 00000000-0000-0000-0000-000000000000 X-MS-Exchange-Transport-CrossTenantHeadersStamped: HK2APC01HT146 X-Spam-Score: 0.0 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) --5e0c0ffe_cbe5be9_4379 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline =E5=9C=A8 2019=E5=B9=B412=E6=9C=8831=E6=97=A5 +0800 AM12:26=EF=BC=8CEli Z= aretskii =EF=BC=8C=E5=86=99=E9=81=93=EF=BC=9A > This reminds me of an old joke: when a shop owner was approached by an > employee asking to work 5 days a week, the owner answered: let's start > with one, and then gradually arrive at 5. > > More to the point, I did say =E2=80=9Cyou could start=22, didn't I=3F I can=E2=80=99t understand this. Can you explain it=3F --5e0c0ffe_cbe5be9_4379 Content-Type: text/html; charset="utf-8" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline
=E5=9C=A8 2019=E5=B9=B412=E6=9C=8831=E6= =97=A5 +0800 AM12:26=EF=BC=8CEli Zaretskii <eliz@gnu.org>=EF=BC= =8C=E5=86=99=E9=81=93=EF=BC=9A
This reminds me of an = old joke: when a shop owner was approached by an
employee asking to work 5 days a week, the owner answered: let's start
with one, and then gradually arrive at 5.

More to the point, I did say =E2=80=9Cyou could start", didn't I? = ;

I can=E2=80=99t understand this. Can you explain it?
--5e0c0ffe_cbe5be9_4379-- From unknown Wed Jul 30 13:11:05 2025 X-Loop: help-debbugs@gnu.org Subject: bug#38807: [Feature request]: Support lisp workers like web workers. Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 01 Jan 2020 03:38:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 38807 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: HaiJun Zhang Cc: 38807@debbugs.gnu.org, dgutov@yandex.ru Received: via spool by 38807-submit@debbugs.gnu.org id=B38807.157784986523938 (code B ref 38807); Wed, 01 Jan 2020 03:38:01 +0000 Received: (at 38807) by debbugs.gnu.org; 1 Jan 2020 03:37:45 +0000 Received: from localhost ([127.0.0.1]:35424 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1imUpM-0006E2-TQ for submit@debbugs.gnu.org; Tue, 31 Dec 2019 22:37:45 -0500 Received: from eggs.gnu.org ([209.51.188.92]:33562) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1imUpL-0006Dm-30 for 38807@debbugs.gnu.org; Tue, 31 Dec 2019 22:37:43 -0500 Received: from fencepost.gnu.org ([2001:470:142:3::e]:59493) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1imUpE-0006sy-LJ; Tue, 31 Dec 2019 22:37:36 -0500 Received: from [176.228.60.248] (port=1851 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1imUpD-0001Dc-JH; Tue, 31 Dec 2019 22:37:36 -0500 Date: Wed, 01 Jan 2020 05:37:48 +0200 Message-Id: <8336czlucz.fsf@gnu.org> From: Eli Zaretskii In-reply-to: (message from HaiJun Zhang on Wed, 1 Jan 2020 11:20:25 +0800) References: <83o8vpn8g1.fsf@gnu.org> <48d683e5-e0ec-2cbf-c8db-ad41cfc553e1@yandex.ru> <835zhxn5jg.fsf@gnu.org> MIME-version: 1.0 Content-type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Spam-Score: -2.3 (--) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) > Date: Wed, 1 Jan 2020 11:20:25 +0800 > From: HaiJun Zhang > Cc: 38807@debbugs.gnu.org > > 在 2019年12月31日 +0800 AM12:26,Eli Zaretskii ,写道: > > This reminds me of an old joke: when a shop owner was approached by an > employee asking to work 5 days a week, the owner answered: let's start > with one, and then gradually arrive at 5. > > More to the point, I did say “you could start", didn't I? > > I can’t understand this. Can you explain it? Whatever application you have in mind, try implementing it using what we already have regarding Lisp threads, and see if the limitations Michael mentioned are really so grave. It could be that for some applications what we have is good enough. And if not, you will collect some experience and understand better what additional features do you need. From unknown Wed Jul 30 13:11:05 2025 X-Loop: help-debbugs@gnu.org Subject: bug#38807: [Feature request]: Support lisp workers like web workers. Resent-From: HaiJun Zhang Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 01 Jan 2020 03:49:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 38807 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Michael Albinus , Eli Zaretskii , arthur miller Cc: "38807@debbugs.gnu.org" <38807@debbugs.gnu.org> Received: via spool by 38807-submit@debbugs.gnu.org id=B38807.157785049425188 (code B ref 38807); Wed, 01 Jan 2020 03:49:02 +0000 Received: (at 38807) by debbugs.gnu.org; 1 Jan 2020 03:48:14 +0000 Received: from localhost ([127.0.0.1]:35441 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1imUzS-0006Y9-LG for submit@debbugs.gnu.org; Tue, 31 Dec 2019 22:48:14 -0500 Received: from mail-oln040092254061.outbound.protection.outlook.com ([40.92.254.61]:15904 helo=APC01-PU1-obe.outbound.protection.outlook.com) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1imUzO-0006XW-Qx for 38807@debbugs.gnu.org; Tue, 31 Dec 2019 22:48:08 -0500 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=nMU5xzqZ0J4w0VGSOnvriT4RNvBFLL90OMZ7hYcOZBg6tLPRHa7whQSEmgFNf5ws0I5N7j9bRzVIhUl0zN3f3Q81V+O15ZLfKsLr32lZ9+GN+lNO7xT42FxJqzfdW/zfV+SiWxgH7YHaYKMWRjuoV16K8L9c2ommNTlfPUZEeAXa8ypN3Zle7YrV8Dg3kPukBZndcDw4BfQQjt9e7Wlztbz0K3ACowBbhHnssSMmutupl+2PWBKY1xNfxRBllmcLDVGypn0vhgpIguhmYlqr1HPcFG4YlAyldPNSC5rG3Joui8F74GlSzrupEQERdi13kI4Vftn0Q3I45KMIJUnKpQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=UGxyT2xkhk0IclaPZrN6XuDpY5z6cQNyqvqOFbrz46k=; b=P/oBUKnLUpXLVILIULKzW0LURm3Nmn/qikF5T0E8URTqzzNZc8nH2ER8QsZU+tzDyKKYYS8m3ELxBYYGwP+4RZEGIyhfASVlu3U8DYyGkDwWQ995914roTkWqUBMMNjTVSXKhpjT7zheWet9OidPFHVgxpDb3y4J1V9OIybK44bGok08fltaY3SVnU2maIJ1iRkLD9h7HtkdtDyItPN0VDHErtiL9534Mwphib0tyuthKkTz8738tkNbUJfF/oaFZqDK3mmcgWSIuOJkUSgKeTMfvac/9KMvgi/zaJG7gZK4ZN/hCSdKhbwH1oiu+SOAdOJHWCio3DYg3Kng/e5alg== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=outlook.com; dmarc=pass action=none header.from=outlook.com; dkim=pass header.d=outlook.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=outlook.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=UGxyT2xkhk0IclaPZrN6XuDpY5z6cQNyqvqOFbrz46k=; b=MBhHmnE63WFlWhQNMx8f6A4APl4fFEMhA3AznA4RV4hAMqKcwc5VQOwjOE1SKohXmPbL4pBxqpPt/hkxwyosIr7ZaZ8KiwM441aq46sb5ySlYnddtvWBgs1ZMAVFOWXWszyORSfwIYwsXVgtqgEoOnpx9YY6ArHJtDCNPDB4cZJwPayOQRVEVyNTK4ubGHtTU+A2UjH4rcm848M5wMdFqAJJt6+Htdl4RpE55EDmDSmadmHuI8WMEMKu+Tmcpn1SB0r/SnMXmIUG40Ua8wND0Ut5RWoRwzqKLgr+rfHMzykGGy05oQ79EYyN6gT30/jWYbfdGacSMqSjTG/BUN2NYg== Received: from HK2APC01FT020.eop-APC01.prod.protection.outlook.com (10.152.248.56) by HK2APC01HT099.eop-APC01.prod.protection.outlook.com (10.152.248.231) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2602.11; Wed, 1 Jan 2020 03:47:58 +0000 Received: from SG2PR03MB3611.apcprd03.prod.outlook.com (10.152.248.53) by HK2APC01FT020.mail.protection.outlook.com (10.152.248.186) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2602.11 via Frontend Transport; Wed, 1 Jan 2020 03:47:58 +0000 X-IncomingTopHeaderMarker: OriginalChecksum:80003C02E5B89274C18DAFD78153224599F36DB7D6B7EA8645D482ECECA8B916; UpperCasedChecksum:5E965962E496EB01C0F68F7AFCB149FF61176E74408F1E216D24AEC3648C03D3; SizeAsReceived:9201; Count:48 Received: from SG2PR03MB3611.apcprd03.prod.outlook.com ([fe80::65f4:d979:9d3d:1829]) by SG2PR03MB3611.apcprd03.prod.outlook.com ([fe80::65f4:d979:9d3d:1829%7]) with mapi id 15.20.2602.010; Wed, 1 Jan 2020 03:47:58 +0000 Date: Wed, 1 Jan 2020 11:47:49 +0800 From: HaiJun Zhang Message-ID: In-Reply-To: References: <83o8vpn8g1.fsf@gnu.org> <87mub9u0ld.fsf@gmx.de> <831rslmxih.fsf@gnu.org> X-Readdle-Message-ID: 08aee9fb-f0e7-483e-bba8-6dc367a0f2e4@Spark Content-Type: multipart/alternative; boundary="5e0c166b_697d2d2_4379" X-ClientProxiedBy: HK2PR03CA0048.apcprd03.prod.outlook.com (2603:1096:202:17::18) To SG2PR03MB3611.apcprd03.prod.outlook.com (2603:1096:4:17::11) X-Microsoft-Original-Message-ID: <08aee9fb-f0e7-483e-bba8-6dc367a0f2e4@Spark> MIME-Version: 1.0 Received: from [192.168.1.103] (1.193.170.223) by HK2PR03CA0048.apcprd03.prod.outlook.com (2603:1096:202:17::18) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2602.7 via Frontend Transport; Wed, 1 Jan 2020 03:47:57 +0000 X-Readdle-Message-ID: 08aee9fb-f0e7-483e-bba8-6dc367a0f2e4@Spark X-Microsoft-Original-Message-ID: <08aee9fb-f0e7-483e-bba8-6dc367a0f2e4@Spark> X-TMN: [EBgazr8TBE88RmMHafwOIQwazmF/3h3y] X-MS-PublicTrafficType: Email X-IncomingHeaderCount: 48 X-EOPAttributedMessage: 0 X-MS-Office365-Filtering-Correlation-Id: 7a46d346-7f17-4b2b-4876-08d78e6d6466 X-MS-Exchange-SLBlob-MailProps: mBRmoEB1kyJZ8Cjv+npDeE0mb0JtgErRqozdCqtio5kgYxQEdTHv9nkZuukLtBs3r3QfPP2WrOwlOm4G6LpncqQ/M3ArPub44IpDi3QHZ8DIcGnVcOOM8Zj3VdVPXN4gJoITlBp9CjJbSOoWEvy20EPiCOQ4rgHIIBpqYkoBZnjqqnKrpH2ydbnlIPGuSUJgjDytp96wQFT1RLkfeojc+f1tY3D0a/Hu2nvvJ34Fg2R2J5CUY1+qF6rWi8dkoXlKYfmz7TNcjA2pCa8TOYntAevt5ldawJOxwT32zIn8c2ITbk5P60ANX0Hv/NGGf3GuRWILQ9AUYDOUlAXf0+YsIh1+4+/ILT6V9rYt0XrhibVJPRlNit9oZjZkl/F7rEEKCTyGvk4r98oaQbiQCzv0tulU6LzL0WAkGzulkw+iBUIvIHwHOAPCNvpcVjCtMrVirRMCBNcHK6rmLbzbD1851j1qQ/tfkaE3GgxAUeuaYnC9ABmXrr+4uk1lDCJ1xG7Yj0nEVmT+zkfhTkgsoogOLOFxSga4zmK/KXfI82f640Y2ZKjki/bxTA2cyCZ5apcOfEDyn5bwS7+OFYAFoBqaLKuH3fyAIOUyJznE9lg/joGFkfsnYZvyMS6atw25cZUZ0kzbNLB7VbL9ZrDahtVHEOqzLvFXT/FgeP2FoVgihWhyoPZBMJI25JviVWvsuPSEclIH0hBtS9XjixIocC0qzFGOeXm33b0pxw8ndwF4XFmB/SKSnm6YglkWNbk2Dztzx8tsBSP9IOE= X-MS-TrafficTypeDiagnostic: HK2APC01HT099: X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: IpSHDx+kGWjgNzUaMPRsAJldlc0zOpGAa2oA/JnCoatYd7CvVyXP0gXxZ5Sxloul+yDbQp0EQAH79ucKm4zHYC6wG2PsA7e64YZjK9sWWzWsGucAqkaqL5ozAsRPDcVbOzkMFB9lCORCXWzMFrN+piTSBhAV0fWXk0ODd2aPbObZ4ucA1mZU/EjOqaKU2q5h X-OriginatorOrg: outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 7a46d346-7f17-4b2b-4876-08d78e6d6466 X-MS-Exchange-CrossTenant-OriginalArrivalTime: 01 Jan 2020 03:47:58.5407 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 84df9e7f-e9f6-40af-b435-aaaaaaaaaaaa X-MS-Exchange-CrossTenant-FromEntityHeader: Internet X-MS-Exchange-CrossTenant-RMS-PersistedConsumerOrg: 00000000-0000-0000-0000-000000000000 X-MS-Exchange-Transport-CrossTenantHeadersStamped: HK2APC01HT099 X-Spam-Score: 0.0 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) --5e0c166b_697d2d2_4379 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline My understanding of the display flow: 1. an event comes which causes redisplay 2. the display engine prepares the glyph matrix 3. convert the glyph matrix to bitmap and display it I think lots of work are in 2. During the work in 2, the display code nee= ds to access many resources in lisp machine and even may eval lisp forms.= The resources it accesses are too wildcard, so that we can't copy the re= sources to it and put them to queue. =46or multi-threading, we need a glo= bal lock. =E5=9C=A8 2019=E5=B9=B412=E6=9C=8831=E6=97=A5 +0800 AM9:39=EF=BC=8Carthur= miller =EF=BC=8C=E5=86=99=E9=81=93=EF=BC=9A > Cool idea. > > I have a question.=C2=A0 Is it even necessary for lisp machine to contr= ol UI=3F > > Couldn't lisp machine post its =22ui events=22 to a some kind of render= queue and maybe input queue, instead of drawing and handling stuff immed= iately in an OS window=3F That could decouple drawing from the rest and c= ould open for some other interesting stuff when it comes for rendering. > > I don't know maybe another thread for input queue. Probably too much wo= rk and I really don't know if that would be possible with Emacs architect= ure, at least as of current. > > I mean does lisp machine really need to know where it draws=3F It could= as well just =22draw=22 some events to a queue which could be rendered a= way in different passes, by different threads and so on. > > Skickat fr=C3=A5n min Samsung Galaxy-smartphone. > > > > -------- Originalmeddelande -------- > =46r=C3=A5n: HaiJun Zhang > Datum: 2019-12-31 01:42 (GMT+01:00) > Till: Michael Albinus , Eli Zaretskii > Kopia: 38807=40debbugs.gnu.org > =C3=84mne: bug=2338807: =5B=46eature request=5D: Support lisp workers l= ike web workers. > > =E5=9C=A8 2019=E5=B9=B412=E6=9C=8831=E6=97=A5 +0800 AM3:19=EF=BC=8CEli = Zaretskii =EF=BC=8C=E5=86=99=E9=81=93=EF=BC=9A > > > =46rom: Michael Albinus > > > Cc: HaiJun Zhang , 38807=40debbugs.gnu.org > > > Date: Mon, 30 Dec 2019 19:31:26 +0100 > > > > > > The point seems to be that there is a dedicated UI thread. That we = don't > > > have (yet) in Emacs, and I like this idea. > > > > We do have that on MS-Windows. Except that you'll be surprised how > > much of =22UI=22 in Emacs cannot be done in a separate thread, mainly= > > because the Lisp machine is under such complete control of what the U= I > > does, and you cannot run several instances of the Lisp machine > > simultaneously and asynchronously. > > What about the following idea: > 1. Make the current lisp machine be customized which has two profiles: > =C2=A0 =C2=A0 + full featured: as the current running lisp machine in e= macs > =C2=A0 =C2=A0 + subset one: without all UI functions > 2. Run the full featured one as emacs does now. It acts as the master l= isp machine(for UI only), which behave like the UI thread(process) in the= web browser. > 3. Run some subset ones for workers. Workers are started by the master = lisp machine. Workers can send messages to the master machine by calling = some APIs. The messages are copied to the master lisp machine, so GCs don= =E2=80=99t need to work across machines. > 4. Provide some APIs for them to communicate with each other. > --5e0c166b_697d2d2_4379 Content-Type: text/html; charset="utf-8" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline
My understanding of the display flow:
1. an event comes which causes redisplay
2. the display engine prepares the glyph matrix
3. convert the glyph matrix to bitmap and display= it

I think lots of work are in 2. During the work in= 2, the display code needs to access many resources in lisp machine and eve= n may eval lisp forms. The resources it accesses are too wildcard, so that = we can't copy the resources to it and put them to queue. For multi-threadin= g, we need a global lock.

=E5=9C=A8 2019=E5=B9=B412=E6=9C=8831=E6=97=A5 +0800 AM9:39=EF= =BC=8Carthur miller <arthur.miller@live.com>=EF=BC=8C=E5=86=99=E9=81= =93=EF=BC=9A
Cool idea.

I have a question.  Is it even necessary for lisp ma= chine to control UI?

Couldn't lisp machine post its "ui events" to a= some kind of render queue and maybe input queue, instead of drawing and ha= ndling stuff immediately in an OS window? That could decouple drawing from = the rest and could open for some other interesting stuff when it comes for = rendering. 

I don't know maybe another thread for input queue. Probab= ly too much work and I really don't know if that would be possible with Ema= cs architecture, at least as of current. 

I mean does lisp machine really need to know where it dra= ws? It could as well just "draw" some events to a queue which cou= ld be rendered away in different passes, by different threads and so on.

Skickat fr=C3=A5n = min Samsung Galaxy-smartphone.



-------- Originalmeddelande --------
Fr=C3=A5n: HaiJun Zhang <netjune@outlook.com>
Datum: 2019-12-31 01:42 (GMT+01:00)
Till: Michael Albinus <michael.albinus@gmx.de>, Eli Zaretskii &l= t;eliz@gnu.org>
Kopia: 38807@debbugs.gnu.org
=C3=84mne: bug#38807: [Feature request]: Support lisp workers like web= workers.

=E5=9C=A8 2019=E5=B9=B412=E6=9C=8831=E6= =97=A5 +0800 AM3:19=EF=BC=8CEli Zaretskii <eliz@gnu.org>=EF=BC=8C= =E5=86=99=E9=81=93=EF=BC=9A
From: Michael Albinus = <michael.albinus@gmx.de>
Cc: HaiJun Zhang <netjune@outlook.com>, 38807@debbugs.gnu.org
Date: Mon, 30 Dec 2019 19:31:26 +0100

The point seems to be that there is a dedicated UI thread. That we don't have (yet) in Emacs, and I like this idea.

We do have that on MS-Windows. Except that you'll be surprised how
much of "UI" in Emacs cannot be done in a separate thread, mainly=
because the Lisp machine is under such complete control of what the UI
does, and you cannot run several instances of the Lisp machine
simultaneously and asynchronously. 

What about the following idea:
1. Make the current lisp machine be customized which has two profiles:=
    + full featured: as the current running lisp machine= in emacs
    + subset one: without all UI functions
2. Run the full featured one as emacs does now. It acts as the master = lisp machine(for UI only), which behave like the UI thread(process) in the = web browser.
3. Run some subset ones for workers. Workers are started by the master= lisp machine. Workers can send messages to the master machine by calling s= ome APIs. The messages are copied to the master lisp machine, so GCs don=E2= =80=99t need to work across machines.
4. Provide some APIs for them to communicate with each other.

--5e0c166b_697d2d2_4379-- From unknown Wed Jul 30 13:11:05 2025 X-Loop: help-debbugs@gnu.org Subject: bug#38807: [Feature request]: Support lisp workers like web workers. Resent-From: HaiJun Zhang Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 01 Jan 2020 03:59:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 38807 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Eli Zaretskii Cc: 38807@debbugs.gnu.org, dgutov@yandex.ru Received: via spool by 38807-submit@debbugs.gnu.org id=B38807.157785109226275 (code B ref 38807); Wed, 01 Jan 2020 03:59:02 +0000 Received: (at 38807) by debbugs.gnu.org; 1 Jan 2020 03:58:12 +0000 Received: from localhost ([127.0.0.1]:35446 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1imV99-0006pj-Qw for submit@debbugs.gnu.org; Tue, 31 Dec 2019 22:58:12 -0500 Received: from mail-oln040092254029.outbound.protection.outlook.com ([40.92.254.29]:62029 helo=APC01-PU1-obe.outbound.protection.outlook.com) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1imV97-0006pS-07 for 38807@debbugs.gnu.org; Tue, 31 Dec 2019 22:58:10 -0500 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=OsFoMp0uzr1YIJvE8CFrPQI6Kr0fj8Zx2rx45g/A9CcUqpMxcW0JpubAjj+PJsSSHGt14VS5h6fyuW/UgIG+QnYCHdQ+jIJitVH4eb0uKmU1qIb23Bi6yh3wOCdGKLSt47CszcZ3sN9SuWsfrfgwnI67VTRNAU0j4upMw2nnDcw25GELjf7dCUeExE8BrwEDPwhak3usLiFSYw5DTqTG96Pk0Hv0H3JDn0grWWqo7aX+ym5KmdN3vG+P1F45OPWpTGzFQqyUsAR54+gnZXop7mjxBn9QlCTITuxlShCAYVfewkX856HiKty8/8Gm9yGSn7VHH92QAkPEOncm+v8/pA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=510cmJKPw9oUH+ZtT1bX2Ga1qM8k/ZdvUjnq21ryhiw=; b=km6cywuQWA75HiC6RJkw6FgARZSM/uIlnB2hyDFzyYHwoGisJFbOMDq69GXNxSTr8oyxZs4EOpoJ7Meo9Mf3erpcz+De/+E9zR8le8o/bkcEkOLywFJMKaZasWZwMj94R+mjd1MzyU1oHW4FlOpCL4qPw+ZzTVm2VvU9iVBaQ4KhJ5JwFrATSZ7RoyHdjEb0OTY+kyaClAqAGh4lfyJ4PHSqqdEy9ROgeHeixtyXC8VU9IGOyg6ZKsEJGPeKN3g4Kg88TY5nln1Lcges+73QB/hXXhgy3FMT3BgI4Z69OSEDf5Y6xGypiAAOc12dynsvWOPjVl+Bj+/HdVr09Z7d+w== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=outlook.com; dmarc=pass action=none header.from=outlook.com; dkim=pass header.d=outlook.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=outlook.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=510cmJKPw9oUH+ZtT1bX2Ga1qM8k/ZdvUjnq21ryhiw=; b=CS2SQaFfV8OUxuiAK787cjPnBFXSR2b3/2rYqmqEM8OV9jUFBzw+7qNZ8ypsKzoJ2PWSGFD1bay5rK4gPSdIplGPh1gDP1KOyWrPTNC3uOeu7XyxNiaUw173gwOvJQ7thLAzXXC4CejLdI1WdhAS4kFOozjNhs+RSIYn9OxFe8yP7YLWTVrzcVltEr/L3n4CD8vmHGwQTXE6To+CuYphG8hyWqllM4ZAMyT9JnpoGDAZxJDKi7qnwhK13egzDpDp2d/nP8Os0OJAlHiMGnU54lZl2LYaG383uAa71+hmux7zXOW6j9KBAq0/GZqgf4V18RLCRjd9aRBgkoilAaLA+Q== Received: from HK2APC01FT015.eop-APC01.prod.protection.outlook.com (10.152.248.60) by HK2APC01HT058.eop-APC01.prod.protection.outlook.com (10.152.248.248) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2602.11; Wed, 1 Jan 2020 03:58:01 +0000 Received: from SG2PR03MB3611.apcprd03.prod.outlook.com (10.152.248.53) by HK2APC01FT015.mail.protection.outlook.com (10.152.248.167) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2581.11 via Frontend Transport; Wed, 1 Jan 2020 03:58:01 +0000 X-IncomingTopHeaderMarker: OriginalChecksum:184614FC3257DFB6917E4FF252B7479F5B34FF6C8C1AB3352136639774D13B56; UpperCasedChecksum:362EA04FCF3947BF40F5EA14FBCA16862D36DE19327DE46A6B6A12BC225C071A; SizeAsReceived:9014; Count:48 Received: from SG2PR03MB3611.apcprd03.prod.outlook.com ([fe80::65f4:d979:9d3d:1829]) by SG2PR03MB3611.apcprd03.prod.outlook.com ([fe80::65f4:d979:9d3d:1829%7]) with mapi id 15.20.2602.010; Wed, 1 Jan 2020 03:58:01 +0000 Date: Wed, 1 Jan 2020 11:57:52 +0800 From: HaiJun Zhang Message-ID: In-Reply-To: <8336czlucz.fsf@gnu.org> References: <83o8vpn8g1.fsf@gnu.org> <48d683e5-e0ec-2cbf-c8db-ad41cfc553e1@yandex.ru> <835zhxn5jg.fsf@gnu.org> <8336czlucz.fsf@gnu.org> X-Readdle-Message-ID: 39f1e59e-08db-4862-98db-c31c3bcbab06@Spark Content-Type: multipart/alternative; boundary="5e0c18c6_8f8b73f_4379" X-ClientProxiedBy: HK2PR02CA0167.apcprd02.prod.outlook.com (2603:1096:201:1f::27) To SG2PR03MB3611.apcprd03.prod.outlook.com (2603:1096:4:17::11) X-Microsoft-Original-Message-ID: <39f1e59e-08db-4862-98db-c31c3bcbab06@Spark> MIME-Version: 1.0 Received: from [192.168.1.103] (1.193.170.223) by HK2PR02CA0167.apcprd02.prod.outlook.com (2603:1096:201:1f::27) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2581.11 via Frontend Transport; Wed, 1 Jan 2020 03:58:00 +0000 X-Readdle-Message-ID: 39f1e59e-08db-4862-98db-c31c3bcbab06@Spark X-Microsoft-Original-Message-ID: <39f1e59e-08db-4862-98db-c31c3bcbab06@Spark> X-TMN: [UT7mbRMqGGoB7CCb0N7D73WAseHw5zDr] X-MS-PublicTrafficType: Email X-IncomingHeaderCount: 48 X-EOPAttributedMessage: 0 X-MS-Office365-Filtering-Correlation-Id: 1cd19118-4860-4e87-65c1-08d78e6ecb82 X-MS-TrafficTypeDiagnostic: HK2APC01HT058: X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: 0vMI73VYaNF/BI738AxMsHlEZkr4sGas2W2BOm7ft6gw0MHZHgBEMEs/9n6kHsnfx/vVk3T5TtPis8ufCBg0QHoym830aYZsoHTJKIghzB/d6DarIpqJ0RbsuIi1BV+V0W+kn1FR7vdelZ4U4swPadgUR9Ty9NNbjE/PlzDXmlhYdvxZozZ3IIfQO/8i2lxn X-OriginatorOrg: outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 1cd19118-4860-4e87-65c1-08d78e6ecb82 X-MS-Exchange-CrossTenant-OriginalArrivalTime: 01 Jan 2020 03:58:01.0390 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 84df9e7f-e9f6-40af-b435-aaaaaaaaaaaa X-MS-Exchange-CrossTenant-FromEntityHeader: Internet X-MS-Exchange-CrossTenant-RMS-PersistedConsumerOrg: 00000000-0000-0000-0000-000000000000 X-MS-Exchange-Transport-CrossTenantHeadersStamped: HK2APC01HT058 X-Spam-Score: 0.0 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) --5e0c18c6_8f8b73f_4379 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline OK. I got it. One example is lsp-mode for dart language. One completion result is 10000= lines. And emacs doesn=E2=80=99t respond for about 3=7E4s. This experien= ce kept me away from lsp-mode for half a year. =E5=9C=A8 2020=E5=B9=B41=E6=9C=881=E6=97=A5 +0800 AM11:37=EF=BC=8CEli Zar= etskii =EF=BC=8C=E5=86=99=E9=81=93=EF=BC=9A > > Date: Wed, 1 Jan 2020 11:20:25 +0800 > > =46rom: HaiJun Zhang > > Cc: 38807=40debbugs.gnu.org > > > > =E5=9C=A8 2019=E5=B9=B412=E6=9C=8831=E6=97=A5 +0800 AM12:26=EF=BC=8CE= li Zaretskii =EF=BC=8C=E5=86=99=E9=81=93=EF=BC=9A > > > > This reminds me of an old joke: when a shop owner was approached by a= n > > employee asking to work 5 days a week, the owner answered: let's star= t > > with one, and then gradually arrive at 5. > > > > More to the point, I did say =E2=80=9Cyou could start=22, didn't I=3F= > > > > I can=E2=80=99t understand this. Can you explain it=3F > > Whatever application you have in mind, try implementing it using what > we already have regarding Lisp threads, and see if the limitations > Michael mentioned are really so grave. It could be that for some > applications what we have is good enough. And if not, you will > collect some experience and understand better what additional features > do you need. --5e0c18c6_8f8b73f_4379 Content-Type: text/html; charset="utf-8" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline
OK. I got it.
One example is lsp-mode for dart language. One completion= result is 10000 lines. And emacs doesn=E2=80=99t respond for about 3~4s. T= his experience kept me away from lsp-mode for half a year.
=E5=9C=A8 2020=E5=B9=B41=E6=9C=881=E6=97= =A5 +0800 AM11:37=EF=BC=8CEli Zaretskii <eliz@gnu.org>=EF=BC=8C= =E5=86=99=E9=81=93=EF=BC=9A
Date: Wed, 1 Jan 2020 = 11:20:25 +0800
From: HaiJun Zhang <netjune@outlook.com>
Cc: 38807@debbugs.gnu.org

=E5=9C=A8 2019=E5=B9=B412=E6=9C=8831=E6=97=A5 +0800 AM12:26=EF=BC=8CEli= Zaretskii <eliz@gnu.org>=EF=BC=8C=E5=86=99=E9=81=93=EF=BC=9A

This reminds me of an old joke: when a shop owner was approached by an
employee asking to work 5 days a week, the owner answered: let's start
with one, and then gradually arrive at 5.

More to the point, I did say =E2=80=9Cyou could start", didn't I?

I can=E2=80=99t understand this. Can you explain it?

Whatever application you have in mind, try implementing it using what
we already have regarding Lisp threads, and see if the limitations
Michael mentioned are really so grave. It could be that for some
applications what we have is good enough. And if not, you will
collect some experience and understand better what additional features
do you need.
--5e0c18c6_8f8b73f_4379-- From unknown Wed Jul 30 13:11:05 2025 X-Loop: help-debbugs@gnu.org Subject: bug#38807: [Feature request]: Support lisp workers like web workers. Resent-From: HaiJun Zhang Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 01 Jan 2020 04:03:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 38807 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Eli Zaretskii Cc: 38807@debbugs.gnu.org, dgutov@yandex.ru Received: via spool by 38807-submit@debbugs.gnu.org id=B38807.157785137726897 (code B ref 38807); Wed, 01 Jan 2020 04:03:01 +0000 Received: (at 38807) by debbugs.gnu.org; 1 Jan 2020 04:02:57 +0000 Received: from localhost ([127.0.0.1]:35455 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1imVDk-0006zk-Pe for submit@debbugs.gnu.org; Tue, 31 Dec 2019 23:02:57 -0500 Received: from mail-oln040092255095.outbound.protection.outlook.com ([40.92.255.95]:6172 helo=APC01-HK2-obe.outbound.protection.outlook.com) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1imVDi-0006zV-Nh for 38807@debbugs.gnu.org; Tue, 31 Dec 2019 23:02:55 -0500 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=hzz0kMZfvjmnknGj70BKmvzRYUYg3DnrdU+RRKNTsHsqQzrpC9xhFnow2yiOxBHizCzcUvY0vLVwGNdviWBaIJfJGQZt9krT8MZsDNhCu9ykZ00Tm2Rw4akNIz43yr2X8nZ8koWx4LTCdyKhfb6kFbHKHZ3guqDFX3q1+ASFx8k8yLsPtfcsDflBTo/9a91tHor59Iyd8AIzWwpswxpbTbmmwLrS7jlWRheNQmx6E7HnDZkGquo7OxiCYdVX9srZG59YMHUxkqigVTML93ztU/RzLyuQj2QTTKn0Os6Gk4r4SK8sFN2rnM/6cA8D6E748bxqhaDFxZXE2KFroKU2tA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=zfqFOw9Hcbh2j0Ks45O0Ina+Z67ouYj3T0N7NFis59Y=; b=Z/6+11LYOabUv1ElBmaDBLk0kZ73yAaAqoqHNId1LzXO61Oh5N2Fy4FHkL+3lKcWbX408uDqJEIYk5VlGIsuTmeaFsacRVNyWF/4D+V17DegBVcvXL+vHamh2Lpq1E4mqQs55Nc9nG4T1KNDFsVmznd+NlLk8mRjwE4Zn7DgCWQ2hyFCxuhe+9/1F18y06WjGl21L9YCZ4PunW9aYtkVtvGuz+C8U7C1n5Z06n7ofuPbtH0gMZiibhJ3ehsbMgz6ixZDM0vt6JiMViLwtVtC/d1+qkP4iewGVnDkXqVM1uI5n3zlAx9hS/FC0DvNkGBISUibxhOTwyWD0zttWBUQgg== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=outlook.com; dmarc=pass action=none header.from=outlook.com; dkim=pass header.d=outlook.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=outlook.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=zfqFOw9Hcbh2j0Ks45O0Ina+Z67ouYj3T0N7NFis59Y=; b=AJWGYvZA8bOOSOmSwCV3CLzwKRwkI0BanUoeTZUazqgfRgGsiCQKF2ci0YuKbME2PxUGzak8AeDXaeDl8RCQTRnC27t2Effa3DT6w/Qedyzbx3jMOcu5ANnYCcfeXWo19SK0rTvhmn22EZq/IXN90tk3FJc9HOpi/iOIOkE0yeR60xCbt1Mdf5WUh++aOzV3aemWFbu2ow4Uzd72rfqe4VHCDC9sbKnqWvumZfA4MmOULXJJWx5Vx7+1uGn3LYFZhOfVQz95zaipMKoPnrbacfSi/15RnaEQ/d1uwKuHJkGnz04smdps8U9mCtxPHFMtNV3RgMDi3qc2TVuaIbN6Cw== Received: from PU1APC01FT047.eop-APC01.prod.protection.outlook.com (10.152.252.53) by PU1APC01HT082.eop-APC01.prod.protection.outlook.com (10.152.253.54) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2581.11; Wed, 1 Jan 2020 04:02:46 +0000 Received: from SG2PR03MB3611.apcprd03.prod.outlook.com (10.152.252.54) by PU1APC01FT047.mail.protection.outlook.com (10.152.253.23) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2581.11 via Frontend Transport; Wed, 1 Jan 2020 04:02:46 +0000 X-IncomingTopHeaderMarker: OriginalChecksum:83653ABC12F8E2029C1B4F5542F8E997862081F5BBB3C95C1761EDAE875AB63C; UpperCasedChecksum:FBFC04DF27040D065EEABD50FD953FAF515711E8AEB8799AEC20938D909BFD56; SizeAsReceived:9089; Count:48 Received: from SG2PR03MB3611.apcprd03.prod.outlook.com ([fe80::65f4:d979:9d3d:1829]) by SG2PR03MB3611.apcprd03.prod.outlook.com ([fe80::65f4:d979:9d3d:1829%7]) with mapi id 15.20.2602.010; Wed, 1 Jan 2020 04:02:46 +0000 Date: Wed, 1 Jan 2020 12:02:35 +0800 From: HaiJun Zhang Message-ID: In-Reply-To: <39f1e59e-08db-4862-98db-c31c3bcbab06@Spark> References: <83o8vpn8g1.fsf@gnu.org> <48d683e5-e0ec-2cbf-c8db-ad41cfc553e1@yandex.ru> <835zhxn5jg.fsf@gnu.org> <8336czlucz.fsf@gnu.org> <39f1e59e-08db-4862-98db-c31c3bcbab06@Spark> X-Readdle-Message-ID: 9452e46a-5c62-437e-babc-f96779ef407a@Spark Content-Type: multipart/alternative; boundary="5e0c19e1_20f4bdad_4379" X-ClientProxiedBy: HK2PR04CA0062.apcprd04.prod.outlook.com (2603:1096:202:14::30) To SG2PR03MB3611.apcprd03.prod.outlook.com (2603:1096:4:17::11) X-Microsoft-Original-Message-ID: <9452e46a-5c62-437e-babc-f96779ef407a@Spark> MIME-Version: 1.0 Received: from [192.168.1.103] (1.193.170.223) by HK2PR04CA0062.apcprd04.prod.outlook.com (2603:1096:202:14::30) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2602.10 via Frontend Transport; Wed, 1 Jan 2020 04:02:45 +0000 X-Readdle-Message-ID: 9452e46a-5c62-437e-babc-f96779ef407a@Spark X-Microsoft-Original-Message-ID: <9452e46a-5c62-437e-babc-f96779ef407a@Spark> X-TMN: [DW0LlUEJ16j1nzyQHCTnWHb0ra651Ztj] X-MS-PublicTrafficType: Email X-IncomingHeaderCount: 48 X-EOPAttributedMessage: 0 X-MS-Office365-Filtering-Correlation-Id: 9b31e73c-025e-4a7e-2b06-08d78e6f7575 X-MS-TrafficTypeDiagnostic: PU1APC01HT082: X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: GIrqSYCvlH2BQwPmsTnGDUm27izAelGoyeAqIHl+c/SG7LvLMAZabj4c59owvJkPcdZyuvRCYwH5mgda3mzz9MexVVIdsyvVk7T4fWyu1GvmeNEf+rqJqKUpyRTah7Mka6p4KRXJeEvsCCWZo+P+q7uX4frP3rySRcY8k/mSJ/WjtiJsArYn0Gm2FdVb88VT X-OriginatorOrg: outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 9b31e73c-025e-4a7e-2b06-08d78e6f7575 X-MS-Exchange-CrossTenant-OriginalArrivalTime: 01 Jan 2020 04:02:46.1900 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 84df9e7f-e9f6-40af-b435-aaaaaaaaaaaa X-MS-Exchange-CrossTenant-FromEntityHeader: Internet X-MS-Exchange-CrossTenant-RMS-PersistedConsumerOrg: 00000000-0000-0000-0000-000000000000 X-MS-Exchange-Transport-CrossTenantHeadersStamped: PU1APC01HT082 X-Spam-Score: 0.0 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) --5e0c19e1_20f4bdad_4379 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline While with the same dart project, the VSCode has good user responsiveness= . As far as I known, the extensions of VSCode runs in separate process. =E5=9C=A8 2020=E5=B9=B41=E6=9C=881=E6=97=A5 +0800 AM11:57=EF=BC=8CHaiJun = Zhang =EF=BC=8C=E5=86=99=E9=81=93=EF=BC=9A > OK. I got it. > One example is lsp-mode for dart language. One completion result is 100= 00 lines. And emacs doesn=E2=80=99t respond for about 3=7E4s. This experi= ence kept me away from lsp-mode for half a year. > =E5=9C=A8 2020=E5=B9=B41=E6=9C=881=E6=97=A5 +0800 AM11:37=EF=BC=8CEli Z= aretskii =EF=BC=8C=E5=86=99=E9=81=93=EF=BC=9A > > > Date: Wed, 1 Jan 2020 11:20:25 +0800 > > > =46rom: HaiJun Zhang > > > Cc: 38807=40debbugs.gnu.org > > > > > > =E5=9C=A8 2019=E5=B9=B412=E6=9C=8831=E6=97=A5 +0800 AM12:26=EF=BC=8C= Eli Zaretskii =EF=BC=8C=E5=86=99=E9=81=93=EF=BC=9A > > > > > > This reminds me of an old joke: when a shop owner was approached by= an > > > employee asking to work 5 days a week, the owner answered: let's st= art > > > with one, and then gradually arrive at 5. > > > > > > More to the point, I did say =E2=80=9Cyou could start=22, didn't I=3F= > > > > > > I can=E2=80=99t understand this. Can you explain it=3F > > > > Whatever application you have in mind, try implementing it using what= > > we already have regarding Lisp threads, and see if the limitations > > Michael mentioned are really so grave. It could be that for some > > applications what we have is good enough. And if not, you will > > collect some experience and understand better what additional feature= s > > do you need. --5e0c19e1_20f4bdad_4379 Content-Type: text/html; charset="utf-8" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline
While with the same dart project, the VSCode has good use= r responsiveness. As far as I known, the extensions of VSCode runs in separ= ate process.
=E5=9C=A8 2020=E5=B9=B41=E6=9C=881=E6=97= =A5 +0800 AM11:57=EF=BC=8CHaiJun Zhang <netjune@outlook.com>=EF= =BC=8C=E5=86=99=E9=81=93=EF=BC=9A
OK. I got it.
One example is lsp-mode for dart language. One completion= result is 10000 lines. And emacs doesn=E2=80=99t respond for about 3~4s. T= his experience kept me away from lsp-mode for half a year.
=E5=9C=A8 2020=E5=B9=B41=E6=9C=881=E6=97= =A5 +0800 AM11:37=EF=BC=8CEli Zaretskii <eliz@gnu.org>=EF=BC=8C= =E5=86=99=E9=81=93=EF=BC=9A
Date: Wed, 1 Jan 2020 = 11:20:25 +0800
From: HaiJun Zhang <netjune@outlook.com>
Cc: 38807@debbugs.gnu.org

=E5=9C=A8 2019=E5=B9=B412=E6=9C=8831=E6=97=A5 +0800 AM12:26=EF=BC=8CEli= Zaretskii <eliz@gnu.org>=EF=BC=8C=E5=86=99=E9=81=93=EF=BC=9A

This reminds me of an old joke: when a shop owner was approached by an
employee asking to work 5 days a week, the owner answered: let's start
with one, and then gradually arrive at 5.

More to the point, I did say =E2=80=9Cyou could start", didn't I?

I can=E2=80=99t understand this. Can you explain it?

Whatever application you have in mind, try implementing it using what
we already have regarding Lisp threads, and see if the limitations
Michael mentioned are really so grave. It could be that for some
applications what we have is good enough. And if not, you will
collect some experience and understand better what additional features
do you need.
--5e0c19e1_20f4bdad_4379-- From unknown Wed Jul 30 13:11:05 2025 X-Loop: help-debbugs@gnu.org Subject: bug#38807: [Feature request]: Support lisp workers like web workers. Resent-From: Michael Albinus Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 01 Jan 2020 09:15:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 38807 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: HaiJun Zhang Cc: Eli Zaretskii , 38807@debbugs.gnu.org Received: via spool by 38807-submit@debbugs.gnu.org id=B38807.157787009415184 (code B ref 38807); Wed, 01 Jan 2020 09:15:02 +0000 Received: (at 38807) by debbugs.gnu.org; 1 Jan 2020 09:14:54 +0000 Received: from localhost ([127.0.0.1]:35617 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ima5e-0003wq-Ku for submit@debbugs.gnu.org; Wed, 01 Jan 2020 04:14:54 -0500 Received: from mout.gmx.net ([212.227.15.18]:49485) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ima5b-0003wc-VV for 38807@debbugs.gnu.org; Wed, 01 Jan 2020 04:14:53 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1577870083; bh=5frByy/K8kl8UCTrb7eAOI/KSE0eDJ7jSVMqBPJnuvk=; h=X-UI-Sender-Class:From:To:Cc:Subject:References:Date:In-Reply-To; b=DpcGmmZBy6Ik6UX+CDEgjW+O6alzP2lHIYRAy2H82BXaIfPoiambZQNUu1tOpwpHc 5WF9SjmMgis9sIxPFXndodeks22j7h8SEGolA+Fnotsc95egvw/ped4AkH3qMzsGyj DR6NtsEDUE2juE1hTI/QTY0nswJJ1D3jT1araMlo= X-UI-Sender-Class: 01bb95c1-4bf8-414a-932a-4f6e2808ef9c Received: from detlef.gmx.de ([212.86.59.161]) by mail.gmx.com (mrgmx004 [212.227.17.190]) with ESMTPSA (Nemesis) id 1MS3mz-1jBVVI2cn5-00TTom; Wed, 01 Jan 2020 10:14:43 +0100 From: Michael Albinus References: <83o8vpn8g1.fsf@gnu.org> <87mub9u0ld.fsf@gmx.de> Date: Wed, 01 Jan 2020 10:14:42 +0100 In-Reply-To: (HaiJun Zhang's message of "Wed, 1 Jan 2020 11:16:13 +0800") Message-ID: <878smrtu65.fsf@gmx.de> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Provags-ID: V03:K1:s3jN35efVEk7BzC27aDiW6Z4Kf/5PrTC77eUpYpjtqWv6O9YkAX +oxbQpjKKupE9DlY/uVvTga0+LHc4FhWO9rijyqOjnS5i1MTsU7txi+GBrlb/rMYclZCdmI pV6Rr701KAqwOg9XMORDzwMqEx47YH7cK/kNBWflzuZwzysTY9dvZ63n/a3oMPmZZrrTCKq c5NzynYbl0DK+71+N8Lcw== X-Spam-Flag: NO X-UI-Out-Filterresults: notjunk:1;V03:K0:vxTTWhv1tFk=:8yn9gWoQuWuFbJDLDbzQP3 SSn2yvsD//LoZ+dx2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Fj+fnkMLWcsDfL+vWVVvbfTTBzlXK9wrO8gZiao75ECC7hk2P0s2xFijfKmDCIe/9JJuoe5bP sXRuENR0lJrISSOEg1qdM8RX/5Bl7BST7AfvgpU13XaSvSl8xQj+d8QrTCx+LZIqOs0uNqjkR Mp5SVk5ft5loTAqT7yn9Hgh4CVsDLI8bp62Y0UxfDJuaiHYluAh1FslyA3F4= X-Spam-Score: 0.0 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) HaiJun Zhang writes: > The point seems to be that there is a dedicated UI thread. That we > don't > have (yet) in Emacs, and I like this idea. > > We can even keep all in emacs currently as the =E2=80=9CUI thread=E2=80= =9Dand run > another lisp machine for a worker.=20 I'm not expecting to get a UI thread with all glories it is specified for web workers. I would already be happy if we could find a solution for supporting user input in a threaded package, as it is discussed in bug#25214 and bug#32426. Best regards, Michael. From unknown Wed Jul 30 13:11:05 2025 X-Loop: help-debbugs@gnu.org Subject: bug#38807: [Feature request]: Support lisp workers like web workers. References: In-Reply-To: Resent-From: arthur miller Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 01 Jan 2020 14:53:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 38807 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: HaiJun Zhang , Eli Zaretskii , Michael Albinus Cc: "38807@debbugs.gnu.org" <38807@debbugs.gnu.org> Received: via spool by 38807-submit@debbugs.gnu.org id=B38807.157789035129666 (code B ref 38807); Wed, 01 Jan 2020 14:53:01 +0000 Received: (at 38807) by debbugs.gnu.org; 1 Jan 2020 14:52:31 +0000 Received: from localhost ([127.0.0.1]:36365 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1imfMN-0007iQ-HN for submit@debbugs.gnu.org; Wed, 01 Jan 2020 09:52:31 -0500 Received: from mail-oln040092067045.outbound.protection.outlook.com ([40.92.67.45]:3369 helo=EUR02-AM5-obe.outbound.protection.outlook.com) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1imfMK-0007i7-R4 for 38807@debbugs.gnu.org; Wed, 01 Jan 2020 09:52:30 -0500 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=PPS8jfVcAEEEh31jOut3WMzFikcYu6n5DmX48pPNuPYA0lKMLJYqByVdcBDr7cZoXaZpRehWZSxoJZJ0MFcBHO2X8Mm+eMyBXrVpZks5vLxj7gfmPq1RvjfLmBtlNm5UpLsdd1GhMfHJcr5kP8sndXRSzRg2+YFoQTcdo7zZSVn73OwhawdULSO6gxQ1h0rf+1+vRyu7ieGpkApjfUPyh4n2R4dKXigVKE5o0SoF885acoSvaBinqG6m7MjwWguEKS/RwdgCznSutLg2pGzmA591iKDT3aXKY1dfUmzIn5jimYD8rlMYxg5E4d3i/wbFLVrcaX+u27jNZzdqy1tFiA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=47s797ss8CCH2IMlZiSA6DhnReTKH51SbVNm9lFV+qY=; b=UoB5cFU6ZmQJxNiGO45NoKcWuuCZarP/WrD4+z+RYcRB/j4xc1VC3hVqsloujbhrZe9FG4x+P57r3b7jf/aIgZ9XaYrzgKW6mH+8euojvVjDuc9Ki2403D0JCMRSffKJ8PXxmQAJlM6BwB0CYZXEF5ITpzKWHQpPtaIen82zwxIj5yyIVblBZ9k+9QcHSC/ZxBlV/6Zj4wP8/jYyaC2Tu0If0Wtw49FR2uzqsdr9VR68ReullQ7SrUjLsnP7hokgPQEXu2aEsn2P5fgL1XTyeM3O65+Q0yZYVWYsdrJBiSM8nOqGuiFtmvNcXu0XDvsq3hFs+L0Vki3CEB+J+3/iOQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=none; dmarc=none; dkim=none; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=live.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=47s797ss8CCH2IMlZiSA6DhnReTKH51SbVNm9lFV+qY=; b=gC9HyVuBnlXc3Ads20k2j/vwVec91qSeLzJjuPc/FrO+fy8tOjT0JVWZKo1wI1BIQ7DsLw9WC9g8JfVVWBg08sEoG8VX27ci51B+XHCm65SBjNfdhoU95IorQqtb2HBWPrEX9nH+5zUBB6CfHH2HSrQdQPG6QLALEqND3K7upCclvfG3o0pGPhc7YUE5rG6tapLexq6CDF8nye5jLzs6jIBKJBpvCZGzpNiap4dUt1Ix5Fdsxpg8sbH8gZ4dV1aNyqlVa5shuqnyV072hUpVCjOr1oRyDUPZilZL23HAngEDhhKHV/OF4EZJqocozLvsFHLh0fpShu/u6lM/mJXZdw== Received: from AM5EUR02FT025.eop-EUR02.prod.protection.outlook.com (10.152.8.51) by AM5EUR02HT054.eop-EUR02.prod.protection.outlook.com (10.152.9.218) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2602.11; Wed, 1 Jan 2020 14:52:22 +0000 Received: from VI1P194MB0429.EURP194.PROD.OUTLOOK.COM (10.152.8.57) by AM5EUR02FT025.mail.protection.outlook.com (10.152.8.110) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2602.11 via Frontend Transport; Wed, 1 Jan 2020 14:52:22 +0000 Received: from VI1P194MB0429.EURP194.PROD.OUTLOOK.COM ([fe80::35f2:9ea2:efd6:1d46]) by VI1P194MB0429.EURP194.PROD.OUTLOOK.COM ([fe80::35f2:9ea2:efd6:1d46%5]) with mapi id 15.20.2602.012; Wed, 1 Jan 2020 14:52:22 +0000 From: arthur miller Thread-Topic: bug#38807: [Feature request]: Support lisp workers like web workers. Thread-Index: AQHVwLMSkHc7M0EltEWY5slrytb2ZA== Date: Wed, 1 Jan 2020 14:52:22 +0000 Message-ID: Accept-Language: sv-SE, en-US Content-Language: sv-SE X-MS-Has-Attach: X-MS-TNEF-Correlator: x-incomingtopheadermarker: OriginalChecksum:1596FD6CFEDFA3E4D4CF5D11D0932EC93C22178847C9FAB05A4F2D604267E508; UpperCasedChecksum:B55FFA727E4556463204D81B66AA72CA8540A83BCCE188659B7AFB171BC80403; SizeAsReceived:6897; Count:44 x-ms-exchange-messagesentrepresentingtype: 1 x-tmn: [5qPf9+oMRyv27BBcYPz8fBdrNIOo9vDB] x-ms-publictraffictype: Email x-incomingheadercount: 44 x-eopattributedmessage: 0 x-ms-office365-filtering-correlation-id: f41291b2-5ba5-4c02-b0ec-08d78eca3522 x-ms-exchange-slblob-mailprops: gjx25WM8ZNUne+MRX9HTcayCQAGg4LiCYbIiR1d8ljuNmi7VR97XcVJQn3AUG4ZeCczVVyqWEkoMCVGq4+ECHrNZW01Q1jW/+kphYFX4tO5IUrIkrpGyJmoWzEsfWqsCvLkKv2j2RYjXoXvpbq80WqGNcR1XVArurqfkGjGcdKORe0xUU7phm5hlnxlvpDbiNnPZwYK/SoulPnQvvbrMD7cqbNxBFCjdOJrZIyqblMbTkdwo8E719iJxpNSnqzOqrV+efGA2idI/jqzmlV3BHHSa5n6cMjiXeCowwFLozhjjX/EcDwkE5vGvocGIHUR/hxlpB+4trEJBp2Ygwk7jyrlutIv9yS9CjBxrdsTDmkpmS/VN+cGtHwfHLbzMdEuD43tOWGObMlPQnSUbH5uEzm/TeBbgmSS46VOkGNnDJgt7GESlJF7CerGgWHcoKLw0eYxqP9WaFG6MbJ6GAm0UHbweQzpUxDE1N3f9ytYS8rlhETQJRGaIZPX325YIdQhAUJlFC1iKn+wxWn27a5QKoNYrBd8JN373Txgu65YA1+NPsQKE8FO26MMp3LsTAbflkJAx188cRJ4VdUru5zidj7wi2uAP8Nbaf02ok1AkoXUQcN1w0oUysXPO/LpuCIu4mjV4SnoX3jjV7FxWatp6SLlzFsy34b9q1Gj1bX1+Fx3CqP0Y7/KxIFM4roH9BqtOcWCWqIJ0ToZ5dFWX3wH2oGJ0aD6ueuElMlAwUFhNzm8= x-ms-traffictypediagnostic: AM5EUR02HT054: x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: 3832hHZY6GoQu/i7xgCh28dXMJ7x35b3xKz6/N4SSvK7I0/HM1vFNqYf2qSPpy8ZlqfGC8AfO6zpqUeH260sQjYNZlXIZlV8t/LAKVe0sd+pfmqX2g21X8sSEokzVydjd6ZBKxj2snIIwrfZIkewJyoTXKgQRtvmeSpC9zNef7AykwSZwwLocOTmMZylRwM6 x-ms-exchange-transport-forked: True Content-Type: multipart/alternative; boundary="_000_VI1P194MB042964C82F0DAB525CCAFF7296210VI1P194MB0429EURP_" MIME-Version: 1.0 X-OriginatorOrg: live.com X-MS-Exchange-CrossTenant-RMS-PersistedConsumerOrg: 00000000-0000-0000-0000-000000000000 X-MS-Exchange-CrossTenant-Network-Message-Id: f41291b2-5ba5-4c02-b0ec-08d78eca3522 X-MS-Exchange-CrossTenant-rms-persistedconsumerorg: 00000000-0000-0000-0000-000000000000 X-MS-Exchange-CrossTenant-originalarrivaltime: 01 Jan 2020 14:52:22.1748 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Internet X-MS-Exchange-CrossTenant-id: 84df9e7f-e9f6-40af-b435-aaaaaaaaaaaa X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM5EUR02HT054 X-Spam-Score: 0.0 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) --_000_VI1P194MB042964C82F0DAB525CCAFF7296210VI1P194MB0429EURP_ Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: base64 DQoNCi0tLS0tLS0tIE9yaWdpbmFsbWVkZGVsYW5kZSAtLS0tLS0tLQ0KRnLDpW46IEhhaUp1biBa aGFuZyA8bmV0anVuZUBvdXRsb29rLmNvbT4NCkRhdHVtOiAyMDIwLTAxLTAxIDA0OjE3IChHTVQr MDE6MDApDQpUaWxsOiBFbGkgWmFyZXRza2lpIDxlbGl6QGdudS5vcmc+LCBNaWNoYWVsIEFsYmlu dXMgPG1pY2hhZWwuYWxiaW51c0BnbXguZGU+DQpLb3BpYTogMzg4MDdAZGViYnVncy5nbnUub3Jn DQrDhG1uZTogYnVnIzM4ODA3OiBbRmVhdHVyZSByZXF1ZXN0XTogU3VwcG9ydCBsaXNwIHdvcmtl cnMgbGlrZSB3ZWIgd29ya2Vycy4NCg0K5ZyoIDIwMTnlubQxMuaciDMx5pelICswODAwIEFNMjoz Me+8jE1pY2hhZWwgQWxiaW51cyA8bWljaGFlbC5hbGJpbnVzQGdteC5kZT7vvIzlhpnpgZPvvJoN Cg0KVGhlIHBvaW50IHNlZW1zIHRvIGJlIHRoYXQgdGhlcmUgaXMgYSBkZWRpY2F0ZWQgVUkgdGhy ZWFkLiBUaGF0IHdlIGRvbid0DQpoYXZlICh5ZXQpIGluIEVtYWNzLCBhbmQgSSBsaWtlIHRoaXMg aWRlYS4NCg0KDQo+IFdlIGNhbiBldmVuIGtlZXAgYWxsIGluIGVtYWNzIGN1cnJlbnRseSBhcw0K PiB0aGUg4oCcVUkgdGhyZWFk4oCdYW5kIHJ1biBhbm90aGVyIGxpc3AgbWFjaGluZSA+IGZvciBh IHdvcmtlci4NCg0KSXNuJ3QgZW1hc2Mtc2VydmVyL2VtYWNzY2xpZW50IGFscmVhZHkgYWxyZWFk eSB0aGF0Pw0K --_000_VI1P194MB042964C82F0DAB525CCAFF7296210VI1P194MB0429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X-Loop: help-debbugs@gnu.org Subject: bug#38807: [Feature request]: Support lisp workers like web workers. Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 01 Jan 2020 15:33:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 38807 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: HaiJun Zhang Cc: 38807@debbugs.gnu.org, dgutov@yandex.ru Received: via spool by 38807-submit@debbugs.gnu.org id=B38807.15778927541916 (code B ref 38807); Wed, 01 Jan 2020 15:33:02 +0000 Received: (at 38807) by debbugs.gnu.org; 1 Jan 2020 15:32:34 +0000 Received: from localhost ([127.0.0.1]:37388 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1imfz5-0000Un-1e for submit@debbugs.gnu.org; Wed, 01 Jan 2020 10:32:34 -0500 Received: from eggs.gnu.org ([209.51.188.92]:39745) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1imfz3-0000UZ-SB for 38807@debbugs.gnu.org; Wed, 01 Jan 2020 10:32:30 -0500 Received: from fencepost.gnu.org ([2001:470:142:3::e]:37499) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1imfyy-00073f-7Q; Wed, 01 Jan 2020 10:32:24 -0500 Received: from [176.228.60.248] (port=1323 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1imfyx-0008V7-IC; Wed, 01 Jan 2020 10:32:23 -0500 Date: Wed, 01 Jan 2020 17:32:37 +0200 Message-Id: <83y2urjip6.fsf@gnu.org> From: Eli Zaretskii In-reply-to: (message from HaiJun Zhang on Wed, 1 Jan 2020 12:02:35 +0800) References: <83o8vpn8g1.fsf@gnu.org> <48d683e5-e0ec-2cbf-c8db-ad41cfc553e1@yandex.ru> <835zhxn5jg.fsf@gnu.org> <8336czlucz.fsf@gnu.org> <39f1e59e-08db-4862-98db-c31c3bcbab06@Spark> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Spam-Score: -2.3 (--) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) > Date: Wed, 1 Jan 2020 12:02:35 +0800 > From: HaiJun Zhang > Cc: dgutov@yandex.ru, 38807@debbugs.gnu.org > > While with the same dart project, the VSCode has good user responsiveness. As far as I known, the > extensions of VSCode runs in separate process. Can you even remotely compare the degree of control the VSCode extension language can have on the UI, with what Emacs gives you? From unknown Wed Jul 30 13:11:05 2025 X-Loop: help-debbugs@gnu.org Subject: bug#38807: [Feature request]: Support lisp workers like web workers. Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 01 Jan 2020 16:22:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 38807 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: HaiJun Zhang Cc: 38807@debbugs.gnu.org, michael.albinus@gmx.de Received: via spool by 38807-submit@debbugs.gnu.org id=B38807.15778956726724 (code B ref 38807); Wed, 01 Jan 2020 16:22:02 +0000 Received: (at 38807) by debbugs.gnu.org; 1 Jan 2020 16:21:12 +0000 Received: from localhost ([127.0.0.1]:37434 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1imgkC-0001kO-Gb for submit@debbugs.gnu.org; Wed, 01 Jan 2020 11:21:12 -0500 Received: from eggs.gnu.org ([209.51.188.92]:33851) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1imgkA-0001k6-6Q for 38807@debbugs.gnu.org; Wed, 01 Jan 2020 11:21:11 -0500 Received: from fencepost.gnu.org ([2001:470:142:3::e]:37994) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1imgk4-0001rv-50; Wed, 01 Jan 2020 11:21:04 -0500 Received: from [176.228.60.248] (port=4323 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1imgk3-0000KJ-Ga; Wed, 01 Jan 2020 11:21:03 -0500 Date: Wed, 01 Jan 2020 18:21:16 +0200 Message-Id: <83r20jjgg3.fsf@gnu.org> From: Eli Zaretskii In-reply-to: (message from HaiJun Zhang on Wed, 1 Jan 2020 10:59:31 +0800) References: <83o8vpn8g1.fsf@gnu.org> <87mub9u0ld.fsf@gmx.de> <831rslmxih.fsf@gnu.org> <83lfqslafm.fsf@gnu.org> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Spam-Score: -2.3 (--) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) > Date: Wed, 1 Jan 2020 10:59:31 +0800 > From: HaiJun Zhang > Cc: michael.albinus@gmx.de, 38807@debbugs.gnu.org > > Your idea in fact means to have several isolated Lisp machines in the > same process. But how can we do something like that without a very > radical redesign of Emacs, when so many things in Emacs are implicitly > part of the global state? Buffers, global variables, windows, > frames--all those are global resources, and every thread will want to > access them. Emacs was not designed to allow that. > > All those global resources are not accessible by workers. Workers can only access network, file system and > other non-global resources. They only do the following things: > 1. retrieve content from network, parse the data, and send the result(lisp data) to the UI thread to present it > 2. communicate with subprocesses, parse the data from subprocesses, and send the result to the UI thread > 3. do file indexing and send the index result to the UI thread > 4. do other heavy work like mathematicl calculation and deep learning, send the result to the UI thread Then these threads cannot really run Lisp at all, nor even directly affect Lisp data. So in effect you want to be able to run threads that don't enter the Lisp interpreter, nor modify any Lisp data. We already have that available: you can write a module which Emacs can load, and that module can then start any number of threads doing any calculations or network communications you want. See emacs-module.h. > The disadvantage is that it is cumbersome to share data between the > two instances of Emacs, and large amounts of data will make that > inefficient. > > We may design an IPC for their communication. For some data structures, yes. But buffer text and long strings are problematic, because the text can be very large. From unknown Wed Jul 30 13:11:05 2025 X-Loop: help-debbugs@gnu.org Subject: bug#38807: [Feature request]: Support lisp workers like web workers. Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 01 Jan 2020 16:24:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 38807 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: HaiJun Zhang Cc: 38807@debbugs.gnu.org, michael.albinus@gmx.de, arthur.miller@live.com Received: via spool by 38807-submit@debbugs.gnu.org id=B38807.15778958037027 (code B ref 38807); Wed, 01 Jan 2020 16:24:01 +0000 Received: (at 38807) by debbugs.gnu.org; 1 Jan 2020 16:23:23 +0000 Received: from localhost ([127.0.0.1]:37450 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1imgmJ-0001pH-H8 for submit@debbugs.gnu.org; Wed, 01 Jan 2020 11:23:23 -0500 Received: from eggs.gnu.org ([209.51.188.92]:36801) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1imgmH-0001p1-9H for 38807@debbugs.gnu.org; Wed, 01 Jan 2020 11:23:22 -0500 Received: from fencepost.gnu.org ([2001:470:142:3::e]:38040) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1imgmB-0007SM-MB; Wed, 01 Jan 2020 11:23:15 -0500 Received: from [176.228.60.248] (port=4457 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1imgmB-0000Vc-1D; Wed, 01 Jan 2020 11:23:15 -0500 Date: Wed, 01 Jan 2020 18:23:29 +0200 Message-Id: <83png3jgce.fsf@gnu.org> From: Eli Zaretskii In-reply-to: (message from HaiJun Zhang on Wed, 1 Jan 2020 11:47:49 +0800) References: <83o8vpn8g1.fsf@gnu.org> <87mub9u0ld.fsf@gmx.de> <831rslmxih.fsf@gnu.org> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Spam-Score: -2.3 (--) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) > Date: Wed, 1 Jan 2020 11:47:49 +0800 > From: HaiJun Zhang > Cc: "38807@debbugs.gnu.org" <38807@debbugs.gnu.org> > > My understanding of the display flow: > 1. an event comes which causes redisplay More often than not, it is not an event, but a command that changes Lisp data (buffer text, overlays, text properties, position of point, new or deleted windows, etc.). > 2. the display engine prepares the glyph matrix > 3. convert the glyph matrix to bitmap and display it > > I think lots of work are in 2. Actually, 3 is also a lot of work. From unknown Wed Jul 30 13:11:05 2025 X-Loop: help-debbugs@gnu.org Subject: bug#38807: [Feature request]: Support lisp workers like web workers. Resent-From: HaiJun Zhang Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 03 Jan 2020 01:51:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 38807 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Eli Zaretskii , Michael Albinus , arthur miller Cc: "38807@debbugs.gnu.org" <38807@debbugs.gnu.org> Received: via spool by 38807-submit@debbugs.gnu.org id=B38807.1578016204526 (code B ref 38807); Fri, 03 Jan 2020 01:51:02 +0000 Received: (at 38807) by debbugs.gnu.org; 3 Jan 2020 01:50:04 +0000 Received: from localhost ([127.0.0.1]:40268 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1inC6G-00008Q-Cq for submit@debbugs.gnu.org; Thu, 02 Jan 2020 20:50:04 -0500 Received: from mail-oln040092255092.outbound.protection.outlook.com ([40.92.255.92]:3200 helo=APC01-HK2-obe.outbound.protection.outlook.com) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1inC6D-00007q-QJ for 38807@debbugs.gnu.org; Thu, 02 Jan 2020 20:50:03 -0500 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=f+nTyeXzTkJBz2nZqxhYQSCvCgA6iBxG073268MjrpmX8hPhn4Idrky8fwUo8v1Y/PymEkHhUnyYtdmCYkNzlpZtKf+DPswXmrGzUydcNg3NK7BGQHoNK3jFbxM9nrG6Glu4/0y22OuyiTkIovDVqVoUjfvCqkFXXnOulP4An40VPrPRowY/M/0q4yWH8DS5v5KnDnhU2/ZJWUja1tzUDKJ9XAfU8TLVz2nW3W8uKTOz92UNGJD8ulRynyKCnm0PTgFo9x40KAW+EBeixIcVDNJbZmMnvIPuwGgGU/kuKIQ0tXwZbEAglWCA/KLKtX4mFOaJUrwyXbLrrKRYD8nCaQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=JksEqjRClYkdpHF99WOxWjeWfRBn4yiHRIU4AhJdmcA=; b=djVuSAo7Mv2IfX7P6ofpAYD6ueH0JS21SZcoFEGwN5aoRLJBQJuzmKMueX6nx9OjrVi5g2uVVu3cTBY7FYAHseYIsvhaSAEN2sT0CSDUyTMBGttKRkmkhIG/NPkITKxE3N5KEZcx99vOaZCAnAPbxDp5oRsYdf0DpqkyMjH+1j76OCzsZGzE/P5DWVbgbE/f17EgE/4YjnN7ehJ1Nl/t42lrU7e60kiXxE6I3UdGWHA3EN+8My2zlWM8yfXp5++cKJXe3hy3+Tnm1G7tUeD+qHLmZ52CdD3/O4xKtya1KtxPf7DxPLDR05V/wjqc8tmg6SIFBS4LzFjD4UcDl4XDwQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=outlook.com; dmarc=pass action=none header.from=outlook.com; dkim=pass header.d=outlook.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=outlook.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=JksEqjRClYkdpHF99WOxWjeWfRBn4yiHRIU4AhJdmcA=; b=gb2WNPq4vdcU5IIVT+VN76KTYMKUPNiF4TjzI3GtlQF3EDMX9pef3GjpTAc52OwRTxGvjdbRe+AKv0OZ9VRK88ZWJvr/Mpi+d4+w93FQ1ztFDqOP4Bb/5L9Wk+A5V3WpxWw+cVFcLZ9i3+4Y2DZz9UcB8+8DaD3hHEFEVWPBKCHWyhq0hJ4QH9myP9191EypAlm6j22x2/mSNkwEaV93SCltpnVV2BjF91Ae9SaLcj7HAJnIvmJXyuqZNsQQS3/Wc7pnir839xppc/+3QZRZhbxYTwWce8FiO5sEQPISimIWY918VHFFkr+GeRj/XIMa30oIxw/M5IYFDpCYoeLVoA== Received: from HK2APC01FT036.eop-APC01.prod.protection.outlook.com (10.152.248.55) by HK2APC01HT053.eop-APC01.prod.protection.outlook.com (10.152.249.191) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2602.11; Fri, 3 Jan 2020 01:49:53 +0000 Received: from PS1PR03MB3606.apcprd03.prod.outlook.com (10.152.248.53) by HK2APC01FT036.mail.protection.outlook.com (10.152.249.85) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2602.11 via Frontend Transport; Fri, 3 Jan 2020 01:49:53 +0000 X-IncomingTopHeaderMarker: OriginalChecksum:822886DB4BF85D2DAC290FCC1DB399ABDC6C11ECF1A41EB96D432FA937CAD98C; UpperCasedChecksum:18CB45ED8F4328D390F2EF39B39D248FCA2D0D1A394C7BF9F14141BD641EC7C2; SizeAsReceived:8914; Count:48 Received: from PS1PR03MB3606.apcprd03.prod.outlook.com ([fe80::b470:80bc:efed:9117]) by PS1PR03MB3606.apcprd03.prod.outlook.com ([fe80::b470:80bc:efed:9117%7]) with mapi id 15.20.2623.002; Fri, 3 Jan 2020 01:49:53 +0000 Date: Fri, 3 Jan 2020 09:49:44 +0800 From: HaiJun Zhang Message-ID: In-Reply-To: References: X-Readdle-Message-ID: 1c1f0da2-97dd-48e1-917c-dc0dd8605aa9@Spark Content-Type: multipart/alternative; boundary="5e0e9dbd_5953172f_4379" X-ClientProxiedBy: HK2PR02CA0206.apcprd02.prod.outlook.com (2603:1096:201:20::18) To PS1PR03MB3606.apcprd03.prod.outlook.com (2603:1096:803:4e::17) X-Microsoft-Original-Message-ID: <1c1f0da2-97dd-48e1-917c-dc0dd8605aa9@Spark> MIME-Version: 1.0 Received: from [192.168.1.103] (1.193.170.223) by HK2PR02CA0206.apcprd02.prod.outlook.com (2603:1096:201:20::18) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2602.11 via Frontend Transport; Fri, 3 Jan 2020 01:49:52 +0000 X-Readdle-Message-ID: 1c1f0da2-97dd-48e1-917c-dc0dd8605aa9@Spark X-Microsoft-Original-Message-ID: <1c1f0da2-97dd-48e1-917c-dc0dd8605aa9@Spark> X-TMN: [VnA+DGFKpN8lhCmyhn9I3M4dYCxAfvEA] X-MS-PublicTrafficType: Email X-IncomingHeaderCount: 48 X-EOPAttributedMessage: 0 X-MS-Office365-Filtering-Correlation-Id: 69ec19c4-8958-4cd8-94b8-08d78fef3a07 X-MS-Exchange-SLBlob-MailProps: dEG5jEBie8m65N9+bFiZEf+PkaTO3bukxQ67qGXle1N1qjlMXOe9Ir+I4JgFnExgBFMf4nGndSwZlSzRh69OnE70IimVuv6XLV9NFgJOPsKJW3p4j+3f515b/9enXJJx9m+bwdNfvbXl01eh9Bnpa2HWWPYIHrCABClOc0UHE5MbAkR+apyWL1v3pIzHfp40Rh91NYq5XNRzNQqwW0xrLxNQt7MpT41wk8Ws5DL1aJnDhpuVVC+7MeLLwo9oyZVqPM3ZpQZfUxpuz6nStRVFjlNCqwkiXObyFzdksm7KWptLGbf0lkxyLHsV2k2t2S4TFR2wpLOUq6vLaA47Q9SIZdFNkxEHwVeqPmSdQ9ubhYxzroj6evz8unoFgiknDYRGfLJB5mf/xGaPoFLt2RGW1nR7t3A3Jjc1yuTefSGifKrbSZJtHOwbxlRLC+1ALTObGueln8ShkR81V6lyw2aJvEXCXhFetDJhZtMbcT/VEJI2aaLUDNAbtV88ccTllkBAg2fpPnuKQ3y6J0qDm2wjR3eqbD8G2na1ZAz1abZBK3hElW+i1y9j3sYLTC+/TxO4O9lHQoOpu9WS/5Ke/OVrukG40kdW0X/fFeetLYMwVpQWw+6q1uck1hRMDOlaLe++xIyfQkRGhXE4jpVvIUnCfbpkI7X+JAZLUkqWokkTdNgkfNANMSBj2A== X-MS-TrafficTypeDiagnostic: HK2APC01HT053: X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: P9jMoU1QgPbe2WnJe55csDGA5JpVVcdbRaWTC8zM1JcgxzNxl2uQEqD1g7HuUDWY1h1NKmV4joa5GKPW+Z0S3v0r6QjFKtiUzpnG9Tp8FtI9ylQasmgrA2DbKt9ratasqAe94ddT1U7FWR6zF2FSxNMitAzF48b/R6ITDwrGB0MrNBhEqMyJCMT0kbi1WrXv X-OriginatorOrg: outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 69ec19c4-8958-4cd8-94b8-08d78fef3a07 X-MS-Exchange-CrossTenant-OriginalArrivalTime: 03 Jan 2020 01:49:53.3053 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 84df9e7f-e9f6-40af-b435-aaaaaaaaaaaa X-MS-Exchange-CrossTenant-FromEntityHeader: Internet X-MS-Exchange-CrossTenant-RMS-PersistedConsumerOrg: 00000000-0000-0000-0000-000000000000 X-MS-Exchange-Transport-CrossTenantHeadersStamped: HK2APC01HT053 X-Spam-Score: 0.0 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) --5e0e9dbd_5953172f_4379 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline =E5=9C=A8 2020=E5=B9=B41=E6=9C=881=E6=97=A5 +0800 PM10:52=EF=BC=8Carthur = miller =EF=BC=8C=E5=86=99=E9=81=93=EF=BC=9A > > > We can even keep all in emacs currently as > > the =E2=80=9CUI thread=E2=80=9Dand run another lisp machine > for a w= orker. > > Isn=E2=80=99t emasc-server/emacsclient already already that=3F Yes and no. The emacsclient do too less work to be a worker. Ratio of the= ir work is 10:1=3F I would it to be 1:10=3F Workers should do most heavy = work. --5e0e9dbd_5953172f_4379 Content-Type: text/html; charset="utf-8" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline
=E5=9C=A8 2020=E5=B9=B41=E6=9C=881=E6=97= =A5 +0800 PM10:52=EF=BC=8Carthur miller <arthur.miller@live.com>= =EF=BC=8C=E5=86=99=E9=81=93=EF=BC=9A

> We can even keep all in= emacs currently as 
> the =E2=80=9CUI thread= =E2=80=9Dand run another lisp machine > for a worker.

Isn=E2=80=99t emasc-server/emacsclient already already th= at? 

Yes and no. The emacsclient do too less work to be a worker. Ratio of = their work is 10:1? I would it to be 1:10? Workers should do most heavy wor= k.

--5e0e9dbd_5953172f_4379-- From unknown Wed Jul 30 13:11:05 2025 X-Loop: help-debbugs@gnu.org Subject: bug#38807: [Feature request]: Support lisp workers like web workers. Resent-From: HaiJun Zhang Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 03 Jan 2020 02:07:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 38807 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Eli Zaretskii Cc: 38807@debbugs.gnu.org, dgutov@yandex.ru Received: via spool by 38807-submit@debbugs.gnu.org id=B38807.15780171862480 (code B ref 38807); Fri, 03 Jan 2020 02:07:01 +0000 Received: (at 38807) by debbugs.gnu.org; 3 Jan 2020 02:06:26 +0000 Received: from localhost ([127.0.0.1]:40279 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1inCM2-0000dq-LC for submit@debbugs.gnu.org; Thu, 02 Jan 2020 21:06:26 -0500 Received: from mail-oln040092253078.outbound.protection.outlook.com ([40.92.253.78]:6183 helo=APC01-SG2-obe.outbound.protection.outlook.com) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1inCLz-0000dT-Id for 38807@debbugs.gnu.org; Thu, 02 Jan 2020 21:06:21 -0500 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=HrQPFJwWkqwaUxZG7iNMhmRTwXjGBu7Om6mmSOy724h90l9a1hukVKFKAJG+AlpnWrb7ijScfXPErBKX2L6UwrywG6gI+Y324FpsMY9gBD8R16OHM2cok7+WMBzL7mJWtJz4I8fuNsD8s955M71mz+BeVXovNwgkh1EU6CYz3lYbqTubh+Act1tEojF7at/hQND28K76qtAq6Y1q+n58EtMhPnddYtM5kJ0DNjJiRZ5+R3MDx87bH4TpjyZPxsW8iYGohAgvaQntHr/VqDZZJVQijSeeRFUJY9t0YnaxqZT9ZOFlJaFIPBGMN7VJo2krnAOnerUNVgHk2I9KIXcn/A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=no35wy+hCmsaxwL17nBKBzp8V6zI0EKwDHrkfPs8Hyc=; b=FJUxudHIX7uNyubFwvnCRUlNXL9aXWtoW/MQeqeR0XohTwrDkwjiLC/pDX/QPGJ/tb+14rr3WZcyNCNW0crmCiElvzlxI6IJC32L+LLCOBoR9XFw4Lza4t8Vh43Y544+BmHhwoxTRgls/GDs7U9CFXdIhK5qkII/VP73qA8L/VQ0Ek7xP5BWGh/VYQ7nIJEMJ7xIsPQ8vq1H/jhKLb80poaFBk+pwCFOUFF+uYsSTovPM1qBtMzq8Xj00xA/ulwbf4zEFqOnVjQieNqARDBIc6/B6rc+fNpPNwqFRG/+FJin8NYEsdji2S87sb6qqnsyv4PEQWxPZ0MJSF+LhD3G9g== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=outlook.com; dmarc=pass action=none header.from=outlook.com; dkim=pass header.d=outlook.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=outlook.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=no35wy+hCmsaxwL17nBKBzp8V6zI0EKwDHrkfPs8Hyc=; b=WHUtseISs2DyEpWLIR/IzNdNs9d+pauWURLNjP0n0yabXBd5QUKu9G4xVEci9QKclpy4g5lcSVW54Z6i9j3ksY14wsNIw8kmrgOB60as5UldhJfZ2Io9pQofnYoiINLUTn8WUggqQLbx0Ne/Jksa++5RpxWxIy6uCO2TOzKGCDdrTmW2ZRMUCS1bySAEIDMzbKMIob2LBO2Iwh3twX96iUujBXrIvd/8x1Uez79/+Zyh3zyQu4Mqc0JljLsaru1rdBoxJ5bouHUjW9ta2h/PXj4Y26cu4BV8NylLWiHqdDuS/RwLqevZWFuq0t4fQvNCok5Kj2ud+1MqrpAaVhbjgw== Received: from HK2APC01FT016.eop-APC01.prod.protection.outlook.com (10.152.248.56) by HK2APC01HT133.eop-APC01.prod.protection.outlook.com (10.152.249.132) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2602.11; Fri, 3 Jan 2020 02:06:11 +0000 Received: from PS1PR03MB3606.apcprd03.prod.outlook.com (10.152.248.58) by HK2APC01FT016.mail.protection.outlook.com (10.152.248.193) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2602.11 via Frontend Transport; Fri, 3 Jan 2020 02:06:11 +0000 X-IncomingTopHeaderMarker: OriginalChecksum:30A1605177F1B79020062EC74C3D215AAC9F6B93213D6904553E8EEA8ADD9A0E; UpperCasedChecksum:047B9C8D738F025DA8234041CE53F4575600A3962C2A71DFE487088C89CAFD7A; SizeAsReceived:9174; Count:48 Received: from PS1PR03MB3606.apcprd03.prod.outlook.com ([fe80::b470:80bc:efed:9117]) by PS1PR03MB3606.apcprd03.prod.outlook.com ([fe80::b470:80bc:efed:9117%7]) with mapi id 15.20.2623.002; Fri, 3 Jan 2020 02:06:11 +0000 Date: Fri, 3 Jan 2020 10:05:59 +0800 From: HaiJun Zhang Message-ID: In-Reply-To: <83y2urjip6.fsf@gnu.org> References: <83o8vpn8g1.fsf@gnu.org> <48d683e5-e0ec-2cbf-c8db-ad41cfc553e1@yandex.ru> <835zhxn5jg.fsf@gnu.org> <8336czlucz.fsf@gnu.org> <39f1e59e-08db-4862-98db-c31c3bcbab06@Spark> <83y2urjip6.fsf@gnu.org> X-Readdle-Message-ID: 3c2340ca-0b61-4c56-adf1-94871643abf8@Spark Content-Type: multipart/alternative; boundary="5e0ea18f_44380727_4379" X-ClientProxiedBy: HK2PR02CA0200.apcprd02.prod.outlook.com (2603:1096:201:20::12) To PS1PR03MB3606.apcprd03.prod.outlook.com (2603:1096:803:4e::17) X-Microsoft-Original-Message-ID: <3c2340ca-0b61-4c56-adf1-94871643abf8@Spark> MIME-Version: 1.0 Received: from [192.168.1.103] (1.193.170.223) by HK2PR02CA0200.apcprd02.prod.outlook.com (2603:1096:201:20::12) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2602.10 via Frontend Transport; Fri, 3 Jan 2020 02:06:10 +0000 X-Readdle-Message-ID: 3c2340ca-0b61-4c56-adf1-94871643abf8@Spark X-Microsoft-Original-Message-ID: <3c2340ca-0b61-4c56-adf1-94871643abf8@Spark> X-TMN: [YgG92czsjv8Jv0t7DPxDWFEDX0yrB87g] X-MS-PublicTrafficType: Email X-IncomingHeaderCount: 48 X-EOPAttributedMessage: 0 X-MS-Office365-Filtering-Correlation-Id: 54d0d0fb-f72a-40da-4fe5-08d78ff180d2 X-MS-TrafficTypeDiagnostic: HK2APC01HT133: X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: 9PkZ+SAJ72WSn0I00u0HfxDw/hLeZV7ZnExZsCb8LnodWL3iEQfj2+v8hi8/Nl/CJAli0A0BqdaDGiIUaFfkKBwgXAvvmJnsbxyBfinx9DoFulE8PSFqEcTwQnFgWbZV9DGmPoLeRvt8kPliIz/J6XErzT8IHyWFU5CfDn45WCDoZkDWb48P6Wht7l/FIEP3 X-OriginatorOrg: outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 54d0d0fb-f72a-40da-4fe5-08d78ff180d2 X-MS-Exchange-CrossTenant-OriginalArrivalTime: 03 Jan 2020 02:06:11.0169 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 84df9e7f-e9f6-40af-b435-aaaaaaaaaaaa X-MS-Exchange-CrossTenant-FromEntityHeader: Internet X-MS-Exchange-CrossTenant-RMS-PersistedConsumerOrg: 00000000-0000-0000-0000-000000000000 X-MS-Exchange-Transport-CrossTenantHeadersStamped: HK2APC01HT133 X-Spam-Score: 1.0 (+) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) --5e0ea18f_44380727_4379 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline =E5=9C=A8 2020=E5=B9=B41=E6=9C=881=E6=97=A5 +0800 PM11:32=EF=BC=8CEli Zar= etskii =EF=BC=8C=E5=86=99=E9=81=93=EF=BC=9A > > Date: Wed, 1 Jan 2020 12:02:35 +0800 > > =46rom: HaiJun Zhang > > Cc: dgutov=40yandex.ru, 38807=40debbugs.gnu.org > > > > While with the same dart project, the VSCode has good user responsive= ness. As far as I known, the > > extensions of VSCode runs in separate process. > > Can you even remotely compare the degree of control the VSCode > extension language can have on the UI, with what Emacs gives you=3F I will try to do it when I have time. --5e0ea18f_44380727_4379 Content-Type: text/html; charset="utf-8" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline
=E5=9C=A8 2020=E5=B9=B41=E6=9C=881=E6=97= =A5 +0800 PM11:32=EF=BC=8CEli Zaretskii <eliz@gnu.org>=EF=BC=8C= =E5=86=99=E9=81=93=EF=BC=9A
Date: Wed, 1 Jan 2020 = 12:02:35 +0800
From: HaiJun Zhang <netjune@outlook.com>
Cc: dgutov@yandex.ru, 38807@debbugs.gnu.org

While with the same dart project, the VSCode has good user responsiveness. = As far as I known, the
extensions of VSCode runs in separate process.

Can you even remotely compare the degree of control the VSCode
extension language can have on the UI, with what Emacs gives you? 
=


I will try to do it when I have time.

--5e0ea18f_44380727_4379-- From unknown Wed Jul 30 13:11:05 2025 X-Loop: help-debbugs@gnu.org Subject: bug#38807: [Feature request]: Support lisp workers like web workers. Resent-From: HaiJun Zhang Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 03 Jan 2020 02:54:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 38807 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Michael Albinus Cc: Eli Zaretskii , 38807@debbugs.gnu.org Received: via spool by 38807-submit@debbugs.gnu.org id=B38807.15780200007236 (code B ref 38807); Fri, 03 Jan 2020 02:54:02 +0000 Received: (at 38807) by debbugs.gnu.org; 3 Jan 2020 02:53:20 +0000 Received: from localhost ([127.0.0.1]:40294 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1inD5U-0001se-6Z for submit@debbugs.gnu.org; Thu, 02 Jan 2020 21:53:20 -0500 Received: from mail-oln040092254077.outbound.protection.outlook.com ([40.92.254.77]:4485 helo=APC01-PU1-obe.outbound.protection.outlook.com) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1inD5R-0001sK-0y for 38807@debbugs.gnu.org; Thu, 02 Jan 2020 21:53:18 -0500 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=dp2XVCYyElrkbl2yuci0j9xrV9go3A4xwnN+dlzj+ncynnnMELAXnFvrq8YUi6IA1k6a5JV+39u0gMzwUDFFdp9aHloAJeEVzenK72BjVz6YAj0Q02IeP7t+kH4X3DJ62ltCtFLs61Ascu27kADC09JBvBv3a5uywGMaoMyjawtnnkZ2x45m7HKobUE6B7Ge8sJRqgzLeI/NTwic49lAVEc6yEPgY6uXAr8Ul7EJ4tr58HS9jMJjKh9nme7LFS3O7OMW86MmuslvvceKz+ifeKeBIyOoRb8XRN4Y8UuBVJ3x4LwRKOpZ1l/VCSgAizTUCnx2GhXSwri545sGJZfnug== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=cJ7PK6j5jviKoSm5bOqBebhJ8U8VcWgq1OLVdeLREYU=; b=axbJK/Y8WD8UnlJ8X8mNrEdoOwOpOn0Mv/aCC/qbixpO5Ht+IWIGpvH3Gq5Um96fu1l2Bm+dUqt/iCz1+xs9AjCC2x+EY0WzEn6fHsKN2x8aFjRpeI0sWRLTgLR2Ep+WdG9KShupcb+rKlKvdjQadLZuWu0qlOSM0IPMcbobP8DtuLqQwuX9uq6BI9XHwyugTb8inWneby8StO/LEP4FtICx/hXOBnV1m1Myz4z5CctHuiiuR+reJyxQ2noj0HLuZsuM15pRK/XFUyaHSYR6oDPJFrqyPKRVHapxWYKf8i8uf7q/KkzicWVy98tAarQ0Cne/C3u1RuDrJ8x2whC8XQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=outlook.com; dmarc=pass action=none header.from=outlook.com; dkim=pass header.d=outlook.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=outlook.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=cJ7PK6j5jviKoSm5bOqBebhJ8U8VcWgq1OLVdeLREYU=; b=Tf/fcammekbRSDIjH0bYKcFM8ALiS+elaU05drmPSMfqRX3c9iMGY6Rnn6AN3CzxX8PGLLS2ku4S/+J1JtWduje3V8wwo1O22kX6BqLbmS6DTdRPZ3fa5iCIMHR1yu0Vj0R0we77TTldBwvPiKWofPUYSThvyWfgVUvkVLXfjp+nq3D8NkG7r1oQCEVfBES9xbEW4vmnh1NGFr5QKmg+lyj+ltpkYQrbgE4Y1j3RU+KwBG8pMEvP5nz5Ovat0+c31yfqFFqUg95EHfdSmRb0f33R6G15fbNnjT8jrOY1e3IbBymUSK61dMW7rkppkn8fVROvDY6XcgSiHTBaUXzxng== Received: from SG2APC01FT057.eop-APC01.prod.protection.outlook.com (10.152.250.57) by SG2APC01HT181.eop-APC01.prod.protection.outlook.com (10.152.251.194) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2602.11; Fri, 3 Jan 2020 02:53:08 +0000 Received: from PS1PR03MB3606.apcprd03.prod.outlook.com (10.152.250.52) by SG2APC01FT057.mail.protection.outlook.com (10.152.251.133) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2602.11 via Frontend Transport; Fri, 3 Jan 2020 02:53:08 +0000 X-IncomingTopHeaderMarker: OriginalChecksum:7E0043E8BCA398C3370E6A6234F1EF7CAB6CA61DE848F8F4BFF42170079555D6; UpperCasedChecksum:ED5C7D48CF1AA45A341E69660379A0591479D4DEFA7E91629B22CBDEAC472C34; SizeAsReceived:8990; Count:48 Received: from PS1PR03MB3606.apcprd03.prod.outlook.com ([fe80::b470:80bc:efed:9117]) by PS1PR03MB3606.apcprd03.prod.outlook.com ([fe80::b470:80bc:efed:9117%7]) with mapi id 15.20.2623.002; Fri, 3 Jan 2020 02:53:08 +0000 Date: Fri, 3 Jan 2020 10:52:59 +0800 From: HaiJun Zhang Message-ID: In-Reply-To: <878smrtu65.fsf@gmx.de> References: <83o8vpn8g1.fsf@gnu.org> <87mub9u0ld.fsf@gmx.de> <878smrtu65.fsf@gmx.de> X-Readdle-Message-ID: 6784237c-4eaa-4da9-8d95-85a124e1543a@Spark Content-Type: multipart/alternative; boundary="5e0eac91_71482545_4379" X-ClientProxiedBy: HK0PR03CA0105.apcprd03.prod.outlook.com (2603:1096:203:b0::21) To PS1PR03MB3606.apcprd03.prod.outlook.com (2603:1096:803:4e::17) X-Microsoft-Original-Message-ID: <6784237c-4eaa-4da9-8d95-85a124e1543a@Spark> MIME-Version: 1.0 Received: from [192.168.1.103] (1.193.170.223) by HK0PR03CA0105.apcprd03.prod.outlook.com (2603:1096:203:b0::21) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2602.11 via Frontend Transport; Fri, 3 Jan 2020 02:53:07 +0000 X-Readdle-Message-ID: 6784237c-4eaa-4da9-8d95-85a124e1543a@Spark X-Microsoft-Original-Message-ID: <6784237c-4eaa-4da9-8d95-85a124e1543a@Spark> X-TMN: [SJ4YsJDF8hw4hae99zlGzqFEWV189OFT] X-MS-PublicTrafficType: Email X-IncomingHeaderCount: 48 X-EOPAttributedMessage: 0 X-MS-Office365-Filtering-Correlation-Id: 416a8b42-8d67-4f0f-570c-08d78ff81035 X-MS-TrafficTypeDiagnostic: SG2APC01HT181: X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: /ITdbIVsffKS65Q6n6dusTP7Y2/zvsSE5tWr/7ZU+y0dBJ7S/FcykAcsfnWwzCLbsjB5kJUjQ48NeV874+Ep3KDH526TYtnabnwS7ctKcRkqEzIjTH9k9Ro3RsACDNTjp0tbnJGP01yQPFkBzM8tTwa0OU2rpyhHLafoFcruvATba15mjd9oa+9yF00GonAY X-OriginatorOrg: outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 416a8b42-8d67-4f0f-570c-08d78ff81035 X-MS-Exchange-CrossTenant-OriginalArrivalTime: 03 Jan 2020 02:53:08.5395 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 84df9e7f-e9f6-40af-b435-aaaaaaaaaaaa X-MS-Exchange-CrossTenant-FromEntityHeader: Internet X-MS-Exchange-CrossTenant-RMS-PersistedConsumerOrg: 00000000-0000-0000-0000-000000000000 X-MS-Exchange-Transport-CrossTenantHeadersStamped: SG2APC01HT181 X-Spam-Score: 0.0 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) --5e0eac91_71482545_4379 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline =E5=9C=A8 2020=E5=B9=B41=E6=9C=881=E6=97=A5 +0800 PM5:14=EF=BC=8CMichael = Albinus =EF=BC=8C=E5=86=99=E9=81=93=EF=BC=9A > HaiJun Zhang writes: > > > The point seems to be that there is a dedicated UI thread. That we > > don't > > have (yet) in Emacs, and I like this idea. > > > > We can even keep all in emacs currently as the =E2=80=9CUI thread=E2=80= =9Dand run > > another lisp machine for a worker. > > I'm not expecting to get a UI thread with all glories it is specified > for web workers. I would already be happy if we could find a solution > for supporting user input in a threaded package, as it is discussed in > bug=2325214 and bug=2332426. > > Best regards, Michael. The threading support introduced in emacs 26 is cool. But it is too compl= ex when every thread can control UI and interact with user. While the web= worker model is much simpler. --5e0eac91_71482545_4379 Content-Type: text/html; charset="utf-8" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline
=E5=9C=A8 2020=E5=B9=B41=E6=9C=881=E6=97= =A5 +0800 PM5:14=EF=BC=8CMichael Albinus <michael.albinus@gmx.de>= =EF=BC=8C=E5=86=99=E9=81=93=EF=BC=9A
HaiJun Zhang <netju= ne@outlook.com> writes:

The point seems to be = that there is a dedicated UI thread. That we
don't
have (yet) in Emacs, and I like this idea.

We can even keep all in emacs currently as the =E2=80=9CUI thread=E2=80=9Da= nd run
another lisp machine for a worker.

I'm not expecting to get a UI thread with all glories it is specified
for web workers. I would already be happy if we could find a solution
for supporting user input in a threaded package, as it is discussed in
bug#25214 and bug#32426.

Best regards, Michael. 

The threading support introduced in emacs 26 is cool. But it is too co= mplex when every thread can control UI and interact with user. While the we= b worker model is much simpler.

--5e0eac91_71482545_4379-- From unknown Wed Jul 30 13:11:05 2025 X-Loop: help-debbugs@gnu.org Subject: bug#38807: [Feature request]: Support lisp workers like web workers. Resent-From: HaiJun Zhang Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 03 Jan 2020 03:20:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 38807 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Eli Zaretskii Cc: 38807@debbugs.gnu.org, michael.albinus@gmx.de Received: via spool by 38807-submit@debbugs.gnu.org id=B38807.15780215419549 (code B ref 38807); Fri, 03 Jan 2020 03:20:01 +0000 Received: (at 38807) by debbugs.gnu.org; 3 Jan 2020 03:19:01 +0000 Received: from localhost ([127.0.0.1]:40300 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1inDUL-0002Tp-Cx for submit@debbugs.gnu.org; Thu, 02 Jan 2020 22:19:01 -0500 Received: from mail-oln040092254096.outbound.protection.outlook.com ([40.92.254.96]:58976 helo=APC01-PU1-obe.outbound.protection.outlook.com) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1inDUJ-0002TX-UL for 38807@debbugs.gnu.org; Thu, 02 Jan 2020 22:19:00 -0500 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=fggR/KrqPgrcU+iUrA2P4MqP+juWg6kiV0w3mQbJNZ+dNo1+8XaHm63+yCOukOatvWQRhLBUCZIZMqNEjA3ShB20xB79z3icKRHUUvILPXN6RMdY5F3ElOGiBciBgEIl4q3zXqDOlhsjO/hBs3rROFMkGy2uaol/ywPiQnUbqOGTTZYnI8hUTn8FVVpc8rSnhu51Wp+T0JSRf6+ZiRq4/TLKuTtTpzCfAnQovewzrmFsuhW5UzKLu5gE93vdwlFH7UxwnyihWlOCnXGsE17R7Pkziw0anbPvUIz6AQ9FAWPUEQN0RUq1AL2hiHT9W+QoAzOURaBj/DlKi1nKipfcVA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=7N81lsjVcB4F0j3ocBV8ptnuUJvX9S4Ln2i/fFAjAoQ=; b=hrymDpmbOQIVjOD0K5tWwEkE0XmOCD0YmXnnDMeIcyhGjq0bvH+J2Y2QCd+eUMZkTr3GUq1b5ogKhAFCc8tjcxv5blxxMnhwNcB6DPM76SNrvd9lm3wSXbMHukjasr9nj6Znltm17WeUQQElx763V4bg6r4XvfP+vYs5SjTRBZPj9C4txVXjd1gcwvisl0VzJn4qqFi0LBagOq6AVj7iBDMj8GcHv5D35CaBzyLF9c9hqyE8c0GL/iWYKOZX/Gjqasr4oY9ZNvliCmy8mciZ9XFVDr7J81W848kIUo1hpbSmujCkkXcj96LEzUq6pqzEk9pl7q6NQwRlz7V729xflA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=outlook.com; dmarc=pass action=none header.from=outlook.com; dkim=pass header.d=outlook.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=outlook.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=7N81lsjVcB4F0j3ocBV8ptnuUJvX9S4Ln2i/fFAjAoQ=; b=tB4M1Bt/Uboh59Xb8TCm1fkQaTWoveQAUXHj3YGS48QinCEt+hYa+dNaOz0hLK7o84ryrUgbEnF8u22PvupH+p7ZX5qI1byomF8mjF3PuIzE/nt+S8IsRD9N3LpXk4i+9s02y+5l3oKjN8rGVTr+tNS4/UjLWUcf+Dy4EyGIFUE4jlloKHWFMUSd2INZ/I0QSHNmj25AwAL+yZpjdOUwqolmoLA/Xunx4MdsnsP4zNbkfbM98Auvmv56qRPmKm+zBJYBLpuBTwS/etSIjyVKNQzHTcYPB4vysJAQ0weDpcbPYOxM8FsPY4ozI7nAwuHGPpYt5tYVW1mDpfk9Q9af2w== Received: from PU1APC01FT024.eop-APC01.prod.protection.outlook.com (10.152.252.52) by PU1APC01HT083.eop-APC01.prod.protection.outlook.com (10.152.253.43) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2602.11; Fri, 3 Jan 2020 03:18:51 +0000 Received: from PS1PR03MB3606.apcprd03.prod.outlook.com (10.152.252.57) by PU1APC01FT024.mail.protection.outlook.com (10.152.252.233) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2602.11 via Frontend Transport; Fri, 3 Jan 2020 03:18:51 +0000 X-IncomingTopHeaderMarker: OriginalChecksum:1D282572FD96D14C85E0A8F7BAED256F966E7BB3B80E194F861191408F627F47; UpperCasedChecksum:C36BBE1902E968AA73BAC0A5E035C674EE007735818874A23B69D6E09F440B81; SizeAsReceived:9108; Count:48 Received: from PS1PR03MB3606.apcprd03.prod.outlook.com ([fe80::b470:80bc:efed:9117]) by PS1PR03MB3606.apcprd03.prod.outlook.com ([fe80::b470:80bc:efed:9117%7]) with mapi id 15.20.2623.002; Fri, 3 Jan 2020 03:18:51 +0000 Date: Fri, 3 Jan 2020 11:18:42 +0800 From: HaiJun Zhang Message-ID: In-Reply-To: <83r20jjgg3.fsf@gnu.org> References: <83o8vpn8g1.fsf@gnu.org> <87mub9u0ld.fsf@gmx.de> <831rslmxih.fsf@gnu.org> <83lfqslafm.fsf@gnu.org> <83r20jjgg3.fsf@gnu.org> X-Readdle-Message-ID: 1242ff02-0db2-48c8-8d2d-3fc8cb261a5b@Spark Content-Type: multipart/alternative; boundary="5e0eb298_5204a191_4379" X-ClientProxiedBy: HK0PR03CA0110.apcprd03.prod.outlook.com (2603:1096:203:b0::26) To PS1PR03MB3606.apcprd03.prod.outlook.com (2603:1096:803:4e::17) X-Microsoft-Original-Message-ID: <1242ff02-0db2-48c8-8d2d-3fc8cb261a5b@Spark> MIME-Version: 1.0 Received: from [192.168.1.103] (1.193.170.223) by HK0PR03CA0110.apcprd03.prod.outlook.com (2603:1096:203:b0::26) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2602.11 via Frontend Transport; Fri, 3 Jan 2020 03:18:50 +0000 X-Readdle-Message-ID: 1242ff02-0db2-48c8-8d2d-3fc8cb261a5b@Spark X-Microsoft-Original-Message-ID: <1242ff02-0db2-48c8-8d2d-3fc8cb261a5b@Spark> X-TMN: [Go8euYDkk/32X/GGrAaJh7tlcRP2Yvqw] X-MS-PublicTrafficType: Email X-IncomingHeaderCount: 48 X-EOPAttributedMessage: 0 X-MS-Office365-Filtering-Correlation-Id: 98fae0a8-668b-4060-f1e5-08d78ffba806 X-MS-TrafficTypeDiagnostic: PU1APC01HT083: X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: 0SR4N5hGpygvJa4rL0nmEJgJHgtojhonwroluv0/9ulFrPh77vxLiL+Tefqc9Jcrywp+zZDvh7rscUocnH3p4LEfL1MmU9zNtt0H/HzVnsAPr282QQaRbCwsoslnPkHv6n5vxzyFwPsCwMJ7/E4Klza44SteTpyB3P3VOlq2OD80lwNm0F1cYzHENn850cRu X-OriginatorOrg: outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 98fae0a8-668b-4060-f1e5-08d78ffba806 X-MS-Exchange-CrossTenant-OriginalArrivalTime: 03 Jan 2020 03:18:51.7443 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 84df9e7f-e9f6-40af-b435-aaaaaaaaaaaa X-MS-Exchange-CrossTenant-FromEntityHeader: Internet X-MS-Exchange-CrossTenant-RMS-PersistedConsumerOrg: 00000000-0000-0000-0000-000000000000 X-MS-Exchange-Transport-CrossTenantHeadersStamped: PU1APC01HT083 X-Spam-Score: 0.0 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) --5e0eb298_5204a191_4379 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline =E5=9C=A8 2020=E5=B9=B41=E6=9C=882=E6=97=A5 +0800 AM12:21=EF=BC=8CEli Zar= etskii =EF=BC=8C=E5=86=99=E9=81=93=EF=BC=9A > Then these threads cannot really run Lisp at all, nor even directly > affect Lisp data. So in effect you want to be able to run threads > that don't enter the Lisp interpreter, nor modify any Lisp data. Is it because there are many global resources in infrastructure of networ= k and filesystem functions=3F > We > already have that available: you can write a module which Emacs can > load, and that module can then start any number of threads doing any > calculations or network communications you want. See emacs-module.h. > Yes. Is there an efficient way for threads in module to communicate with = emacs core=3F It is used for threads to send result data to emacs core. T= he only thing I known is sending signals to emacs which is not too=C2=A0e= fficient. I would like emacs core to create an event queue for modules an= d modules can send events to the queue. Then it is possible to run guile in a module and write guile programs the= re. > > The disadvantage is that it is cumbersome to share data between the > > two instances of Emacs, and large amounts of data will make that > > inefficient. > > > > We may design an IPC for their communication. > > =46or some data structures, yes. But buffer text and long strings are > problematic, because the text can be very large. Yes. I don=E2=80=99t known how web browsers do this. Their web pages are = rendered by different processes and then displayed in the same window. --5e0eb298_5204a191_4379 Content-Type: text/html; charset="utf-8" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline
=E5=9C=A8 2020=E5=B9=B41=E6=9C=882=E6=97= =A5 +0800 AM12:21=EF=BC=8CEli Zaretskii <eliz@gnu.org>=EF=BC=8C= =E5=86=99=E9=81=93=EF=BC=9A
Then these threads can= not really run Lisp at all, nor even directly
affect Lisp data. So in effect you want to be able to run threads
that don't enter the Lisp interpreter, nor modify any Lisp data.  

Is it because there are many global resources in infrastr= ucture of network and filesystem functions? 

We
already have that available: you can write a module which Emacs can
load, and that module can then start any number of threads doing any
calculations or network communications you want. See emacs-module.h.


Yes. Is there an efficient way for threads in module to c= ommunicate with emacs core? It is used for threads to send result data to e= macs core. The only thing I known is sending signals to emacs which is not = too efficient. I= would like emacs core to create an event queue for modules and modules can= send events to the queue.

Then it is possible to run guile in a module and = write guile programs there.


The disadvantage is th= at it is cumbersome to share data between the
two instances of Emacs, and large amounts of data will make that
inefficient.

We may design an IPC for their communication.

For some data structures, yes. But buffer text and long strings are
problematic, because the text can be very large. 

Yes. I don=E2=80=99t known how web browsers do this. Their web pages are re= ndered by different processes and then displayed in the same window.



--5e0eb298_5204a191_4379-- From unknown Wed Jul 30 13:11:05 2025 X-Loop: help-debbugs@gnu.org Subject: bug#38807: [Feature request]: Support lisp workers like web workers. Resent-From: HaiJun Zhang Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 03 Jan 2020 03:36:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 38807 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Eli Zaretskii Cc: 38807@debbugs.gnu.org, michael.albinus@gmx.de Received: via spool by 38807-submit@debbugs.gnu.org id=B38807.157802250611033 (code B ref 38807); Fri, 03 Jan 2020 03:36:01 +0000 Received: (at 38807) by debbugs.gnu.org; 3 Jan 2020 03:35:06 +0000 Received: from localhost ([127.0.0.1]:40305 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1inDjr-0002rp-17 for submit@debbugs.gnu.org; Thu, 02 Jan 2020 22:35:06 -0500 Received: from mail-oln040092253012.outbound.protection.outlook.com ([40.92.253.12]:27968 helo=APC01-SG2-obe.outbound.protection.outlook.com) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1inDjo-0002rE-0y for 38807@debbugs.gnu.org; Thu, 02 Jan 2020 22:35:01 -0500 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=cwgew9wSHCzwN+XDTwtdNuOSJ2Ev71dvjgv1eLy2RwgR0HPaq+1pzw3tq8qDGB88pTHtDQk1nWxmFpOsQeF0MjHxt9jCb5y+wboYXj5cd1ypzehJaHkroNNCaAX8VK9jc0tjtcHCuCRtGe3jVPKQ6ZzVatHuMqbohkuraG15xwoM/T9j9kxD6I9ZSZcMBNMBp+FxetavNj/ML1VFEXsCbMBrUQrvagjUI2EA2L//KaGLBH/x7YDy7FhoewR8O7Wm3p4qWOhoUxXCLNPJiCbodyCRnJjeMSbCAv9kTISbB4+6SQn5G0qh40dU6/wK0ajmlES2ggsxmyUVuPvd1HrP1Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=pm1hPyV3n4GPbZGyMaJdVlOG73JGqhDMS+waqmJwWng=; b=S9aPPHVb9NCKHSiwswg6w0Ryu8+1EVUlH89flPy84NvMjc/Z5SDXYOVIEb6ESJ5WAJdhghALMPADCNLfxiTVBWTvxNRy0rpASKNstdwOpIoDDh/j285q4pzlFk6JokuVh/dcq0qeQL9EQOLDqiZ61LVL6yMerDguQV0vbOIW6/0SpiJX+2AXVL6gI9lc10Nzua1oS5REE1bFNd7KXy6tpcaR6gE3az5NH+euOQgXawTdpFGGRE6Dj8NMts3CXFl0Qhq7+GjwoqHJI9R77nUUzWbtTrcDzVFuj5cznK3mJenMORfFTE+6tZQGqYD9xFgz2WFmUSXrqrhXdvX9n+U9VA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=outlook.com; dmarc=pass action=none header.from=outlook.com; dkim=pass header.d=outlook.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=outlook.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=pm1hPyV3n4GPbZGyMaJdVlOG73JGqhDMS+waqmJwWng=; b=GkHokkh1SzxFuhNYVxR03aTiDnS3mbSFvZmnaLBVwqNx2bRx3SIwJEW+kuxu3z6MXIW4XGeB9l7lAr0hvltZN+P4BCEGgWhtvbnc0pMTm0SYZSu7slZqwHlZ8B+ECiC1XWC3io6uFV9SMeI90LQt+H8PX6pfM+Ykj1LSgY0fra3HrGgLAWsIDQcWRanah0p7QyiNB3KybSxq0siPVy4iX9RpB/hTmEqyFgrM98L2vaxNYP46fjdsvHlv/2dFE3S/SN/yld2iJiqqatvNfqg5EOuPtElt8NnUI9r7GZ9zME0eOKSmepd7I+uUBzqB+hcgqLKBtzOBx0VHBvV0LuVlwQ== Received: from HK2APC01FT028.eop-APC01.prod.protection.outlook.com (10.152.248.55) by HK2APC01HT026.eop-APC01.prod.protection.outlook.com (10.152.249.238) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2602.11; Fri, 3 Jan 2020 03:34:51 +0000 Received: from PS1PR03MB3606.apcprd03.prod.outlook.com (10.152.248.51) by HK2APC01FT028.mail.protection.outlook.com (10.152.248.196) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2602.11 via Frontend Transport; Fri, 3 Jan 2020 03:34:51 +0000 X-IncomingTopHeaderMarker: OriginalChecksum:DBFDF814B7889F28A51CDAEE88B44BF89EDAFC1D28E63C59D95BFFE2DBB52279; UpperCasedChecksum:E73605231EC6EF155CD4E35B703A890B2FEE330E980D8E13C0760B4D120F5AF7; SizeAsReceived:9108; Count:48 Received: from PS1PR03MB3606.apcprd03.prod.outlook.com ([fe80::b470:80bc:efed:9117]) by PS1PR03MB3606.apcprd03.prod.outlook.com ([fe80::b470:80bc:efed:9117%7]) with mapi id 15.20.2623.002; Fri, 3 Jan 2020 03:34:51 +0000 Date: Fri, 3 Jan 2020 11:34:40 +0800 From: HaiJun Zhang Message-ID: In-Reply-To: <83r20jjgg3.fsf@gnu.org> References: <83o8vpn8g1.fsf@gnu.org> <87mub9u0ld.fsf@gmx.de> <831rslmxih.fsf@gnu.org> <83lfqslafm.fsf@gnu.org> <83r20jjgg3.fsf@gnu.org> X-Readdle-Message-ID: a7ecdd7d-6bcb-41ad-bf73-8e03d3e3f8e5@Spark Content-Type: multipart/alternative; boundary="5e0eb658_622d8102_4379" X-ClientProxiedBy: HK2PR06CA0003.apcprd06.prod.outlook.com (2603:1096:202:2e::15) To PS1PR03MB3606.apcprd03.prod.outlook.com (2603:1096:803:4e::17) X-Microsoft-Original-Message-ID: MIME-Version: 1.0 Received: from [192.168.1.103] (1.193.170.223) by HK2PR06CA0003.apcprd06.prod.outlook.com (2603:1096:202:2e::15) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2602.11 via Frontend Transport; Fri, 3 Jan 2020 03:34:50 +0000 X-Readdle-Message-ID: a7ecdd7d-6bcb-41ad-bf73-8e03d3e3f8e5@Spark X-Microsoft-Original-Message-ID: X-TMN: [Xmr/ALZMWj7lxk3f+R/dt6vNQ/fLzNML] X-MS-PublicTrafficType: Email X-IncomingHeaderCount: 48 X-EOPAttributedMessage: 0 X-MS-Office365-Filtering-Correlation-Id: f55c99c9-4d89-4849-2346-08d78ffde42e X-MS-TrafficTypeDiagnostic: HK2APC01HT026: X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: Tb1r2tMUTT/1KDp7nJ3iqzHGZVsNke/oGIxH7SR31luEiCvmwYBVPubb5WJEZnvJnY4yg8S/6oEd1obFSqGH1HJ3n6XkCW447EaG0XoexQKGF6kfk9KLcKz3QuoMUhJ0DcTcI4NdvyOjkxJJ6Lu8dkIpYb/KBOJUP+vdwhEcnQqjwhcyVb9Wgkpkt4IgOzjNuqatR/XXDm1q0tslhW5MmWYQnSqeWFMBzQbjVZDW0Gk= X-OriginatorOrg: outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: f55c99c9-4d89-4849-2346-08d78ffde42e X-MS-Exchange-CrossTenant-OriginalArrivalTime: 03 Jan 2020 03:34:51.6269 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 84df9e7f-e9f6-40af-b435-aaaaaaaaaaaa X-MS-Exchange-CrossTenant-FromEntityHeader: Internet X-MS-Exchange-CrossTenant-RMS-PersistedConsumerOrg: 00000000-0000-0000-0000-000000000000 X-MS-Exchange-Transport-CrossTenantHeadersStamped: HK2APC01HT026 X-Spam-Score: 0.0 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) --5e0eb658_622d8102_4379 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline =E5=9C=A8 2020=E5=B9=B41=E6=9C=882=E6=97=A5 +0800 AM12:21=EF=BC=8CEli Zar= etskii =EF=BC=8C=E5=86=99=E9=81=93=EF=BC=9A > > Then these threads cannot really run Lisp at all, nor even directly > affect Lisp data. So in effect you want to be able to run threads > that don't enter the Lisp interpreter, nor modify any Lisp data. =46or web worker, they have different contexts. The following is from MDN= (https://developer.mozilla.org/en-US/docs/Web/API/Web=5FWorkers=5FAPI/Usi= ng=5Fweb=5Fworkers): workers run in another global context that is different from the current=C2= =A0window. Thus, using the=C2=A0windowshortcut to get the current global = scope (instead of=C2=A0self) within a=C2=A0Worker=C2=A0will return an err= or. The worker context is represented by a=C2=A0DedicatedWorkerGlobalScope=C2= =A0object in the case of dedicated workers (standard workers that are uti= lized by a single script; shared workers use=C2=A0SharedWorkerGlobalScope= ). A dedicated worker is only accessible from the script that first spawn= ed it, whereas shared workers can be accessed from multiple scripts. --5e0eb658_622d8102_4379 Content-Type: text/html; charset="utf-8" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline
=E5=9C=A8 2020=E5=B9=B41=E6=9C=882=E6=97= =A5 +0800 AM12:21=EF=BC=8CEli Zaretskii <eliz@gnu.org>=EF=BC=8C= =E5=86=99=E9=81=93=EF=BC=9A

Then these threads cannot really run Lisp at all, nor even directly
affect Lisp data. So in effect you want to be able to run threads
that don't enter the Lisp interpreter, nor modify any Lisp data.  
=

For web worker, they have different contexts. The following is from MD= N(https://developer.mozilla.org/en-US/docs/Web/API/Web_= Workers_API/Using_web_workers):

workers run in another global context = that is different from the current windowshortcut to get the current global scope (instead of&n= bsp;self) within a=  Worker will return an error.

The worker context is represented by a=  DedicatedWorkerGlobalScope = object in the case of dedicated workers (standard workers that are utilized= by a single script; shared workers use SharedWorkerGlobalScope). A dedicated worker is only = accessible from the script that first spawned it, whereas shared workers ca= n be accessed from multiple scripts.


--5e0eb658_622d8102_4379-- From unknown Wed Jul 30 13:11:05 2025 X-Loop: help-debbugs@gnu.org Subject: bug#38807: [Feature request]: Support lisp workers like web workers. Resent-From: HaiJun Zhang Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 03 Jan 2020 03:47:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 38807 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Eli Zaretskii Cc: 38807@debbugs.gnu.org, michael.albinus@gmx.de, arthur.miller@live.com Received: via spool by 38807-submit@debbugs.gnu.org id=B38807.157802317811999 (code B ref 38807); Fri, 03 Jan 2020 03:47:02 +0000 Received: (at 38807) by debbugs.gnu.org; 3 Jan 2020 03:46:18 +0000 Received: from localhost ([127.0.0.1]:40311 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1inDuj-00037T-KQ for submit@debbugs.gnu.org; Thu, 02 Jan 2020 22:46:17 -0500 Received: from mail-oln040092253056.outbound.protection.outlook.com ([40.92.253.56]:42579 helo=APC01-SG2-obe.outbound.protection.outlook.com) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1inDub-000377-To for 38807@debbugs.gnu.org; Thu, 02 Jan 2020 22:46:16 -0500 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=i78Dl8w0Xh42X4pD1gws+sTtRBemLLDhfKLtaSHRCpX+byTCcFk5evUMLOsqhXJG0UUh0qzvyV9Mpffqx2b2rLYTYT1OTAUOMdIDzFp1+xlZf6ddmJ/xZWlLfKzOVH91Tv9SXWLuUTITTXHBOyLjyKfDMYHofj4D36PGfshd4XKCWvjMFeFDn7b6zahNnNhmOfhrwFaOMWjybsM3DTeawCnTHyR95PSH5CD38b6aCIe5eqAURdOJl3SO80gzi0NC6xF9+hRqeElTGY0zKUw3iTOo5yFcEJ03G3c52vOLnpmd8Zh6wsr3Hkc625t5sNm2ol8iGixs2LSKp11DlKSS0w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=9uH9dAiobUwBcjwgU29jmGGQ1FDFP6sr3XAV0DHc4CU=; b=d+zidiyctDeE1vDFOmRnjRQDKqqkRgL04V7rBnKSANhsVKHlh9rTTh00tTSG658Szp5ghuNbKR81Jj7BlnPQdeJUUmL0RPoWMrZnIy2gAfMu+VwsIueYYZbrD3YPbjVTqikqCUGfSPI8/I54SYYcgpr2qU7xAhGX0uBc/M3g3n1gDud8vpjBUYxuYLM7q17YYLMEe+KhKkIeAwAA/hICuzrNexma+0AwPKMX5DbrroWYyuHM0/XMnND8QR4rWU9nsVdv5G7sbsHlnIn2DnCKANMza5Oz0zmTtU97+fh20ox4M2b6GmKt8/uMs6Rpd9qv1ColJq/KVhr8YPgUs58bXw== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=outlook.com; dmarc=pass action=none header.from=outlook.com; dkim=pass header.d=outlook.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=outlook.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=9uH9dAiobUwBcjwgU29jmGGQ1FDFP6sr3XAV0DHc4CU=; b=ScG1frLNCo+kT1QmLYs/155I+Fg+dhAqwlsHtlWBpTQNBfrvp1WaQ7/zNTVy1PRc9OqpES2ZTHeRT6on4KSVbE2cFAqnLOdbnn2DCwHZBEWwhQocTK4+lU9TMO+fVD0hX0NUHQvpFSCAqmsowBzN3YSKBX41/Wej28BtmUd23EEY7A9caYv3gQ4ZFr/x/OXHXpIZ8nA+PFtaFsjPIAz8CDzDM/p8zdt0tda1w44XQAm4fg0KNf/rSFmRSIgrWhjCQUgNsyc+OOxoi09F+82F8VH4WEC9i1OYSypaniul0KyxZQm+fM0G1cjUTkDPv5H8/8BtlB2V70kUoVGJo9JKfg== Received: from PU1APC01FT008.eop-APC01.prod.protection.outlook.com (10.152.252.53) by PU1APC01HT242.eop-APC01.prod.protection.outlook.com (10.152.252.238) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2602.11; Fri, 3 Jan 2020 03:46:01 +0000 Received: from PS1PR03MB3606.apcprd03.prod.outlook.com (10.152.252.51) by PU1APC01FT008.mail.protection.outlook.com (10.152.252.66) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2602.11 via Frontend Transport; Fri, 3 Jan 2020 03:46:01 +0000 X-IncomingTopHeaderMarker: OriginalChecksum:EEB3C838F186DCCB3BAD0604802CC6EDE8D9CC389C8F400373235038DCCF2B55; UpperCasedChecksum:D77D184EA3E65D4F561175B51FF0A52C64091D123D10FF62212446A954A115C6; SizeAsReceived:9184; Count:48 Received: from PS1PR03MB3606.apcprd03.prod.outlook.com ([fe80::b470:80bc:efed:9117]) by PS1PR03MB3606.apcprd03.prod.outlook.com ([fe80::b470:80bc:efed:9117%7]) with mapi id 15.20.2623.002; Fri, 3 Jan 2020 03:46:01 +0000 Date: Fri, 3 Jan 2020 11:45:51 +0800 From: HaiJun Zhang Message-ID: In-Reply-To: <83png3jgce.fsf@gnu.org> References: <83o8vpn8g1.fsf@gnu.org> <87mub9u0ld.fsf@gmx.de> <831rslmxih.fsf@gnu.org> <83png3jgce.fsf@gnu.org> X-Readdle-Message-ID: 960736d7-f0e0-48ba-a813-32ecde0396eb@Spark Content-Type: multipart/alternative; boundary="5e0eb8f5_20f88ea6_4379" X-ClientProxiedBy: HK2PR06CA0011.apcprd06.prod.outlook.com (2603:1096:202:2e::23) To PS1PR03MB3606.apcprd03.prod.outlook.com (2603:1096:803:4e::17) X-Microsoft-Original-Message-ID: <960736d7-f0e0-48ba-a813-32ecde0396eb@Spark> MIME-Version: 1.0 Received: from [192.168.1.103] (1.193.170.223) by HK2PR06CA0011.apcprd06.prod.outlook.com (2603:1096:202:2e::23) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2602.10 via Frontend Transport; Fri, 3 Jan 2020 03:45:59 +0000 X-Readdle-Message-ID: 960736d7-f0e0-48ba-a813-32ecde0396eb@Spark X-Microsoft-Original-Message-ID: <960736d7-f0e0-48ba-a813-32ecde0396eb@Spark> X-TMN: [yrg8YzurrgXTlVQtzR/7pYDyTeGQEzmL] X-MS-PublicTrafficType: Email X-IncomingHeaderCount: 48 X-EOPAttributedMessage: 0 X-MS-Office365-Filtering-Correlation-Id: da4f2ef4-a082-40b7-1c7e-08d78fff7331 X-MS-Exchange-SLBlob-MailProps: S/btQ8cKWiT+wYjZWBnt85AD+XVoWtM8+k+s6RbCos+EBMUM5/dTQuZKfFOgd/7x9o7tsQNG8wcWuBjcnsDipLRDcrlPCetbbTX8Dfter8UlEPfmGIrdTaNfb0kKyTj+UcWY5n0aBGDbKY+YfPfl4SWFu3Y978vasvTJADmc/ze8Svh0Eo5WbokhYRQIti25478HsVPUw6oDck9CP2o6x+fgnPdI9GW/5s85a6s7lAoAxUmTkdPeofdb05+Fd77o3KA2ZDNoNr5OvThb29DpduPAw3RIICadA2H9B1OuBFsbp4q1v4ekPS2E+Ji/Wan5ttzs2ENMS6LrdJdms0wIJ6ePpG71cU7qHP7dobqvAPMZS9zRMljsSMZEbJhjYuDK7dKaxGeAcCR2dBScmwjrVWTJW5DxN4nEJerKweqaEoYldUXylNM55s4sJGEfo7qI6WKE/6CFgZ59I/zrfNm7Sq5Q5l641O3yvarEoORX9YO1nIo0gOHkiS8YJow8stg8G9cPx9n6TR9zZbOvjwpL1oEYIr08LYQXMbwtOWQk8gCrpOu5srMha7DVArmJ6ZFbgXcb0YxNLMmBU49FymoxVfrZ61x06F5lyzwPt4xUFRilYBM4+V94aRadyzqH9YFC7f0d66AUOgrOEwl2DxDgO8Yy/B6+uVi5tiZ/mc51EeqN1KKLXTMPHJZqJ/wiYGTDrJFoYvRXQjq/iWgTLX+bGNQ/8xH5SuOVs+/X195Rf5NxjSy1Hr6ZpOiORHpqxjV2V36bjSQVPPc= X-MS-TrafficTypeDiagnostic: PU1APC01HT242: X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: MtENdZ5S3XTFOk1KI0HbTo1oYRIp5N9gFQj6adUpl3WmyRedRsNjS7yQ6uikzAC+JlMNd48U4dM/kPQCdW8g5nF4zQdq0STKuzi/VZ3g/IAeqbsnc6Mt64ar4/Dw8a1K3P9GCjPTB2ujHi2ZIuplpK0HGwbtTFBpcAwHN9EdDetcbcakheQ0vUHSrBEetyOU X-OriginatorOrg: outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: da4f2ef4-a082-40b7-1c7e-08d78fff7331 X-MS-Exchange-CrossTenant-OriginalArrivalTime: 03 Jan 2020 03:46:01.0594 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 84df9e7f-e9f6-40af-b435-aaaaaaaaaaaa X-MS-Exchange-CrossTenant-FromEntityHeader: Internet X-MS-Exchange-CrossTenant-RMS-PersistedConsumerOrg: 00000000-0000-0000-0000-000000000000 X-MS-Exchange-Transport-CrossTenantHeadersStamped: PU1APC01HT242 X-Spam-Score: 0.0 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) --5e0eb8f5_20f88ea6_4379 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline =E5=9C=A8 2020=E5=B9=B41=E6=9C=882=E6=97=A5 +0800 AM12:23=EF=BC=8CEli Zar= etskii =EF=BC=8C=E5=86=99=E9=81=93=EF=BC=9A > > Date: Wed, 1 Jan 2020 11:47:49 +0800 > > =46rom: HaiJun Zhang > > Cc: =2238807=40debbugs.gnu.org=22 <38807=40debbugs.gnu.org> > > > > My understanding of the display flow: > > 1. an event comes which causes redisplay > > More often than not, it is not an event, but a command that changes > Lisp data (buffer text, overlays, text properties, position of point, > new or deleted windows, etc.). > Thanks for your explanation. > > 2. the display engine prepares the glyph matrix > > 3. convert the glyph matrix to bitmap and display it > > > > I think lots of work are in 2. > > Actually, 3 is also a lot of work. Then 3 can be done in a separate thread from 2 and 1=3F --5e0eb8f5_20f88ea6_4379 Content-Type: text/html; charset="utf-8" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline
=E5=9C=A8 2020=E5=B9=B41=E6=9C=882=E6=97= =A5 +0800 AM12:23=EF=BC=8CEli Zaretskii <eliz@gnu.org>=EF=BC=8C= =E5=86=99=E9=81=93=EF=BC=9A
Date: Wed, 1 Jan 2020 = 11:47:49 +0800
From: HaiJun Zhang <netjune@outlook.com>
Cc: "38807@debbugs.gnu.org" <38807@debbugs.gnu.org>

My understanding of the display flow:
1. an event comes which causes redisplay

More often than not, it is not an event, but a command that changes
Lisp data (buffer text, overlays, text properties, position of point,
new or deleted windows, etc.).


Thanks for your explanation. 

2. the display engine = prepares the glyph matrix
3. convert the glyph matrix to bitmap and display it

I think lots of work are in 2.

Actually, 3 is also a lot of work. 

Then 3 can be done in a separate thread from 2 and 1?

--5e0eb8f5_20f88ea6_4379-- From unknown Wed Jul 30 13:11:05 2025 X-Loop: help-debbugs@gnu.org Subject: bug#38807: [Feature request]: Support lisp workers like web workers. Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 03 Jan 2020 06:00:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 38807 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: HaiJun Zhang Cc: 38807@debbugs.gnu.org, michael.albinus@gmx.de Received: via spool by 38807-submit@debbugs.gnu.org id=B38807.157803115623984 (code B ref 38807); Fri, 03 Jan 2020 06:00:02 +0000 Received: (at 38807) by debbugs.gnu.org; 3 Jan 2020 05:59:16 +0000 Received: from localhost ([127.0.0.1]:40333 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1inFzQ-0006Em-AC for submit@debbugs.gnu.org; Fri, 03 Jan 2020 00:59:16 -0500 Received: from eggs.gnu.org ([209.51.188.92]:34941) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1inFzP-0006EZ-4q for 38807@debbugs.gnu.org; Fri, 03 Jan 2020 00:59:15 -0500 Received: from fencepost.gnu.org ([2001:470:142:3::e]:42669) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1inFzJ-0004Ia-JY; Fri, 03 Jan 2020 00:59:09 -0500 Received: from [176.228.60.248] (port=2563 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1inFzI-0004Cj-8P; Fri, 03 Jan 2020 00:59:08 -0500 Date: Fri, 03 Jan 2020 07:59:05 +0200 Message-Id: <83r20hhyhi.fsf@gnu.org> From: Eli Zaretskii In-reply-to: (message from HaiJun Zhang on Fri, 3 Jan 2020 10:52:59 +0800) References: <83o8vpn8g1.fsf@gnu.org> <87mub9u0ld.fsf@gmx.de> <878smrtu65.fsf@gmx.de> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Spam-Score: -2.3 (--) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) > Date: Fri, 3 Jan 2020 10:52:59 +0800 > From: HaiJun Zhang > Cc: Eli Zaretskii , 38807@debbugs.gnu.org > > The threading support introduced in emacs 26 is cool. But it is too complex when every thread can control UI > and interact with user. While the web worker model is much simpler. How do you write a useful Lisp application for a thread if you have no way of displaying any messages? Besides, some low-level APIs you'd use in any Lisp will display messages even if your code doesn't. So some solution for user interaction from threads is still needed, or else the thread system will not be useful for writing Lisp programs. From unknown Wed Jul 30 13:11:05 2025 X-Loop: help-debbugs@gnu.org Subject: bug#38807: [Feature request]: Support lisp workers like web workers. Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 03 Jan 2020 06:03:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 38807 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: HaiJun Zhang Cc: 38807@debbugs.gnu.org, michael.albinus@gmx.de Received: via spool by 38807-submit@debbugs.gnu.org id=B38807.157803138024394 (code B ref 38807); Fri, 03 Jan 2020 06:03:02 +0000 Received: (at 38807) by debbugs.gnu.org; 3 Jan 2020 06:03:00 +0000 Received: from localhost ([127.0.0.1]:40337 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1inG31-0006LO-QH for submit@debbugs.gnu.org; Fri, 03 Jan 2020 01:03:00 -0500 Received: from eggs.gnu.org ([209.51.188.92]:39862) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1inG30-0006LB-Ml for 38807@debbugs.gnu.org; Fri, 03 Jan 2020 01:02:59 -0500 Received: from fencepost.gnu.org ([2001:470:142:3::e]:42739) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1inG2u-0004ds-TT; Fri, 03 Jan 2020 01:02:52 -0500 Received: from [176.228.60.248] (port=2792 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1inG2u-0005SD-55; Fri, 03 Jan 2020 01:02:52 -0500 Date: Fri, 03 Jan 2020 08:02:51 +0200 Message-Id: <83png1hyb8.fsf@gnu.org> From: Eli Zaretskii In-reply-to: (message from HaiJun Zhang on Fri, 3 Jan 2020 11:18:42 +0800) References: <83o8vpn8g1.fsf@gnu.org> <87mub9u0ld.fsf@gmx.de> <831rslmxih.fsf@gnu.org> <83lfqslafm.fsf@gnu.org> <83r20jjgg3.fsf@gnu.org> MIME-version: 1.0 Content-type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Spam-Score: -2.3 (--) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) > Date: Fri, 3 Jan 2020 11:18:42 +0800 > From: HaiJun Zhang > Cc: michael.albinus@gmx.de, 38807@debbugs.gnu.org > > Then these threads cannot really run Lisp at all, nor even directly > affect Lisp data. So in effect you want to be able to run threads > that don't enter the Lisp interpreter, nor modify any Lisp data. > > Is it because there are many global resources in infrastructure of network and filesystem functions? Yes. Every variable you want to reference is either global or local to some buffer, for example. Just look at any Lisp application in Emacs and try to analyze its dependence on the global state, and you will immediately see the problem. > Is there an efficient way for threads in module to communicate with emacs core? It is used for threads to > send result data to emacs core. The only thing I known is sending signals to emacs which is not too efficient. > I would like emacs core to create an event queue for modules and modules can send events to the queue. There are ways of communications (e.g., you can call any Emacs function), but if more is needed, we can add that. Some design is necessary, though, to identify what else is needed and why. > Yes. I don’t known how web browsers do this. Their web pages are rendered by different processes and then > displayed in the same window. Shared memory? From unknown Wed Jul 30 13:11:05 2025 X-Loop: help-debbugs@gnu.org Subject: bug#38807: [Feature request]: Support lisp workers like web workers. Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 03 Jan 2020 06:07:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 38807 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: HaiJun Zhang Cc: 38807@debbugs.gnu.org, michael.albinus@gmx.de, arthur.miller@live.com Received: via spool by 38807-submit@debbugs.gnu.org id=B38807.157803161324726 (code B ref 38807); Fri, 03 Jan 2020 06:07:01 +0000 Received: (at 38807) by debbugs.gnu.org; 3 Jan 2020 06:06:53 +0000 Received: from localhost ([127.0.0.1]:40341 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1inG6k-0006Qg-CL for submit@debbugs.gnu.org; Fri, 03 Jan 2020 01:06:53 -0500 Received: from eggs.gnu.org ([209.51.188.92]:57172) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1inG6i-0006QU-CN for 38807@debbugs.gnu.org; Fri, 03 Jan 2020 01:06:48 -0500 Received: from fencepost.gnu.org ([2001:470:142:3::e]:42773) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1inG6c-00083d-ET; Fri, 03 Jan 2020 01:06:42 -0500 Received: from [176.228.60.248] (port=3022 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1inG6b-0000YL-Py; Fri, 03 Jan 2020 01:06:42 -0500 Date: Fri, 03 Jan 2020 08:06:40 +0200 Message-Id: <83o8vlhy4v.fsf@gnu.org> From: Eli Zaretskii In-reply-to: (message from HaiJun Zhang on Fri, 3 Jan 2020 11:45:51 +0800) References: <83o8vpn8g1.fsf@gnu.org> <87mub9u0ld.fsf@gmx.de> <831rslmxih.fsf@gnu.org> <83png3jgce.fsf@gnu.org> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Spam-Score: -2.3 (--) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) > Date: Fri, 3 Jan 2020 11:45:51 +0800 > From: HaiJun Zhang > Cc: michael.albinus@gmx.de, arthur.miller@live.com, > 38807@debbugs.gnu.org > > 2. the display engine prepares the glyph matrix > 3. convert the glyph matrix to bitmap and display it > > I think lots of work are in 2. > > Actually, 3 is also a lot of work. > > Then 3 can be done in a separate thread from 2 and 1? How would that help? Until 3 is done, the user doesn't see the display updated. And if you think 3 doesn't touch any Lisp, then thats not true, just see how many times you find "Lisp_Object" in, say, xterm.c. From unknown Wed Jul 30 13:11:05 2025 X-Loop: help-debbugs@gnu.org Subject: bug#38807: [Feature request]: Support lisp workers like web workers. Resent-From: arthur miller Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 03 Jan 2020 13:37:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 38807 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: HaiJun Zhang , Eli Zaretskii , Michael Albinus Cc: "38807@debbugs.gnu.org" <38807@debbugs.gnu.org> Received: via spool by 38807-submit@debbugs.gnu.org id=B38807.15780585648613 (code B ref 38807); Fri, 03 Jan 2020 13:37:02 +0000 Received: (at 38807) by debbugs.gnu.org; 3 Jan 2020 13:36:04 +0000 Received: from localhost ([127.0.0.1]:40492 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1inN7P-0002ET-CL for submit@debbugs.gnu.org; Fri, 03 Jan 2020 08:36:04 -0500 Received: from mail-oln040092065092.outbound.protection.outlook.com ([40.92.65.92]:62689 helo=EUR01-HE1-obe.outbound.protection.outlook.com) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1inN7M-0002EE-KW for 38807@debbugs.gnu.org; Fri, 03 Jan 2020 08:35:57 -0500 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=FmGav5qWxdC7TTEo1CfVHd4Sa6W513vyfan9vWhEd4vS0m89M74cRUUf8EEMaqaYFe4bc4WUiGJtbBR9ip+XZXjFnMibmZ55KJItEhGttRyktDjFnyAduR8BmxfFowL8hhncFV5gj6zEGTSfy7pwnRxbBTsSwmQhaOzXs57r3/h9a5zJwc0CAGeeLG+Oq2mEjxXWFdNClgSHRcZh0KA2TNuza5Hh/iwjgnwlFRfmixHkl1BYDdAa5TIcvWGrVsUOn7RXho0rSfWf55PVvqpG6tt/GK0NyMmoaims1wikY2EhSK8dyCjB7wtp2Kp3ZghjlxnU8X0ecqkgpARFnW9JMA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=puWZBN+U5N0U5wGlvC/N5e0FEoDYtDqxPFWXIDNrLu0=; b=WkAAXqNOlb/5lIs9SgP/103J1G5VO4gV5cMFHQ48d61cESJmPOOYv0Em+JVI1wqp4eDaGt+4I6dHWnLhiHihROXzX9hDpPFlMKmQXstZPfzVrkxoBur0fI2VW+1h4b9TOC1l/nlcuWHLaMPBDvd/Yz9nU7yV/wgOg4jpKuQDrmEkyseF3zeJell+7lYQrj0bxF71j+n83HtLKJKSwXFEsxm3WEOEJQgIDSUb9YbI3y+XHTsp2J2JuGNFvP9Wm3UlpDwla86AP4VBxAlutj1bN6Zq8wZB1OHh+C3lnxmIpHT9axF0gfkK2plQZpwIdRyPfhdBQB2EbSJQbjg6w88ISA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=none; dmarc=none; dkim=none; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=live.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=puWZBN+U5N0U5wGlvC/N5e0FEoDYtDqxPFWXIDNrLu0=; b=u+pGRrEGJdRWu8T2AT0LQ2G/SkZQ18A5C9aZAl415HJ9lOyZ6dcrHO1/104GWCP9cNqbhjuBAkzEltqkfEdhWBl89Yfo/OZ8h86l4xjo0Nx2uPeZvPvkPKgDzUwhCHy+1XmjWOraxok5rT5LDUWzs7uUfKepORN5pUJbO/hKdZRjqDe0/wm/9zxlV2Icb9DduzHCDDDy31DsFV0z6Gac3Lx3GPvoBvfo7gVm9R4vtOXXf+KVChR2Gez7xbLYrw7cjhgtG6AEe27qXQ7sOZ8rn43xIlll91gtzgi+bzHnVghXkXrD/EEIolamIAtq9qjKy3Z0Kagk/lllH1VtwrS6Vg== Received: from DB5EUR01FT016.eop-EUR01.prod.protection.outlook.com (10.152.4.56) by DB5EUR01HT212.eop-EUR01.prod.protection.outlook.com (10.152.5.134) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2602.11; Fri, 3 Jan 2020 13:35:49 +0000 Received: from VI1P194MB0429.EURP194.PROD.OUTLOOK.COM (10.152.4.51) by DB5EUR01FT016.mail.protection.outlook.com (10.152.4.255) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2602.11 via Frontend Transport; Fri, 3 Jan 2020 13:35:49 +0000 Received: from VI1P194MB0429.EURP194.PROD.OUTLOOK.COM ([fe80::35f2:9ea2:efd6:1d46]) by VI1P194MB0429.EURP194.PROD.OUTLOOK.COM ([fe80::35f2:9ea2:efd6:1d46%5]) with mapi id 15.20.2602.012; Fri, 3 Jan 2020 13:35:49 +0000 From: arthur miller Thread-Topic: bug#38807: [Feature request]: Support lisp workers like web workers. Thread-Index: AQHVwLMSkHc7M0EltEWY5slrytb2ZKfYLr4AgADFR3k= Date: Fri, 3 Jan 2020 13:35:49 +0000 Message-ID: References: , In-Reply-To: Accept-Language: sv-SE, en-US Content-Language: sv-SE X-MS-Has-Attach: X-MS-TNEF-Correlator: x-incomingtopheadermarker: OriginalChecksum:9B134203E10E70E047F713CA6AD8E3FF4C742564E67A52DC286421D87B61B389; UpperCasedChecksum:7623980440F9A61E9842FED15B455364D3E4DB459DBD66AC05A9A532140A4E4C; SizeAsReceived:7183; Count:46 x-ms-exchange-messagesentrepresentingtype: 1 x-tmn: [NzFWnOfcYoCOnarTmCSzTmcTltSFgAAf] x-ms-publictraffictype: Email x-incomingheadercount: 46 x-eopattributedmessage: 0 x-ms-office365-filtering-correlation-id: a74a501b-83be-4b59-939b-08d79051d891 x-ms-exchange-slblob-mailprops: g0UYh8+NHeUvYvt5POT/Vv84pdyqlB0jbzvi4jzSGfoB/pOda2bhdHoiFiHS5UHDFpF7zgDsnfUMsfkWJ0smZva9qcAPvAfBIuuThTIcQQndAt17belDlag47dJHqyER4wMQlhg7QQqY39Q/dnjmWD32Bj+nZNYVgSc27lFTCuGaN0USlMhL/8gJQKMsqFlPKc7yyXJMTGk6cMbKI7rgvXUVb2jgyM6mv5WQd/XJZu8Q8x9wGkt9WZsvKNTeHwRDeyx3Bo7lL0z8/9hF1VPyDlw6161SST9QS8WvQHRrDleboZXCIcZYyqI08DRhbbzmYO1XYTZ/F7UxDzPv96nyVOHq9tpQ+bqYekThCHDD7AYscp8LRBTGBrJ2q2BCm0kScN63r8ri9U11gA85mequ+tyr9ZMQR/qYnT8vRi/y5dK8H7epnkIj1any3fnzoA9SgLZaYMcTFOlI5N3xFIzBFJ3yClqkdNPzwFQ5RrXaPOysL7qM/KMfBbab3lwdmOXtgVPs+cfiXsd37njz24nsYZqR/1ggMmRbJxwJxw80UC3XwGbI7byfMVjNAmDtNgB1kVVB+jqepHW841pMDLvPG2Iqi/rAg0Q+glwLcgH47idi1a+qikqw6vSEvvVAsBSAfPl01Rlt1VaqG80ewBJM/GKSoCUYmS+InmQeq7rThS1HA8TY9xdiJB2MElYQAV+QQZknjBEOL1rItdpZAfDlwrTcCva7BBGyQSeKqUxcjEv+wucgMRaeJmFkQNfrBskghC9Uub2Q9Ew= x-ms-traffictypediagnostic: DB5EUR01HT212: x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: 9Djx/ga+vTVPDBJuDmcwx+hI4h/O/EIiVAHTG0EfcBV+3y8258g9uDcYZw3mINT9DsEhRGSwd5a4gukeFLaJ97qt5piPxDb7k10bECL7hrNfldSkPyjmlEt6EurevqF66EaTOAbA24l673anesmJ140ytHB90uWkRa5SPfuGKsCG3b1r/0Grg0H0fuqLZyKP x-ms-exchange-transport-forked: True Content-Type: multipart/alternative; boundary="_000_VI1P194MB042914A4CF2CAF79C70210A696230VI1P194MB0429EURP_" MIME-Version: 1.0 X-OriginatorOrg: live.com X-MS-Exchange-CrossTenant-RMS-PersistedConsumerOrg: 00000000-0000-0000-0000-000000000000 X-MS-Exchange-CrossTenant-Network-Message-Id: a74a501b-83be-4b59-939b-08d79051d891 X-MS-Exchange-CrossTenant-rms-persistedconsumerorg: 00000000-0000-0000-0000-000000000000 X-MS-Exchange-CrossTenant-originalarrivaltime: 03 Jan 2020 13:35:49.5724 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Internet X-MS-Exchange-CrossTenant-id: 84df9e7f-e9f6-40af-b435-aaaaaaaaaaaa X-MS-Exchange-Transport-CrossTenantHeadersStamped: DB5EUR01HT212 X-Spam-Score: 0.0 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) --_000_VI1P194MB042914A4CF2CAF79C70210A696230VI1P194MB0429EURP_ Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: base64 SSBtZWFuIHRoYXQgZW1hY3NjbGllbnQgaXMgc29ydCBvZiByZW5kZXJpbmcgdGhyZWFkIHdoaWxl IEVtYWNzIHNlcnZlciBpcyBzb3J0IG9mIGhhcmQgd29ya2luZyBwYXJ0Lg0KDQpJIGhhdmUgaG9u ZXN0bHkgbmV2ZXIgbG9va2VkIGF0IHRoZSBjb2RlIGZvciBzZXJ2ZXIvY2xpZW50IHNvIEkgZG9u J3Qga25vdyBob3cgc2VwYXJhdGlvbiBpcyBkb25lLiBJIG1lbnQgaXQgbW9yZSBhcyBhIGxvZ2lj YWwgdmlldyBvZiB0aG9zZS5JdCB3b3VsZCBiZSBpbnRlcmVzdGluZyB0byBsZWFybiBtb3JlIGFi b3V0IGl0ICB0aG91Z2ggaWYgc29tZSBkZXYgd2hvIGlzIGludHJvZHVjZWQgaW4gaW50ZXJuYWxz IGNvdWxkIGEgbGluZSBvciB0d28gYW5kIGV4cGxhaW4gaG93IHJlc3BvbnNpYmlsaXR5IGlzIGRp dmlkZWQgYmV0d2VlbiB0aGUgdHdvLg0KDQpTa2lja2F0IGZyw6VuIG1pbiBTYW1zdW5nIEdhbGF4 eS1zbWFydHBob25lLg0KDQoNCg0KLS0tLS0tLS0gT3JpZ2luYWxtZWRkZWxhbmRlIC0tLS0tLS0t DQpGcsOlbjogSGFpSnVuIFpoYW5nIDxuZXRqdW5lQG91dGxvb2suY29tPg0KRGF0dW06IDIwMjAt MDEtMDMgMDI6NDkgKEdNVCswMTowMCkNClRpbGw6IEVsaSBaYXJldHNraWkgPGVsaXpAZ251Lm9y Zz4sIE1pY2hhZWwgQWxiaW51cyA8bWljaGFlbC5hbGJpbnVzQGdteC5kZT4sIGFydGh1ciBtaWxs ZXIgPGFydGh1ci5taWxsZXJAbGl2ZS5jb20+DQpLb3BpYTogMzg4MDdAZGViYnVncy5nbnUub3Jn DQrDhG1uZTogUkU6IGJ1ZyMzODgwNzogW0ZlYXR1cmUgcmVxdWVzdF06IFN1cHBvcnQgbGlzcCB3 b3JrZXJzIGxpa2Ugd2ViIHdvcmtlcnMuDQoNCuWcqCAyMDIw5bm0MeaciDHml6UgKzA4MDAgUE0x MDo1Mu+8jGFydGh1ciBtaWxsZXIgPGFydGh1ci5taWxsZXJAbGl2ZS5jb20+77yM5YaZ6YGT77ya DQoNCj4gV2UgY2FuIGV2ZW4ga2VlcCBhbGwgaW4gZW1hY3MgY3VycmVudGx5IGFzDQo+IHRoZSDi gJxVSSB0aHJlYWTigJ1hbmQgcnVuIGFub3RoZXIgbGlzcCBtYWNoaW5lID4gZm9yIGEgd29ya2Vy Lg0KDQpJc27igJl0IGVtYXNjLXNlcnZlci9lbWFjc2NsaWVudCBhbHJlYWR5IGFscmVhZHkgdGhh dD8NCg0KWWVzIGFuZCBuby4gVGhlIGVtYWNzY2xpZW50IGRvIHRvbyBsZXNzIHdvcmsgdG8gYmUg YSB3b3JrZXIuIFJhdGlvIG9mIHRoZWlyIHdvcmsgaXMgMTA6MT8gSSB3b3VsZCBpdCB0byBiZSAx OjEwPyBXb3JrZXJzIHNob3VsZCBkbyBtb3N0IGhlYXZ5IHdvcmsuDQoNCg== --_000_VI1P194MB042914A4CF2CAF79C70210A696230VI1P194MB0429EURP_ Content-Type: text/html; charset="utf-8" Content-Transfer-Encoding: base64 PGh0bWw+DQo8aGVhZD4NCjxtZXRhIGh0dHAtZXF1aXY9IkNvbnRlbnQtVHlwZSIgY29udGVudD0i dGV4dC9odG1sOyBjaGFyc2V0PXV0Zi04Ij4N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byI+PGJyPg0KPC9k aXY+DQo8ZGl2IG5hbWU9Im1lc3NhZ2VSZXBseVNlY3Rpb24iIGRpcj0iYXV0byI+Jmd0OyBXZSBj YW4gZXZlbiBrZWVwIGFsbCBpbiBlbWFjcyBjdXJyZW50bHkgYXMmbmJzcDs8L2Rpdj4NCjxkaXYg bmFtZT0ibWVzc2FnZVJlcGx5U2VjdGlvbiIgZGlyPSJhdXRvIj4mZ3Q7IHRoZSDigJxVSSB0aHJl YWTigJ1hbmQgcnVuIGFub3RoZXIgbGlzcCBtYWNoaW5lICZndDsgZm9yIGEgd29ya2VyLg0KPGRp diBkaXI9ImF1dG8iPjxicj4NCjwvZGl2Pg0KPGRpdiBkaXI9ImF1dG8iPklzbuKAmXQgZW1hc2Mt c2VydmVyL2VtYWNzY2xpZW50IGFscmVhZHkgYWxyZWFkeSB0aGF0PyZuYnNwOzwvZGl2Pg0KPC9k aXY+DQo8L2Jsb2NrcXVvdGU+DQo8YnI+DQo8ZGl2PlllcyBhbmQgbm8uIFRoZSBlbWFjc2NsaWVu dCBkbyB0b28gbGVzcyB3b3JrIHRvIGJlIGEgd29ya2VyLiBSYXRpbyBvZiB0aGVpciB3b3JrIGlz IDEwOjE/IEkgd291bGQgaXQgdG8gYmUgMToxMD8gV29ya2VycyBzaG91bGQgZG8gbW9zdCBoZWF2 eSB3b3JrLjwvZGl2Pg0KPGRpdiBkaXI9ImF1dG8iPjxicj4NCjwvZGl2Pg0KPC9kaXY+DQo8L2Rp dj4NCjwvYm9keT4NCjwvaHRtbD4NCg== --_000_VI1P194MB042914A4CF2CAF79C70210A696230VI1P194MB0429EURP_-- From unknown Wed Jul 30 13:11:05 2025 X-Loop: help-debbugs@gnu.org Subject: bug#38807: [Feature request]: Support lisp workers like web workers. Resent-From: arthur miller Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 03 Jan 2020 13:39:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 38807 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: HaiJun Zhang , Eli Zaretskii Cc: "38807@debbugs.gnu.org" <38807@debbugs.gnu.org>, "dgutov@yandex.ru" Received: via spool by 38807-submit@debbugs.gnu.org id=B38807.15780586938830 (code B ref 38807); Fri, 03 Jan 2020 13:39:01 +0000 Received: (at 38807) by debbugs.gnu.org; 3 Jan 2020 13:38:13 +0000 Received: from localhost ([127.0.0.1]:40497 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1inN9V-0002II-Lw for submit@debbugs.gnu.org; Fri, 03 Jan 2020 08:38:13 -0500 Received: from mail-oln040092066054.outbound.protection.outlook.com ([40.92.66.54]:2382 helo=EUR01-VE1-obe.outbound.protection.outlook.com) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1inN9U-0002I5-Ay for 38807@debbugs.gnu.org; Fri, 03 Jan 2020 08:38:09 -0500 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=RC3ZsUhtp4zQNSO+1IBix4mDryVdes0OglJJ0JQZcyth984M+1ty4zz6sMoLY8mdHDvesJDUpUdZslWhupWT6EVtbeoy8ECzm5RqxRsVS809FJu0+2pysU+tBHHjyYpgaa9b8xZxGWTYUNamrnzzDaEO3pj/FLj0AfEVapbRK+JiIs2ymQFd6Tjt73j4Rbsi43X5r1NfMXa/TrRyXWAcQ0KaNgi3aZF3a8ZiwR9JaT7tl7LK0VKjx83x+52ocljQDcHJxbUTOvpkWcwuiO/iL61n/iJraJ77FYJRIB1EFMVpJFwpl57pmeQrgkMQYEfiOtDedeBR6M1YEgmy45EHpg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=cb5Ycnx8RtdP7d6NWyhBYcsAJoRfxlPUQIajtrQf+QY=; b=B0anOn14/JU+Et1XLFGI9KEnkCYdRATXAj4t1YiVt3XK/tgWj2YHF6icjKTrrnH+9ju1HXMDnEzDchkaNKvHavCcq2nBMJOENJ2M4uiTxuO+gEHpxvercd46+EAPL4B7vGI4fi+zFVu2S4iXBb2BLHX3wHNiV3gc+5sXxzxxbmlilSLwbUa0c4HobqXRkhqyNqRXARlSKhLuTfe2lspuGYK/uIhol4mlx8Fa8J9VKqn+cpsmvSddta3yKAY7xG2EcTToiDy8NX6P0g3e2sCk5BRUbAgEBPnPxFIMK9d0tXq1p7LQtyyLtReO2NOwmT4NodtwNSP1xCWewHTJGKCOEw== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=none; dmarc=none; dkim=none; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=live.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=cb5Ycnx8RtdP7d6NWyhBYcsAJoRfxlPUQIajtrQf+QY=; b=Re4itTrmmAx63hQvBZB6gy9e9htUwnjZKb/QyABXAH/dJHXu+t8SNsvuvsTY2J0k212r3tQJofXW9Y89i3bV+NMLDMCagtv4M3wdA5P8YxELbJxffACINrJaCKAu8w9YuBxGAjzRnRWigGG6evNv/+s+q8sRPl2xzULfY+YkhrYkvNk6UGR+lcAc+Nx90YWJeRlRdxLJuqTqo+YTDmhiHNXyZ8PumGRAt+w0f6d5UR+UUj2kOfMYBT1tnmpphRtGxI2L9YllWKbv1rgGd4nU+BGKmmMOscIKD2lbiQmJpgGuPDnFCEPBE0wU3p5ZNrQirNLlGGV91oWM0kBY5jPoeQ== Received: from DB5EUR01FT016.eop-EUR01.prod.protection.outlook.com (10.152.4.52) by DB5EUR01HT243.eop-EUR01.prod.protection.outlook.com (10.152.5.235) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2602.11; Fri, 3 Jan 2020 13:38:01 +0000 Received: from VI1P194MB0429.EURP194.PROD.OUTLOOK.COM (10.152.4.51) by DB5EUR01FT016.mail.protection.outlook.com (10.152.4.255) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2602.11 via Frontend Transport; Fri, 3 Jan 2020 13:38:01 +0000 Received: from VI1P194MB0429.EURP194.PROD.OUTLOOK.COM ([fe80::35f2:9ea2:efd6:1d46]) by VI1P194MB0429.EURP194.PROD.OUTLOOK.COM ([fe80::35f2:9ea2:efd6:1d46%5]) with mapi id 15.20.2602.012; Fri, 3 Jan 2020 13:38:01 +0000 From: arthur miller Thread-Topic: bug#38807: [Feature request]: Support lisp workers like web workers. Thread-Index: AQHVvtIUlRPP0+Xs2kGZfAus7e+JfqfSzL+SgAAEoYCAAAz66YACSNKAgAAE/MiAAAcBt4AAwMTOgAJDHYCAAMFaVQ== Date: Fri, 3 Jan 2020 13:38:01 +0000 Message-ID: References: <83o8vpn8g1.fsf@gnu.org> <48d683e5-e0ec-2cbf-c8db-ad41cfc553e1@yandex.ru> <835zhxn5jg.fsf@gnu.org> <8336czlucz.fsf@gnu.org> <39f1e59e-08db-4862-98db-c31c3bcbab06@Spark> <83y2urjip6.fsf@gnu.org>, In-Reply-To: Accept-Language: sv-SE, en-US Content-Language: sv-SE X-MS-Has-Attach: X-MS-TNEF-Correlator: x-incomingtopheadermarker: OriginalChecksum:B2FEE0B69B9F4BB1B28A34944069C34647B5AEFAADB8E3E9C95921DD9D352EAC; UpperCasedChecksum:9B653EAB06484B4B3FC8467295523FBA6E6628941D97653711CBE7DADDAE3B12; SizeAsReceived:7659; Count:46 x-ms-exchange-messagesentrepresentingtype: 1 x-tmn: [ZgnNpsBY6HS84l+Zq8o++j3Sc8nr7sdU] x-ms-publictraffictype: Email x-incomingheadercount: 46 x-eopattributedmessage: 0 x-ms-office365-filtering-correlation-id: ff35c0b3-ffe1-48f5-e7cf-08d790522724 x-ms-exchange-slblob-mailprops: g0UYh8+NHeUvYvt5POT/Vv84pdyqlB0jbzvi4jzSGfoB/pOda2bhdFZna8hWx55QAPjUTjxXqKfYXWSZftxS+BK1/Ov4UhkH/TMbUcxgh2iP62DXnzmsu1VFhFqotyxiAO7mVdKtLw9AzJmYGHqKRMro1UOqRDuDIAR/xj9cswQhxhBKJpi5nVjVKWYs458JEHIR17uORtc3DgwJotc2ej0/lIu8DHYGziF4dJ3tauLcl6Zzyansu1HoXeW605VMJ+lI6xIJTRj+DV2IgqNaTFLdrEoxzvTOK5JgFJwBHmzWxk3fOvnmmF9AoBIins47wSteBi9of34RYgUWlgf0JwBICRnFC2W28p5CrJbsgoUeCmSGruJK+mmmf8wZqmcixisCa3Fo66HxD/ZA+tu+M3te9richxsuN/PmyeRdVJ4D1Clmi5X0R+2WytFcFnfMhc4QVlGN+OusvSIsJMTNdkixvfnhkaJ+sYthIcHpry2TsipdEpvqTkwTrUX8LuGpw2REzyS7+p5UPL0Rolvq4iRTcXK7tHm1wlgqJ9LRbIHzklUO8Qh2zeIJt/a28s+JJ2XV2gZXBlZmSzNbsINZHQ49IJFvn9POOTOyKeKkzU+s5TEMzCy59uAdozXsX+rpLYjwa7cCcb3Z8bYeePm75/15p4oh1jJEyT2PAajbY4SaCn5PwVRvboKQaUiAFKVI7194heFoW6nSwwVhzFcaO4yMI3OxTWAYKOg+pPiG32IvBt35+M9SOB1LVoyKoBn2p+6ajKDK7Mg= x-ms-traffictypediagnostic: DB5EUR01HT243: x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: 5C4VlPYeCrvt2oxxbuBMCp1BiudOTkt7FAEN8bemLizjnhADJVzp+G1r7tYggvvUgu07C/IslRCgmhkldZfM/6bshrAPU0P7PiCtfPpNbRSI84SicYOaT9QmXHhpkDdASkyGlMHlOTOlxBOoalErVI0/Y+Y5CFdLGFvfuotmkqC73Gwj3V/GVmOOeZ6Nvz6ftDG114uxN9Hks+dTs6VJ/EZKe/uesYNvXSWS0e4gJBw= x-ms-exchange-transport-forked: True Content-Type: multipart/alternative; boundary="_000_VI1P194MB0429E44173285FDDABCDB5A796230VI1P194MB0429EURP_" MIME-Version: 1.0 X-OriginatorOrg: live.com X-MS-Exchange-CrossTenant-RMS-PersistedConsumerOrg: 00000000-0000-0000-0000-000000000000 X-MS-Exchange-CrossTenant-Network-Message-Id: ff35c0b3-ffe1-48f5-e7cf-08d790522724 X-MS-Exchange-CrossTenant-rms-persistedconsumerorg: 00000000-0000-0000-0000-000000000000 X-MS-Exchange-CrossTenant-originalarrivaltime: 03 Jan 2020 13:38:01.3343 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Internet X-MS-Exchange-CrossTenant-id: 84df9e7f-e9f6-40af-b435-aaaaaaaaaaaa X-MS-Exchange-Transport-CrossTenantHeadersStamped: DB5EUR01HT243 X-Spam-Score: 1.0 (+) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) --_000_VI1P194MB0429E44173285FDDABCDB5A796230VI1P194MB0429EURP_ Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: base64 VGhpcyBpc3N1ZSBvbiB0aGVpciBnaXRodWIgbWlnaHQgaGVscCB5b3UgdG8gc3RhcnQgaW4gcmln aHQgZGlyZWN0aW9uIDotKToNCg0KDQpodHRwczovL2dpdGh1Yi5jb20vbWljcm9zb2Z0L3ZzY29k ZS9pc3N1ZXMvMTgzMw0KDQpJIGRvbid0IGlmIHRoaW5ncyBjaGFuZ2VkIHNpbmNlIDIwMTcgdGhv dWdoLg0KDQpTa2lja2F0IGZyw6VuIG1pbiBTYW1zdW5nIEdhbGF4eS1zbWFydHBob25lLg0KDQoN Cg0KLS0tLS0tLS0gT3JpZ2luYWxtZWRkZWxhbmRlIC0tLS0tLS0tDQpGcsOlbjogSGFpSnVuIFp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Pg0KRnJvbTogSGFpSnVu IFpoYW5nICZsdDtuZXRqdW5lQG91dGxvb2suY29tJmd0Ozxicj4NCkNjOiBkZ3V0b3ZAeWFuZGV4 LnJ1LCAzODgwN0BkZWJidWdzLmdudS5vcmc8YnI+DQo8YnI+DQpXaGlsZSB3aXRoIHRoZSBzYW1l IGRhcnQgcHJvamVjdCwgdGhlIFZTQ29kZSBoYXMgZ29vZCB1c2VyIHJlc3BvbnNpdmVuZXNzLiBB cyBmYXIgYXMgSSBrbm93biwgdGhlPGJyPg0KZXh0ZW5zaW9ucyBvZiBWU0NvZGUgcnVucyBpbiBz ZXBhcmF0ZSBwcm9jZXNzLjxicj4NCjwvYmxvY2txdW90ZT4NCjxicj4NCkNhbiB5b3UgZXZlbiBy ZW1vdGVseSBjb21wYXJlIHRoZSBkZWdyZWUgb2YgY29udHJvbCB0aGUgVlNDb2RlPGJyPg0KZXh0 ZW5zaW9uIGxhbmd1YWdlIGNhbiBoYXZlIG9uIHRoZSBVSSwgd2l0aCB3aGF0IEVtYWNzIGdpdmVz IHlvdT8mbmJzcDs8YnI+DQo8L2Jsb2NrcXVvdGU+DQo8YnI+DQo8ZGl2Pjxicj4NCjwvZGl2Pg0K PGRpdiBkaXI9ImF1dG8iPkkgd2lsbCB0cnkgdG8gZG8gaXQgd2hlbiBJIGhhdmUgdGltZS48L2Rp dj4NCjxkaXYgZGlyPSJhdXRvIj48YnI+DQo8L2Rpdj4NCjwvZGl2Pg0KPC9kaXY+DQo8L2JvZHk+ DQo8L2h0bWw+DQo= --_000_VI1P194MB0429E44173285FDDABCDB5A796230VI1P194MB0429EURP_-- From unknown Wed Jul 30 13:11:05 2025 X-Loop: help-debbugs@gnu.org Subject: bug#38807: [Feature request]: Support lisp workers like web workers. Resent-From: arthur miller Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 03 Jan 2020 14:12:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 38807 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: HaiJun Zhang , Eli Zaretskii Cc: "38807@debbugs.gnu.org" <38807@debbugs.gnu.org>, "michael.albinus@gmx.de" Received: via spool by 38807-submit@debbugs.gnu.org id=B38807.157806067511863 (code B ref 38807); Fri, 03 Jan 2020 14:12:01 +0000 Received: (at 38807) by debbugs.gnu.org; 3 Jan 2020 14:11:15 +0000 Received: from localhost ([127.0.0.1]:40508 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1inNfR-00035B-QN for submit@debbugs.gnu.org; Fri, 03 Jan 2020 09:11:14 -0500 Received: from mail-oln040092064099.outbound.protection.outlook.com ([40.92.64.99]:44650 helo=EUR01-DB5-obe.outbound.protection.outlook.com) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1inNfO-00034e-QM for 38807@debbugs.gnu.org; Fri, 03 Jan 2020 09:11:08 -0500 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=e2aWnpGPq/fO6JdRG5d6rz2WhhH41F5E7hvQPJBUt5wa9KmTHeC+5/GIz7hn1GWrHFr61IO0KUu9dQEVKErGLTfmeka438E+nEdpxW8TeC9GRjI5mEbpmh2dB20kqFlP12j7kCaWA4/sct8iuYGaHH162FHxepJrWwAlYdcf4QDnHscZobQsBT/rm3LFR8cnlEz3bkK/Qhgb8S5uASjQKNQObN+HO/3JDHBAsMc01nKGtr+w1DeUeyJ+MZeCwYv0DKu+UJ0gu8DgJRCzkUH8lHIbsPMwR8aX8GxNEz+KSGbbZ/3uc+wsC9UVduum+aXik52mxRJqc0p7uU1p7fMBHQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=UKd+qHExJenaF+wJUcNIWoNG4M1LrOKYBtvHqxGDi8U=; b=BMTWC+oO+sXUP9cq02U4s1uwkMY3D8AT0dTyN3OKLhITnoIqQ8NZ6j5FcH0jx3ccitqGy7vIWDCl/723FAVWh4Jp48p/gltPMl9XpZCGL3+1y6bGS2SoP2VhDVOANSixN4Gce54kBj2KJeQZf3hq+IEMJB+Uzlh/tAkAaTq4gU3TiIW5prqGy2AWIW+jdB3svzAYZY4k+6RpPjnCLEOUpDu9jbt+QIbIGUU+i/l2XyUd3n3+8gCy9lIoNGTW2GR1Mv0t8tsy9wguHHtWjDKHRKRwJBbp4zZZduBYgFo/b2vfWoNyOyKU3/BsxCQcjo5UR9lubFxtqD4qU8h5oQ3oXw== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=none; dmarc=none; dkim=none; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=live.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=UKd+qHExJenaF+wJUcNIWoNG4M1LrOKYBtvHqxGDi8U=; b=BZu+FpeNXmo2oWSYbdWQdOnl18urzNM7UqymfhfnKxzyUGLfwJ4hzOG6PEUPVQ9YMqRi8BSxxJYtCjRBPh6wdVL38M+0uxIVBmrE1F68mnkCLNu2QvN56r1tZgm30AgIy8qcSNGvF3xuBYEl5tNGfbIpfj+kxGkL43FttjzAFBSYvBAPsjCQw5NjIybHHPkGxz/Jz6JghEIdrSK9Z6LTo0OneirqHQDWLigv2bkE/tpe6E3I5zAEzohkL4SpjNCiyAgU5vdlHF2zW58rLeEnSbtcy2oEs5unaLX7JmJJcbdZXb/LXsEdXB5ET2iNm8uOKiLMPXNyUhqvahVoc9y46w== Received: from HE1EUR01FT018.eop-EUR01.prod.protection.outlook.com (10.152.0.55) by HE1EUR01HT162.eop-EUR01.prod.protection.outlook.com (10.152.1.104) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2602.11; Fri, 3 Jan 2020 14:10:59 +0000 Received: from VI1P194MB0429.EURP194.PROD.OUTLOOK.COM (10.152.0.55) by HE1EUR01FT018.mail.protection.outlook.com (10.152.0.175) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2602.11 via Frontend Transport; Fri, 3 Jan 2020 14:10:59 +0000 Received: from VI1P194MB0429.EURP194.PROD.OUTLOOK.COM ([fe80::35f2:9ea2:efd6:1d46]) by VI1P194MB0429.EURP194.PROD.OUTLOOK.COM ([fe80::35f2:9ea2:efd6:1d46%5]) with mapi id 15.20.2602.012; Fri, 3 Jan 2020 14:10:58 +0000 From: arthur miller Thread-Topic: bug#38807: [Feature request]: Support lisp workers like web workers. Thread-Index: AQHVvtIUlRPP0+Xs2kGZfAus7e+JfqfSzL+SgAA0zviAAA0p34AAWVcAgAELfYSAAK3LgIAA4FC2gAJOLACAALHIyw== Date: Fri, 3 Jan 2020 14:10:58 +0000 Message-ID: References: <83o8vpn8g1.fsf@gnu.org> <87mub9u0ld.fsf@gmx.de> <831rslmxih.fsf@gnu.org> <83lfqslafm.fsf@gnu.org> <83r20jjgg3.fsf@gnu.org>, In-Reply-To: Accept-Language: sv-SE, en-US Content-Language: sv-SE X-MS-Has-Attach: X-MS-TNEF-Correlator: x-incomingtopheadermarker: OriginalChecksum:062A49894BBF1897519066F3403DE64C378DD00727FEC7F3C985860C4D840B11; UpperCasedChecksum:51A5334140734CDABDBC63DFE4AD6636AD3917DD9E35886DCDCE2E2DC7350739; SizeAsReceived:7599; Count:46 x-ms-exchange-messagesentrepresentingtype: 1 x-tmn: [ThfMOXVW3O8MR8a1UN4qI2/TMGMITLlV] x-ms-publictraffictype: Email x-incomingheadercount: 46 x-eopattributedmessage: 0 x-ms-office365-filtering-correlation-id: b31dde80-f0ac-4df7-9d2e-08d79056c1d4 x-ms-exchange-slblob-mailprops: gJ3rbu4K3Dl0XNd4D7tSqyIyAdD0EbTX+cSrbdBCtAX7/NWltwbnBo8P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UR01HT162: x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: C5+4zJHxrpPky46hRgMaFVXgDJuVJ3+4t61J70lZSZ39KX+JnwFfvP68RH6mPTVFmSJzl+6jtF6Kv/ihkRVpR1o23+ds7B3KCaiYBZMHKDsi6nK4gVvNK80pvmGdfE9iH52evv2bA1g/O0dzrhVHHWzG2I2iWFQi1GdhE0ykp5iBe507wEmx/KV2grl7WhiPRV1se4Pma0E2uz16N32FZeKFepC5XiVBZgLA+EwS2sg= x-ms-exchange-transport-forked: True Content-Type: multipart/alternative; boundary="_000_VI1P194MB0429F49DDF16D1F3848B165D96230VI1P194MB0429EURP_" MIME-Version: 1.0 X-OriginatorOrg: live.com X-MS-Exchange-CrossTenant-RMS-PersistedConsumerOrg: 00000000-0000-0000-0000-000000000000 X-MS-Exchange-CrossTenant-Network-Message-Id: b31dde80-f0ac-4df7-9d2e-08d79056c1d4 X-MS-Exchange-CrossTenant-rms-persistedconsumerorg: 00000000-0000-0000-0000-000000000000 X-MS-Exchange-CrossTenant-originalarrivaltime: 03 Jan 2020 14:10:58.8818 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Internet X-MS-Exchange-CrossTenant-id: 84df9e7f-e9f6-40af-b435-aaaaaaaaaaaa X-MS-Exchange-Transport-CrossTenantHeadersStamped: HE1EUR01HT162 X-Spam-Score: 1.0 (+) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) --_000_VI1P194MB0429F49DDF16D1F3848B165D96230VI1P194MB0429EURP_ Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: base64 QXMgYSBjb25jZXB0LCBJIGFtIG5vdCBzdXJlIGEgdGhyZWFkIGlzIHRoZSBiZXN0IHNvbHV0aW9u IHRvIGltcGxlbWVudCBmb3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loop: help-debbugs@gnu.org Subject: bug#38807: [Feature request]: Support lisp workers like web workers. References: In-Reply-To: Resent-From: arthur miller Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 03 Jan 2020 14:20:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 38807 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Eli Zaretskii , HaiJun Zhang Cc: "38807@debbugs.gnu.org" <38807@debbugs.gnu.org>, "michael.albinus@gmx.de" Received: via spool by 38807-submit@debbugs.gnu.org id=B38807.157806118912634 (code B ref 38807); Fri, 03 Jan 2020 14:20:02 +0000 Received: (at 38807) by debbugs.gnu.org; 3 Jan 2020 14:19:49 +0000 Received: from localhost ([127.0.0.1]:40520 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1inNnp-0003Hi-8R for submit@debbugs.gnu.org; Fri, 03 Jan 2020 09:19:49 -0500 Received: from mail-oln040092065109.outbound.protection.outlook.com ([40.92.65.109]:53315 helo=EUR01-HE1-obe.outbound.protection.outlook.com) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1inNnn-0003HU-BH for 38807@debbugs.gnu.org; Fri, 03 Jan 2020 09:19:47 -0500 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=YnYIcGQXxc5NLMqWqap2y8FURQoOgucTuAuxHTW+n9SIHCcbw3DksYXdl5rpxl24nxmJsgyeVuzRhYLmmC9v2VzPK9uv8naRu5VlARMtp5JSCIgDF6bju+t490Rt/obJQjYkbvpIXCKklE8WYGbzq+4rg6d05JtqJAvuekBccfPS3Iu5ni/9pJrAAotgnGnlQXfJA2boI+oKfhF1JqKhk4TPWtRUliLEUgPLNuvYZem8zVjzO4v4DMk3hImf0Do3u1T5r5K/ltkkQvk8CAkQ+RkT77Ez2/cnh8yqC2mJMkgrBL5OiyRfa8HqCv+SYPSMmMKD6/agNUMQlkfgfa7LpQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=N/2msxsM9BKH2X+DmYfFoeqqdAMuELyErS8rsiYm/9s=; b=gQcgIQgTRVCsU4jpEOoVHRKoCTJOiPOlzdHvc3j+R0y6QB4QgD+HO+0POKN3qlWHgU657g390JrPgK+89Xw139E4MnwW6wA3hJLIl6Mb1aFdUMJeJYY8aFh0vTuyImHD4il6C6vhO8llLAEun+P16hOi4bxDE4uqoaDfTE7WXSiVg9RBL98H52nVteq9rIO/l3BHZzmVqfzBUqhk6s/cFDEebW74mfoaTfvssrZcBwfbiCmGmbxrPO9K2ueOxnGyv97fqHyAPTkWnRlj9sUpB3OWXb3OTyc84LIKQtgXDYkAS/+BZ98y/jeywxZ6Fqvic1vNYezYalO0/GD/jpvT8A== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=none; dmarc=none; dkim=none; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=live.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=N/2msxsM9BKH2X+DmYfFoeqqdAMuELyErS8rsiYm/9s=; b=kSl+3wfhXmlUPOwTI1SMPeVmdaLtEQu9BFjUgFZQLhcQysf/TCDfMUqZOdkqTMX251tY3XaUjcIlA43y4f5zakk+cVJwPY3FDr3RiaaQ6izySyaU6lDyLgxNVRv13Ct/aj9ttszA7NqsxPbCeg7FFBCnkmJv9hoZQRfmMujmsE6PsVeUMwwJk47BYFm3HcEWwE3sGqs09PJq12P/I6a3isCgj4HQ8w3p3Iy5OvrnGgAHp7DOEsgFq39H+Wd1WQwMnx4lXx7igBIMOt0Gv3ab/rw5IA59Waz4d/AuxN1FMlq9fASkE6qTaWyYLKIRH7rRJRfij7fB7lOKIu3bGYIu0g== Received: from HE1EUR01FT018.eop-EUR01.prod.protection.outlook.com (10.152.0.59) by HE1EUR01HT181.eop-EUR01.prod.protection.outlook.com (10.152.1.133) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2602.11; Fri, 3 Jan 2020 14:19:40 +0000 Received: from VI1P194MB0429.EURP194.PROD.OUTLOOK.COM (10.152.0.55) by HE1EUR01FT018.mail.protection.outlook.com (10.152.0.175) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2602.11 via Frontend Transport; Fri, 3 Jan 2020 14:19:40 +0000 Received: from VI1P194MB0429.EURP194.PROD.OUTLOOK.COM ([fe80::35f2:9ea2:efd6:1d46]) by VI1P194MB0429.EURP194.PROD.OUTLOOK.COM ([fe80::35f2:9ea2:efd6:1d46%5]) with mapi id 15.20.2602.012; Fri, 3 Jan 2020 14:19:40 +0000 From: arthur miller Thread-Topic: bug#38807: [Feature request]: Support lisp workers like web workers. Thread-Index: AQHVwkDWd+UbivXD2E+2xeJ/iZnsIg== Date: Fri, 3 Jan 2020 14:19:40 +0000 Message-ID: Accept-Language: sv-SE, en-US Content-Language: sv-SE X-MS-Has-Attach: X-MS-TNEF-Correlator: x-incomingtopheadermarker: OriginalChecksum:0E3FD3AF557812A9150E8EAB90FAEF046E0574584086C129ADD9EAD39605E05D; UpperCasedChecksum:9E03852C68F85D664E4AE1C0461529501977EBE9B7A5B82B01332474CBBE9879; SizeAsReceived:6906; Count:44 x-ms-exchange-messagesentrepresentingtype: 1 x-tmn: [feX2U5CBQfjViUUo0Or42UfGxaTqK+S3] x-ms-publictraffictype: Email x-incomingheadercount: 44 x-eopattributedmessage: 0 x-ms-office365-filtering-correlation-id: 209e0ef2-3dbb-4d23-eb09-08d79057f8c6 x-ms-exchange-slblob-mailprops: LSE3963YWCug6DGqjWCuOmsIuHmAEScahuVXwynK89q1zrVJHZ6wDaM9fz2q+IuT1HrWXZ9CzxzbB6M1cQKHcjN38I/jce6NRIorm2Cwy3bfsQXkDWkWbY+QR2AF7ivzK5MrYYrrt/1xPcOtIeqVC2/vBd4wEyXKZ+B7jjGzrq3uUJ3z4cCY3tdKAWAYf2uFf/c10BLmpkEXKLm+o1vjDAGtzAWcHMeysyD1/3hesKiC9EKtHV5V8QGYG1Nlbv9LZWh55pemCmKYz5D431RkcFY0ByrLpw6XmPHlwAWB1I1X3iuZii3ZZ/L5S6Tp3o21rjK6unUl47QnK2b1dS53Yoi00FL2s5vGBLcrQ7mKb4M0tnRxM8yvWHL/32IQ3HCn5kS2VyGzSBKEzMJqmPvgeU7/JAik48rX4QnaMGMkQRC8hmqlrVUDyWt4MnVKtPB0dafMxyVBQAjMV4n7IB+xatYSVGJ3geNB3hdDY/69lU4asV4fSCLWTcNJGAm/bd4nc6EvbJhMha+WKsHZOStqZ3IeAQ1CZIfJptZESSKaScT9VATatjkioMw6jrW6meMV0GioLaD+e6+ZEwYhJs/2lZgxqP1VoJEREMbVwd+SGF5WVoZIVXpXAdT5T+7cG/mqGXLziiVDvgSzgRSk2DTbRba0oVuVzNdm5WWxeZ24PCKX2bdIjP880Q== x-ms-traffictypediagnostic: HE1EUR01HT181: x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: Vhk3/QPZsPo4aO+TWaC3yM2zEDGvVbwWWeEzjFuS4Wf+wemb6yMnDNUnFL8RQlJ8t15HMInLK3Q3bnlnoWJsrdpnmrzI7w00aRXgPfUlO3N72F32vMPkvRxAEJolCh/eFgRk2KSAZccI3S/XxwUXmTcC1HzMEbjNPU6Sv27xIwTXeAIfyxEbKjKjgFHpnxFz x-ms-exchange-transport-forked: True Content-Type: multipart/alternative; boundary="_000_VI1P194MB0429878C36F54C7139F4B0AD96230VI1P194MB0429EURP_" MIME-Version: 1.0 X-OriginatorOrg: live.com X-MS-Exchange-CrossTenant-RMS-PersistedConsumerOrg: 00000000-0000-0000-0000-000000000000 X-MS-Exchange-CrossTenant-Network-Message-Id: 209e0ef2-3dbb-4d23-eb09-08d79057f8c6 X-MS-Exchange-CrossTenant-rms-persistedconsumerorg: 00000000-0000-0000-0000-000000000000 X-MS-Exchange-CrossTenant-originalarrivaltime: 03 Jan 2020 14:19:40.5635 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Internet X-MS-Exchange-CrossTenant-id: 84df9e7f-e9f6-40af-b435-aaaaaaaaaaaa X-MS-Exchange-Transport-CrossTenantHeadersStamped: HE1EUR01HT181 X-Spam-Score: 0.0 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) --_000_VI1P194MB0429878C36F54C7139F4B0AD96230VI1P194MB0429EURP_ Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: base64 DQoNCg0KDQpTa2lja2F0IGZyw6VuIG1pbiBTYW1zdW5nIEdhbGF4eS1zbWFydHBob25lLg0KDQoN Cg0KPg0KPiAgMi4gdGhlIGRpc3BsYXkgZW5naW5lIHByZXBhcmVzIHRoZSBnbHlwaCBtYXRyaXgN Cj4gIDMuIGNvbnZlcnQgdGhlIGdseXBoIG1hdHJpeCB0byBiaXRtYXAgYW5kIGRpc3BsYXkgaXQN Cj4NCj4gIEkgdGhpbmsgbG90cyBvZiB3b3JrIGFyZSBpbiAyLg0KPg0KPiAgQWN0dWFsbHksIDMg aXMgYWxzbyBhIGxvdCBvZiB3b3JrLg0KPg0KPiBUaGVuIDMgY2FuIGJlIGRvbmUgaW4gYSBzZXBh cmF0ZSB0aHJlYWQgZnJvbSAyIGFuZCAxPw0KDQo+IEhvdyB3b3VsZCB0aGF0IGhlbHA/ICBVbnRp bCAzIGlzIGRvbmUsIHRoZSB1c2VyIGRvZXNuJ3Qgc2VlIHRoZQ0KDQpDb3VsZG4ndCBwcm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gY2FuIG5vdCBiZSBkb25lIHVudGlsIHByZXZpb3VzIHdvcmsgaGFzIGZpbmlzaGVk LCBzbyBJIGRvbid0IGtub3cgaWYgRW1hY3MgY291bGQgaW50ZXJsZWF2ZSB0aGUgd29yayB3aXRo IHNvbWV0aGluZyBlbHNlIHVzZWZ1bD88YnI+DQo8YnI+DQo8L2Rpdj4NCjwvc3Bhbj48L2ZvbnQ+ DQo8L2JvZHk+DQo8L2h0bWw+DQo= --_000_VI1P194MB0429878C36F54C7139F4B0AD96230VI1P194MB0429EURP_-- From unknown Wed Jul 30 13:11:05 2025 X-Loop: help-debbugs@gnu.org Subject: bug#38807: [Feature request]: Support lisp workers like web workers. Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 03 Jan 2020 14:27:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 38807 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: arthur miller Cc: netjune@outlook.com, 38807@debbugs.gnu.org, michael.albinus@gmx.de Received: via spool by 38807-submit@debbugs.gnu.org id=B38807.157806161413272 (code B ref 38807); Fri, 03 Jan 2020 14:27:02 +0000 Received: (at 38807) by debbugs.gnu.org; 3 Jan 2020 14:26:54 +0000 Received: from localhost ([127.0.0.1]:40524 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1inNug-0003Ry-1Y for submit@debbugs.gnu.org; Fri, 03 Jan 2020 09:26:54 -0500 Received: from eggs.gnu.org ([209.51.188.92]:42561) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1inNue-0003Rk-3x for 38807@debbugs.gnu.org; Fri, 03 Jan 2020 09:26:52 -0500 Received: from fencepost.gnu.org ([2001:470:142:3::e]:59641) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1inNuY-0002lP-48; Fri, 03 Jan 2020 09:26:46 -0500 Received: from [176.228.60.248] (port=2325 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1inNuW-0003Wv-RR; Fri, 03 Jan 2020 09:26:45 -0500 Date: Fri, 03 Jan 2020 16:26:43 +0200 Message-Id: <834kxcipjw.fsf@gnu.org> From: Eli Zaretskii In-reply-to: (message from arthur miller on Fri, 3 Jan 2020 13:35:49 +0000) References: , X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Spam-Score: -2.3 (--) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) > From: arthur miller > CC: "38807@debbugs.gnu.org" <38807@debbugs.gnu.org> > Date: Fri, 3 Jan 2020 13:35:49 +0000 > > I mean that emacsclient is sort of rendering thread while Emacs server is sort of hard working part. No, it isn't. emacsclient just sends a command to Emacs telling it to visit a file and display it in a frame. All the rendering is done by the "server", i.e. Emacs itself. > I have honestly never looked at the code for server/client so I don't know how separation is done. It's easy to see that by reading server.el. From unknown Wed Jul 30 13:11:05 2025 X-Loop: help-debbugs@gnu.org Subject: bug#38807: [Feature request]: Support lisp workers like web workers. Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 03 Jan 2020 14:40:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 38807 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: arthur miller Cc: netjune@outlook.com, 38807@debbugs.gnu.org, michael.albinus@gmx.de Received: via spool by 38807-submit@debbugs.gnu.org id=B38807.157806237914466 (code B ref 38807); Fri, 03 Jan 2020 14:40:01 +0000 Received: (at 38807) by debbugs.gnu.org; 3 Jan 2020 14:39:39 +0000 Received: from localhost ([127.0.0.1]:40534 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1inO71-0003lF-Gp for submit@debbugs.gnu.org; Fri, 03 Jan 2020 09:39:39 -0500 Received: from eggs.gnu.org ([209.51.188.92]:33643) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1inO6y-0003ky-VC for 38807@debbugs.gnu.org; Fri, 03 Jan 2020 09:39:37 -0500 Received: from fencepost.gnu.org ([2001:470:142:3::e]:59929) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1inO6s-000072-On; Fri, 03 Jan 2020 09:39:30 -0500 Received: from [176.228.60.248] (port=3093 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1inO6q-0007FR-Sz; Fri, 03 Jan 2020 09:39:29 -0500 Date: Fri, 03 Jan 2020 16:39:27 +0200 Message-Id: <8336cwioyo.fsf@gnu.org> From: Eli Zaretskii In-reply-to: (message from arthur miller on Fri, 3 Jan 2020 14:19:40 +0000) References: X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Spam-Score: -2.3 (--) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) > From: arthur miller > CC: "michael.albinus@gmx.de" , "38807@debbugs.gnu.org" > <38807@debbugs.gnu.org> > Date: Fri, 3 Jan 2020 14:19:40 +0000 > > > Then 3 can be done in a separate thread from 2 and 1? > > > How would that help? Until 3 is done, the user doesn't see the > > Couldn't prepare and converting to bitmap, inclusive rendering the bitmap bo done in a separate thread from > displaying the same? We don't really generate a bitmap, it's an inaccurate description of what the terminal-specific backend of the display engine does. And if you change it to generate a bitmap, then doing so is most of the work, and it needs to consult Lisp data, at least in its current incarnation. So proposing that this runs in a separate thread still doesn't solve the problem of separating some significant workload from Lisp, that is something that needs to be designed. > Of course, displaying can not be done until previous work has finished, so I don't know if Emacs could > interleave the work with something else useful? In general, it is not useful to have a display system that doesn't update the screen in near-real time. If you ever tried editing via a slow remote connection, you know what I mean. So display must happen very soon after the command which triggers it finishes, or users will complain. From unknown Wed Jul 30 13:11:05 2025 X-Loop: help-debbugs@gnu.org Subject: bug#38807: [Feature request]: Support lisp workers like web workers. Resent-From: arthur miller Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 03 Jan 2020 15:16:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 38807 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Eli Zaretskii Cc: "netjune@outlook.com" , "38807@debbugs.gnu.org" <38807@debbugs.gnu.org>, "michael.albinus@gmx.de" Received: via spool by 38807-submit@debbugs.gnu.org id=B38807.157806450718381 (code B ref 38807); Fri, 03 Jan 2020 15:16:01 +0000 Received: (at 38807) by debbugs.gnu.org; 3 Jan 2020 15:15:07 +0000 Received: from localhost ([127.0.0.1]:41283 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1inOfH-0004mM-By for submit@debbugs.gnu.org; Fri, 03 Jan 2020 10:15:07 -0500 Received: from mail-oln040092066090.outbound.protection.outlook.com ([40.92.66.90]:1667 helo=EUR01-VE1-obe.outbound.protection.outlook.com) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1inOfF-0004lZ-0z for 38807@debbugs.gnu.org; Fri, 03 Jan 2020 10:15:02 -0500 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=e8GdGQGl31KYdBVQ2fHTmyWSLy1vCOa6oqfII08rgaOqZuOFt7SMIAA5K+vFn5RqTykaUmZvZbH2xPtNqDIrUMegYOyhl9I5nzuvudnVAwKG38tEzcCecsMoJK1qCbUvNSDgXzxeeByk3m+UfMAFF92oeGMlBnj38rsC+SIGXbk8UEZfQLBnNurzGpGxVC8llDDBD0YH+bn0Ky2gk2KNdcy2oFULe+/w4YozEULkik4e9oLqaskQHmTUThKezf1DEzOXEks92w1A/vH+/bEHDpXQ6b34BQfOpr/uwpnjavYZI2aGJNdFRX5wpJ9ODaTBRZiu+3bJcLBvLXzkzPcHpQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=AESnoYVnFQFkJMRv4Cfc2nxTPKKOOmjTDt10dgnM/4Y=; b=Z79t1ndAUejS4NrFuUMOktHKYP08XDem2ZbePciZRclYh35b7wWHdg4DQhPdynUNmo2rYJ1NBTb7U4TnHc/vNB2zOzx47/iOY/vKvO8ssT5mUc+CfF9zkVY/1urwiIhcT+PvmTJl7G4hmg3I6pguCMnIQQiNDXsWH083a3LJHTRJw7IA79mNifH3/XTfW3w+jx5SOL5ofwAfAUwqUmEvxAODE4iWLEF4Y+ZzoLUFB0K7ApCnBIvnPxccdvXzxmx1mv7dcBn9UernRMHiaQVIegOuy7DsfJBPekLWHrN5qEbCkS2kv++o/CF6Ja+Qn9v9nIBdobA0mZcuGpTTa920eQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=none; dmarc=none; dkim=none; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=live.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=AESnoYVnFQFkJMRv4Cfc2nxTPKKOOmjTDt10dgnM/4Y=; b=JC4ElH/hFr+NNsnD/3JbzR4CNcH08cfJg6JJJ2gEPmaUH8gNoXTJhYgA5F2ID/aXIKdeapudmASbaEiVSSlRJIBwNxrveZR98GBldt+x3uKy5LzUuY3gvJyUyVu0ZIOvvpKZuQ6Aftcx8iC+EP339PI157DXn1NZVixreOxZ4t90M7146c6/a047o7Cuf1KDvdUdpOAlr3m4HbqiTG/IPNHfbtvTuyyVqDXhfHBTLB9cJvGtUiq2T5HsvKpfWtFViVVZydoEsilNpFsUCtQw5RKMIg5Kjn99ARbJPdsabj7ggnviphSk2n2XTj5ZzAvPxnpAa5nO3F6TsQOhSkfpsA== Received: from DB5EUR01FT008.eop-EUR01.prod.protection.outlook.com (10.152.4.52) by DB5EUR01HT081.eop-EUR01.prod.protection.outlook.com (10.152.5.203) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2602.11; Fri, 3 Jan 2020 15:14:54 +0000 Received: from VI1P194MB0429.EURP194.PROD.OUTLOOK.COM (10.152.4.60) by DB5EUR01FT008.mail.protection.outlook.com (10.152.4.96) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2602.11 via Frontend Transport; Fri, 3 Jan 2020 15:14:54 +0000 Received: from VI1P194MB0429.EURP194.PROD.OUTLOOK.COM ([fe80::35f2:9ea2:efd6:1d46]) by VI1P194MB0429.EURP194.PROD.OUTLOOK.COM ([fe80::35f2:9ea2:efd6:1d46%5]) with mapi id 15.20.2602.012; Fri, 3 Jan 2020 15:14:53 +0000 From: arthur miller Thread-Topic: bug#38807: [Feature request]: Support lisp workers like web workers. Thread-Index: AQHVwLMSkHc7M0EltEWY5slrytb2ZKfYLr4AgADFR3mAAA5CzoAADWxL Date: Fri, 3 Jan 2020 15:14:53 +0000 Message-ID: References: , , <834kxcipjw.fsf@gnu.org> In-Reply-To: <834kxcipjw.fsf@gnu.org> Accept-Language: sv-SE, en-US Content-Language: sv-SE X-MS-Has-Attach: X-MS-TNEF-Correlator: x-incomingtopheadermarker: OriginalChecksum:D490B0A41E38D8AD6986A2C13F8FAB74936E524B42C2B5273EE2B79A8CEB82DC; UpperCasedChecksum:20689B6389FF7B9F621B0E2696D25F3BA614E509B468827637F9045F705D5731; SizeAsReceived:7265; Count:46 x-ms-exchange-messagesentrepresentingtype: 1 x-tmn: [Lnn9ZxDX0FyCEj7b95BRgusdgnM5dHIz] x-ms-publictraffictype: Email x-incomingheadercount: 46 x-eopattributedmessage: 0 x-ms-office365-filtering-correlation-id: 4b909aa2-a6bb-4394-9646-08d7905faf9a x-ms-exchange-slblob-mailprops: f36zkjAOy3U+Ij3OVPtjyW2UAf+f1Uvn+yQS7rA9s5ElYbYXZs2JbEbFQIeRtm7WFK7HxD+OkxOwx8L7LR6RYv3BxkWmdQSVr1qTo7ItpM6+FufcHDNKcOGy5vQ5iLi09UDsv+yJ/Zkid2BP0qQtSNhalOjDm7ciwZ6p1EQuoHAR/F7kJuOH38rBOfQ5THcOM9p2tbhO+VXjkexfPQJcxhhmOmHlxAZvaleRhupOgUZ6B417otxh5/UwwZtwjw3a+6CQZovHPsTcxof+tGSSVCK3yBbYIMHoRi+eS0ZEDYXnCtLQjnEuhgdcULS7BtTPlKGNycpGJDMe1CVFTQWggJKKueG+voEipu9V+HaNiFw4g4WqHBttFBywWzvSX/8TQaTC7XUUoxxzMdymiB4WQ/9/s4AghCOwvQD50mQRAcYRuoURiK8dk1e2BCj8l3M/9PAo5HNb8v3nC2M0G5f3YNz2SU++wRpBIpRm2rn+n40LVpFZRBMBy6zMI+ak6NKGXsuZlPlIfjQkE3hmGF6eG/r03KDHO0QoPA9I4mXhtHIpzA2j3pKNdN2JeeLYI+yO9m9Ks1qK38gMpvoCXfKlxj2HEuVKNg+sFhdZ9QE0u9GO1hK7+khjLdBZqPWGrbFWsBssjsKGyJlc3382XqWicmDYKARsUSBnYc6arwT5vNX/ZfGuR1A78JE2RMSdwGAMvgxkZoCcMnMjWszVpdOhhGDE1jLu9w1/UYccKIfmwbY= x-ms-traffictypediagnostic: DB5EUR01HT081: x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: CGnHbQWd7dYh+qrEn1BgLtZSNIjxeeZgYxkAt/IVdKxHyuDJGhsmFHUquj9RoBDV2i6XSiagz5qxyZOt8dSJByNRVHDyh/DlEl+fot/JGPZ7gp0dewhWND5cbEJgQusrGZbD0RH7Cw8fZyF+KMrimYTTA3mg2Nk+beqOI0R9RHNquhLQ4L8qwylLGU5dEAbo x-ms-exchange-transport-forked: True Content-Type: multipart/alternative; boundary="_000_VI1P194MB0429FCDE82DC4F01333039AE96230VI1P194MB0429EURP_" MIME-Version: 1.0 X-OriginatorOrg: live.com X-MS-Exchange-CrossTenant-RMS-PersistedConsumerOrg: 00000000-0000-0000-0000-000000000000 X-MS-Exchange-CrossTenant-Network-Message-Id: 4b909aa2-a6bb-4394-9646-08d7905faf9a X-MS-Exchange-CrossTenant-rms-persistedconsumerorg: 00000000-0000-0000-0000-000000000000 X-MS-Exchange-CrossTenant-originalarrivaltime: 03 Jan 2020 15:14:53.7721 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Internet X-MS-Exchange-CrossTenant-id: 84df9e7f-e9f6-40af-b435-aaaaaaaaaaaa X-MS-Exchange-Transport-CrossTenantHeadersStamped: DB5EUR01HT081 X-Spam-Score: 1.0 (+) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) --_000_VI1P194MB0429FCDE82DC4F01333039AE96230VI1P194MB0429EURP_ Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Aha. Ok, thx f=F6r the info. I didnt know lyckas implemented. Will take a l= ook at server.el. Skickat fr=E5n min Samsung Galaxy-smartphone. -------- Originalmeddelande -------- Fr=E5n: Eli Zaretskii Datum: 2020-01-03 15:26 (GMT+01:00) Till: arthur miller Kopia: netjune@outlook.com, michael.albinus@gmx.de, 38807@debbugs.gnu.org =C4mne: Re: bug#38807: [Feature request]: Support lisp workers like web wor= kers. > From: arthur miller > CC: "38807@debbugs.gnu.org" <38807@debbugs.gnu.org> > Date: Fri, 3 Jan 2020 13:35:49 +0000 > > I mean that emacsclient is sort of rendering thread while Emacs server is= sort of hard working part. No, it isn't. emacsclient just sends a command to Emacs telling it to visit a file and display it in a frame. All the rendering is done by the "server", i.e. Emacs itself. > I have honestly never looked at the code for server/client so I don't kno= w how separation is done. It's easy to see that by reading server.el. --_000_VI1P194MB0429FCDE82DC4F01333039AE96230VI1P194MB0429EURP_ Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable
Aha. Ok, thx f=F6r the info. I didnt know lyckas implemen= ted. Will take a look at server.el.



Skickat fr=E5n min= Samsung Galaxy-smartphone.



-------- Originalmeddelande --------
Fr=E5n: Eli Zaretskii <eliz@gnu.org>
Datum: 2020-01-03 15:26 (GMT+01:00)
Till: arthur miller <arthur.miller@live.com>
Kopia: netjune@outlook.com, michael.albinus@gmx.de, 38807@debbugs.gnu.= org
=C4mne: Re: bug#38807: [Feature request]: Support lisp workers like we= b workers.

> From: arthur miller <arthur.miller@live.co= m>
> CC: "38807@debbugs.gnu.org" <38807@debbugs.gnu.org> > Date: Fri, 3 Jan 2020 13:35:49 +0000
>
> I mean that emacsclient is sort of rendering thread while Emacs server= is sort of hard working part.

No, it isn't.  emacsclient just sends a command to Emacs telling it to=
visit a file and display it in a frame.  All the rendering is done by<= br> the "server", i.e. Emacs itself.

> I have honestly never looked at the code for server/client so I don't = know how separation is done.

It's easy to see that by reading server.el.
--_000_VI1P194MB0429FCDE82DC4F01333039AE96230VI1P194MB0429EURP_-- From unknown Wed Jul 30 13:11:05 2025 X-Loop: help-debbugs@gnu.org Subject: bug#38807: [Feature request]: Support lisp workers like web workers. Resent-From: HaiJun Zhang Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 04 Jan 2020 05:21:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 38807 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Eli Zaretskii Cc: 38807@debbugs.gnu.org, michael.albinus@gmx.de Received: via spool by 38807-submit@debbugs.gnu.org id=B38807.15781152098518 (code B ref 38807); Sat, 04 Jan 2020 05:21:02 +0000 Received: (at 38807) by debbugs.gnu.org; 4 Jan 2020 05:20:09 +0000 Received: from localhost ([127.0.0.1]:42364 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1inbr7-0002DJ-Fe for submit@debbugs.gnu.org; Sat, 04 Jan 2020 00:20:09 -0500 Received: from mail-oln040092254048.outbound.protection.outlook.com ([40.92.254.48]:6161 helo=APC01-PU1-obe.outbound.protection.outlook.com) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1inbr4-0002Ce-4L for 38807@debbugs.gnu.org; Sat, 04 Jan 2020 00:20:07 -0500 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=dm7xxqItiTQ+TPgRw2SaDVm8n94Fgnb7Mi/HraTxLOMIVweUpMVJxv4+EEB8SRYiaqj878kgaf5DQBzzZR7BYs02G7ucqCqqtMxFQa0ZqB3QkZdQuiAOTGpYAXAxJExutDo40CmvpPkMJcDTz5N3Uuj3S9z2/9oWLzafypP5VA5xYy6g8ofM4A/j+k5oFQhQ9pM6FlKx7BSf6HdMOB+B38RkIAnG8qXdAj1/FkmT6qLh9mAsvj3eiw4v/LRwL/jsbOsf4rC8gIo1pJ5OIn7QgtsaLqyU2nLB53FE3YTIbSQk+rkcr9Tdd2jcUMkwgRpadPHGurm+Uv1nxBSTH0coQQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=PEdRf0s4dQW1skFkxmM66eX++rykXWcHfiuIe6DoX9o=; b=I6LjGf3QkdN71+8RH+KSJg3pjMfwwuotk5MDXZCEPl6TifUd9cMatPWflXRmHQ5yqH+3g4NjD/5LAhDVeWLunGxQqA3tPzDwS6GtlZtu9JHitIEN+2LxhKER/Iahi1fvYy1/vYP0CHIXmGUkrwXL7B1j+/QwvwMLkIPcfXDVt8Nivfr9n40qwD1dMPHiBeBfaZOJhO2I+HFlS+WHrZVAXK60vD0sEV7qLxVhTf38U1+K+8epta74Mc/DyedfWYfatDb0PKji/qp65+FBwsHbPzoC7oC6o2BqTFP6AD/SGIY1Si8zMXkv5wmGpb648sOKyZvzxyeDHLD7cGsaldzJow== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=outlook.com; dmarc=pass action=none header.from=outlook.com; dkim=pass header.d=outlook.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=outlook.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=PEdRf0s4dQW1skFkxmM66eX++rykXWcHfiuIe6DoX9o=; b=nw/0uIzK2ffKx/IPsgRWSr02Oax64Km2xEU3tiqFdi55B5yGHw+iHjWE1kM8zUU0D0ZoAGD3ObCDhxHABS/PyvAnUIejV1Elb2SqiqeBIMpmoxCt1rVzdmoXoTdfxUrfqW5PzadgnWfbS62IC5/wziCipFdTqxE9/s4zPpOcMaeqUkL+XLu+jHLxLh6pbo4viLYUTaw8+CI7mgJlYCx0l12zTxnnflpVi+hNhWBGPbwMrJ8XTOB7Eydt+VNF28q4Mm6E2UbRkoe42wm3Swkz8jscqs5YxNretJ0tTqPgUQejBUBHFjP1IKahCigXroBLGR/4dyYJs0Dbip3+EYiqWA== Received: from SG2APC01FT015.eop-APC01.prod.protection.outlook.com (10.152.250.52) by SG2APC01HT226.eop-APC01.prod.protection.outlook.com (10.152.251.52) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2602.11; Sat, 4 Jan 2020 05:19:55 +0000 Received: from PS1PR03MB3606.apcprd03.prod.outlook.com (10.152.250.55) by SG2APC01FT015.mail.protection.outlook.com (10.152.250.181) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2602.11 via Frontend Transport; Sat, 4 Jan 2020 05:19:55 +0000 X-IncomingTopHeaderMarker: OriginalChecksum:BE35A8F92B24175FF7D1C21787FF490778964631DEBE3B0E4FE96262C841F7EB; UpperCasedChecksum:34C6107FD8C4E92577EF0FBE0DC9FD47EDC776D269B936A92CAAD46514D0E4CE; SizeAsReceived:9082; Count:48 Received: from PS1PR03MB3606.apcprd03.prod.outlook.com ([fe80::b470:80bc:efed:9117]) by PS1PR03MB3606.apcprd03.prod.outlook.com ([fe80::b470:80bc:efed:9117%7]) with mapi id 15.20.2623.002; Sat, 4 Jan 2020 05:19:55 +0000 Date: Sat, 4 Jan 2020 13:19:46 +0800 From: HaiJun Zhang Message-ID: In-Reply-To: <83r20hhyhi.fsf@gnu.org> References: <83o8vpn8g1.fsf@gnu.org> <87mub9u0ld.fsf@gmx.de> <878smrtu65.fsf@gmx.de> <83r20hhyhi.fsf@gnu.org> X-Readdle-Message-ID: fe488a9e-a777-447c-8e78-c2b92189a0b3@Spark Content-Type: multipart/alternative; boundary="5e102078_5d5ce761_4379" X-ClientProxiedBy: HK2PR03CA0064.apcprd03.prod.outlook.com (2603:1096:202:17::34) To PS1PR03MB3606.apcprd03.prod.outlook.com (2603:1096:803:4e::17) X-Microsoft-Original-Message-ID: MIME-Version: 1.0 Received: from [192.168.1.103] (1.199.245.197) by HK2PR03CA0064.apcprd03.prod.outlook.com (2603:1096:202:17::34) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2623.4 via Frontend Transport; Sat, 4 Jan 2020 05:19:54 +0000 X-Readdle-Message-ID: fe488a9e-a777-447c-8e78-c2b92189a0b3@Spark X-Microsoft-Original-Message-ID: X-TMN: [FipaH0un/J70MhTQNrH4SNaRu5ePO695] X-MS-PublicTrafficType: Email X-IncomingHeaderCount: 48 X-EOPAttributedMessage: 0 X-MS-Office365-Filtering-Correlation-Id: 992c937b-76ed-47cb-009d-08d790d5bbf8 X-MS-TrafficTypeDiagnostic: SG2APC01HT226: X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: nmVKy8Q2R3HWC7BkuB6VOUG4G3/+iYj+tC5EEjpatY6uwtFU8CZeLTFYSrGC4TaV412lSNFHAsNp9zgGJtc0RGaceBmy17nIZrnVBAYWy+03lPwgO8BqyEs72tBaGz45i0wWTghiqYYAi0DLK6zJradjJEzRrLQ7J6KW/mvNPePgXKqKsu1/BH1GsM8kYHne X-OriginatorOrg: outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 992c937b-76ed-47cb-009d-08d790d5bbf8 X-MS-Exchange-CrossTenant-OriginalArrivalTime: 04 Jan 2020 05:19:55.4789 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 84df9e7f-e9f6-40af-b435-aaaaaaaaaaaa X-MS-Exchange-CrossTenant-FromEntityHeader: Internet X-MS-Exchange-CrossTenant-RMS-PersistedConsumerOrg: 00000000-0000-0000-0000-000000000000 X-MS-Exchange-Transport-CrossTenantHeadersStamped: SG2APC01HT226 X-Spam-Score: 0.0 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) --5e102078_5d5ce761_4379 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline =E5=9C=A8 2020=E5=B9=B41=E6=9C=883=E6=97=A5 +0800 PM1:59=EF=BC=8CEli Zare= tskii =EF=BC=8C=E5=86=99=E9=81=93=EF=BC=9A > > How do you write a useful Lisp application for a thread if you have no > way of displaying any messages=3F Workers are background workers. They don=E2=80=99t display messages direc= tly. They post the error messages to the UI part of the lisp application.= =46or a lisp application such as an email client, it is splitted to two p= arts: the UI part and the worker part. The UI part may has two callbacks(= or event handlers): 1. on=5Fnew=5Femail 2. on=5Ferror If the worker fetches an email successfully, it sends an event to the UI = part and the on=5Fnew=5Femail callback of the UI part will be called. If = the worker fails, it sends an error to the UI part and the on=5Ferror cal= lback will be called. The on=5Ferror callback can display the error messa= ge to user. --5e102078_5d5ce761_4379 Content-Type: text/html; charset="utf-8" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline
=E5=9C=A8 2020=E5=B9=B41=E6=9C=883=E6=97= =A5 +0800 PM1:59=EF=BC=8CEli Zaretskii <eliz@gnu.org>=EF=BC=8C=E5= =86=99=E9=81=93=EF=BC=9A

How do you write a useful Lisp application for a thread if you have no
way of displaying any messages?  

Workers are background workers. They don=E2=80=99t displa= y messages directly. They post the error messages to the UI part of the lis= p application.

For a lisp application such as an email client, it is spl= itted to two parts: the UI part and the worker part. The UI part may has tw= o callbacks(or event handlers):
1. on_new_email
2. on_error

If the worker fetches an email successfully, it sends an = event to the UI part and the on_new_email callback of the UI part will be c= alled. If the worker fails, it sends an error to the UI part and the on_err= or callback will be called. The on_error callback can display the error mes= sage to user.


--5e102078_5d5ce761_4379-- From unknown Wed Jul 30 13:11:05 2025 X-Loop: help-debbugs@gnu.org Subject: bug#38807: [Feature request]: Support lisp workers like web workers. Resent-From: HaiJun Zhang Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 04 Jan 2020 05:27:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 38807 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Eli Zaretskii Cc: 38807@debbugs.gnu.org, michael.albinus@gmx.de Received: via spool by 38807-submit@debbugs.gnu.org id=B38807.15781156039102 (code B ref 38807); Sat, 04 Jan 2020 05:27:01 +0000 Received: (at 38807) by debbugs.gnu.org; 4 Jan 2020 05:26:43 +0000 Received: from localhost ([127.0.0.1]:42369 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1inbxT-0002Mk-9B for submit@debbugs.gnu.org; Sat, 04 Jan 2020 00:26:43 -0500 Received: from mail-oln040092253080.outbound.protection.outlook.com ([40.92.253.80]:29180 helo=APC01-SG2-obe.outbound.protection.outlook.com) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1inbxS-0002MU-4E for 38807@debbugs.gnu.org; Sat, 04 Jan 2020 00:26:42 -0500 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=mXYc04u1rAt2RE4OOZIwabve3NlINz254n3k+MspHCtY9xU20wr7mbqzDLgqAXYQjOThZt5n0WovDgVE2JEd5ZtD06EgGkrs515Y1D5zZ+7hsUdjDDDjCnVwvswmS0MVigtFYI97kOh+2dZkLDBozq6UF50gvsk6OKkFUv6Ya7hVzp728JdY67TU3pA/0XLC2KwlvGrPGB8xWZg/zFdQBoIErTQ0RgmYJQ7RQ3bayn9d/pluKMz5r1X2Lub1fnoeIecgHzSaWjFsz809L6t0N8YODIOSbrJTo2jawOiEPmpxZB26WpcTDRQ+gskkWU4c6TAHlYc7cAhQuKCbwPj0dQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=IR9DDRn+npeNOwGSFA9TqzHdFBw7b3fXRb14BuRr3iU=; b=W8IlIYlDOhOpGcljUe8xY7PlnlVbHldJheDsE92tSkSIUw7ZJzO1AbddTu1Jgx0eH3Evy4CPriwh+IR7k1LLkFfvZpTqFzwc5VXfRs0kjh5uDbYKwIRJGilgPna1i6gKGWYMC+FiAC63IyMOsTnycY2ofsU2nlDq5Wa+dfGwWRdmZHMRq0Dc1AWxDJBpKQ4Xtf/5Q6X74/NJZmppFVIzxz0LPhyjONWDdOSyv5sXq1vjfCkcWEdiZt2ANI+KNf/1gF/wwJtopyq4TCno8pUR214JLGr91n9Xncb70jszFnxN9vcAY3iZmcjp8Zn3jnXS9oiIKerRqmxqYkjHsz0Asw== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=outlook.com; dmarc=pass action=none header.from=outlook.com; dkim=pass header.d=outlook.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=outlook.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=IR9DDRn+npeNOwGSFA9TqzHdFBw7b3fXRb14BuRr3iU=; b=JO8vu/Lt6DP1qR6DRa3uZAccPCPFIv+sxCB/NNMGREyjzee+70/lIGL6+waTSiLwbRBMXvSsg/7rJdLH4MU4aCpEKRtwZpwxSICGvfC+T+8jX6v8xVHoZVplw8fix6U+Br0zpKbBaz4MbSxaIFEvpGhhnhpmQWb5nnG1YMUSW1xjO9qw/foQNc3NVYmOKuSvkGEIEzRqlDiVi/Vu9MVPiqMDVCkxHO8L/LtrOmhfKdiftyVYWOLglxM0dAtcjNGRavfP1jURuqpAYlVsWR0ErTkRAGiB5OpxH+DdJNxvSeotb2M1OZjOcY3PcaFCOBMvPq1e/E5ClTOFtp9T15idWQ== Received: from SG2APC01FT013.eop-APC01.prod.protection.outlook.com (10.152.250.57) by SG2APC01HT045.eop-APC01.prod.protection.outlook.com (10.152.251.8) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2602.11; Sat, 4 Jan 2020 05:26:33 +0000 Received: from PS1PR03MB3606.apcprd03.prod.outlook.com (10.152.250.52) by SG2APC01FT013.mail.protection.outlook.com (10.152.250.186) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2602.11 via Frontend Transport; Sat, 4 Jan 2020 05:26:33 +0000 X-IncomingTopHeaderMarker: OriginalChecksum:25E789FDA19F58B9FEC70D83CDA878E178F839C7BA617FF9E7AF48F26F00965E; UpperCasedChecksum:86D17A4260821FBBC9733DDA127193108FB926B99E70D7E7557CE67A9B951838; SizeAsReceived:9201; Count:48 Received: from PS1PR03MB3606.apcprd03.prod.outlook.com ([fe80::b470:80bc:efed:9117]) by PS1PR03MB3606.apcprd03.prod.outlook.com ([fe80::b470:80bc:efed:9117%7]) with mapi id 15.20.2623.002; Sat, 4 Jan 2020 05:26:32 +0000 Date: Sat, 4 Jan 2020 13:26:24 +0800 From: HaiJun Zhang Message-ID: In-Reply-To: <83png1hyb8.fsf@gnu.org> References: <83o8vpn8g1.fsf@gnu.org> <87mub9u0ld.fsf@gmx.de> <831rslmxih.fsf@gnu.org> <83lfqslafm.fsf@gnu.org> <83r20jjgg3.fsf@gnu.org> <83png1hyb8.fsf@gnu.org> X-Readdle-Message-ID: 10047c93-2570-480c-bd4f-b68e38b996a1@Spark Content-Type: multipart/alternative; boundary="5e102205_1a54d7bc_4379" X-ClientProxiedBy: HK2PR0302CA0020.apcprd03.prod.outlook.com (2603:1096:202::30) To PS1PR03MB3606.apcprd03.prod.outlook.com (2603:1096:803:4e::17) X-Microsoft-Original-Message-ID: <10047c93-2570-480c-bd4f-b68e38b996a1@Spark> MIME-Version: 1.0 Received: from [192.168.1.103] (1.199.245.197) by HK2PR0302CA0020.apcprd03.prod.outlook.com (2603:1096:202::30) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2623.4 via Frontend Transport; Sat, 4 Jan 2020 05:26:31 +0000 X-Readdle-Message-ID: 10047c93-2570-480c-bd4f-b68e38b996a1@Spark X-Microsoft-Original-Message-ID: <10047c93-2570-480c-bd4f-b68e38b996a1@Spark> X-TMN: [7ZFZ9TP2+UM6w4pcOVi+8Bsyg8kCTVDI] X-MS-PublicTrafficType: Email X-IncomingHeaderCount: 48 X-EOPAttributedMessage: 0 X-MS-Office365-Filtering-Correlation-Id: 47a1513b-491b-40a4-3362-08d790d6a8b7 X-MS-TrafficTypeDiagnostic: SG2APC01HT045: X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: pzxiKYDSYW5WzmRQpcY65Wfs/hIWZ5CvaSpZgsYfC298Rw+W3EREUD1uKsvRw4BH8IXfyaC5TOXWR+KsmC2y91blq30D+ApyYXHlGIAZZiErzNcc0uoyP3VMKwhNVkjrh7xkD4C5ROg/D4kQXuEO0pAGJwaFh6RpThu/vyNJTot+atjmkTCEXpp3dS1axotw X-OriginatorOrg: outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 47a1513b-491b-40a4-3362-08d790d6a8b7 X-MS-Exchange-CrossTenant-OriginalArrivalTime: 04 Jan 2020 05:26:32.6562 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 84df9e7f-e9f6-40af-b435-aaaaaaaaaaaa X-MS-Exchange-CrossTenant-FromEntityHeader: Internet X-MS-Exchange-CrossTenant-RMS-PersistedConsumerOrg: 00000000-0000-0000-0000-000000000000 X-MS-Exchange-Transport-CrossTenantHeadersStamped: SG2APC01HT045 X-Spam-Score: 0.0 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) --5e102205_1a54d7bc_4379 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline =E5=9C=A8 2020=E5=B9=B41=E6=9C=883=E6=97=A5 +0800 PM2:02=EF=BC=8CEli Zare= tskii =EF=BC=8C=E5=86=99=E9=81=93=EF=BC=9A > There are ways of communications (e.g., you can call any Emacs > function), Can threads in modules call Emacs functions=3F If yes, it is powerful. --5e102205_1a54d7bc_4379 Content-Type: text/html; charset="utf-8" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline
=E5=9C=A8 2020=E5=B9=B41=E6=9C=883=E6=97= =A5 +0800 PM2:02=EF=BC=8CEli Zaretskii <eliz@gnu.org>=EF=BC=8C=E5= =86=99=E9=81=93=EF=BC=9A
There are ways of comm= unications (e.g., you can call any Emacs
function),  

Can threads in modules call Emacs functions? If yes, it is powerful.


--5e102205_1a54d7bc_4379-- From unknown Wed Jul 30 13:11:05 2025 X-Loop: help-debbugs@gnu.org Subject: bug#38807: [Feature request]: Support lisp workers like web workers. Resent-From: HaiJun Zhang Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 04 Jan 2020 05:48:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 38807 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Eli Zaretskii Cc: 38807@debbugs.gnu.org, michael.albinus@gmx.de, arthur.miller@live.com Received: via spool by 38807-submit@debbugs.gnu.org id=B38807.157811687311158 (code B ref 38807); Sat, 04 Jan 2020 05:48:01 +0000 Received: (at 38807) by debbugs.gnu.org; 4 Jan 2020 05:47:53 +0000 Received: from localhost ([127.0.0.1]:42375 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1incHx-0002tu-3T for submit@debbugs.gnu.org; Sat, 04 Jan 2020 00:47:53 -0500 Received: from mail-oln040092253030.outbound.protection.outlook.com ([40.92.253.30]:26934 helo=APC01-SG2-obe.outbound.protection.outlook.com) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1incHv-0002tf-1g for 38807@debbugs.gnu.org; Sat, 04 Jan 2020 00:47:52 -0500 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=mBBAkcwmHr1LCTpFQnNtjO2ifInjJbDGKlJAEmI6jq3HGvxNzCEwuveM/FlGfn9T9DVZyU/iQ28w3iGwzXim1lpHbXVVpxGGa/GXIQEVjMLKCB4ozQPddeQlhFbuijn6wl9aZA+LDD3OK1Zn19POQI6z6VXRXr6ogS7GBm5qQaWUxmFKSfkDwq66fqrguPJo89c2hwnok+LWqIQ6/OUQw1QVzKwMzvyC7J+iFJEflUBW3kUuZwcDwfWTwXfXYehx+mPYxc1YL0aFtluBG+HE4ideLmRf8r+7WHbjButKhNpIyMbeUATReITPS32k6uYEwX2ywnB8U0gvY9ROhFj7pA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=vkFg6OeMQsj10pi1P/7f5NOc+dZmVBZ6vJsqM6NZkEM=; b=MAifqCYGEjz9rqkDN9OW7IgBeZkU85SOZ7QmD8f4AvTHcM2LXH0A85LEskdudfhx5D27krh+IbAXyFwobQDWmIGJpRmrp0qeUKGIV41TS8tDgjM8dIZBJtdzEr0GvwQCzeLOCgjHhUgfJ+LYBZBHBunqbpb/1KU+DEUezjf1/+TInsYSYjiLHu4CT+CRvhewrdQoQ1tChK1tpIs15Cl5aRiNz3HKZKglG3H41zV1HLsMjsOIZ4lgfSvMIFGe0sCuXkfOhQlhUPNWq6F3npMQzOMLugCU4bvW8Fs4FZK76zSUkqHMFvpGsOmj9TuK0kY38nhK/sbvYpOeXNvSkSMB+w== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=outlook.com; dmarc=pass action=none header.from=outlook.com; dkim=pass header.d=outlook.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=outlook.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=vkFg6OeMQsj10pi1P/7f5NOc+dZmVBZ6vJsqM6NZkEM=; b=f5MhAK+SdOAw2Id9XQ2g3M+lKgdUwzod0GUPGKCBpQR0HKU5vdzFb1S5PzkTItefTF8jDxW8zhJI2opX7M/PpceLJId2oUf1XeowINz+xOQxE11vz4yMSci52qZ9SYEImkVVxEmrdx4G4e1LpAEuCwAAt5guyIV/Lt3f5r1hmWQb9qPQWETKQaGl0nJNz2cyK14Rv/UUN9nzlfRdaEmlf6fYO9HyVaZ1p5pOP+MWdLyhSfmaOEfUYhzj7Ez5KgvWaKAL/Hcy5Ffog3sXtazsJc8n+2mgeD9Zt6ZhMAuSSHohWRCzRl6Qp0smef6EeH/kJurkMJR6AoIrmq/jEYL3KA== Received: from SG2APC01FT046.eop-APC01.prod.protection.outlook.com (10.152.250.59) by SG2APC01HT013.eop-APC01.prod.protection.outlook.com (10.152.250.189) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2602.11; Sat, 4 Jan 2020 05:47:42 +0000 Received: from PS1PR03MB3606.apcprd03.prod.outlook.com (10.152.250.51) by SG2APC01FT046.mail.protection.outlook.com (10.152.251.145) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2602.11 via Frontend Transport; Sat, 4 Jan 2020 05:47:41 +0000 X-IncomingTopHeaderMarker: OriginalChecksum:E77C61EB8C307E2F98BC48A49BC38CFDCDDA0C585F1B577399B6CEEC878684D2; UpperCasedChecksum:B6095A426EB101E2AC73D6CFA7EB5E96CC624C4B82A246F1F4188B675787FBF9; SizeAsReceived:9286; Count:48 Received: from PS1PR03MB3606.apcprd03.prod.outlook.com ([fe80::b470:80bc:efed:9117]) by PS1PR03MB3606.apcprd03.prod.outlook.com ([fe80::b470:80bc:efed:9117%7]) with mapi id 15.20.2623.002; Sat, 4 Jan 2020 05:47:41 +0000 Date: Sat, 4 Jan 2020 13:47:32 +0800 From: HaiJun Zhang Message-ID: In-Reply-To: <83o8vlhy4v.fsf@gnu.org> References: <83o8vpn8g1.fsf@gnu.org> <87mub9u0ld.fsf@gmx.de> <831rslmxih.fsf@gnu.org> <83png3jgce.fsf@gnu.org> <83o8vlhy4v.fsf@gnu.org> X-Readdle-Message-ID: f3e90595-2545-443d-86dc-2bea92e16539@Spark Content-Type: multipart/alternative; boundary="5e1026f9_3e5e582b_4379" X-ClientProxiedBy: HK2PR04CA0065.apcprd04.prod.outlook.com (2603:1096:202:14::33) To PS1PR03MB3606.apcprd03.prod.outlook.com (2603:1096:803:4e::17) X-Microsoft-Original-Message-ID: MIME-Version: 1.0 Received: from [192.168.1.103] (1.199.245.197) by HK2PR04CA0065.apcprd04.prod.outlook.com (2603:1096:202:14::33) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2602.12 via Frontend Transport; Sat, 4 Jan 2020 05:47:40 +0000 X-Readdle-Message-ID: f3e90595-2545-443d-86dc-2bea92e16539@Spark X-Microsoft-Original-Message-ID: X-TMN: [zVjO/+OfV/XT+sMHPKoKskudBwQr2iur] X-MS-PublicTrafficType: Email X-IncomingHeaderCount: 48 X-EOPAttributedMessage: 0 X-MS-Office365-Filtering-Correlation-Id: 96e5ad45-0a08-4cbc-da5b-08d790d99d33 X-MS-Exchange-SLBlob-MailProps: q+fD6XS3/UKz/FNZZPqLptteq8XaJPbojCBro+qxpG+RgHLxGT+Rhho/7vmyWtJQNYla/b30BcdLpJi29F9MeG/PZPYgznIhj+nNTUbNtAaS294BTePixyf+PgcOu7DjbNe8CH8kj//OhZ05//mClvc+tuXeo0A2fC6Eb6Y9s+HMfheknZwQG8rIVmdZk5dLLF6Ba51/4oChbhvcdy/u+VsVGl8Lz9GF23N8w5BLFK3c1fs9duKNp4hDhyMNLIiIrdNugMKwdAQrXoi185VyiyI6Y8UzLt/itfngXiWSxJWsKwCdO2RS+kY+bAI4XNCOj55SH7KAJqWiW5fOw92KAaNeSXaS2IfrVaZDZC1wrMGZuZZ6ebKcBMjLCPggYZpQYhHqSybik5ld8US6drfGBf3yWNy1m2x4mkZEzQ/qAey79WUpS9/mYSdvTpoqLF0O+HIGnXxOklDPCaFSRrdGA36Z9dXyA2JMAdYkYkeF8bXmJpNXMOPtgmp3vd167dqJmfe54eG7FBoj4Nkifi+Zs2rc/8l6n23hgkcj1kyGn+2sLwiU2pzv0vfbqdwFL3Q3YTADLpVU63/UUUhfznlXUCPCSffkvkzNW160A3TLxTIpmsWeOxsVBNOZZ6DK8HtA1slpeGzYdFnK6IUuRIRCKSjT8qTwI6TIohoG/ro71Q8OO5zMzgiMUPR90A+q62Ro9+Ny+RHLx2LDj4Jmklch/w== X-MS-TrafficTypeDiagnostic: SG2APC01HT013: X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: VCCpnEsn8rM/KoiA1qASXwTF0vTa3hHamSWUY3V2z1HFIcpQCDQa/y1e3ivOexE2ANkkOyTQ6ChMR+2Rz4v8EkH6gdwh5HUklSZ0CPDycjtjMtDBNzK43F9pJ5rOip6HecIs04Ge72N7yL2a4I3Pno+W/GpCf7YEEoU4E4n0z2pRasqzfPVReJqTgh+KK30/ X-OriginatorOrg: outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 96e5ad45-0a08-4cbc-da5b-08d790d99d33 X-MS-Exchange-CrossTenant-OriginalArrivalTime: 04 Jan 2020 05:47:41.8297 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 84df9e7f-e9f6-40af-b435-aaaaaaaaaaaa X-MS-Exchange-CrossTenant-FromEntityHeader: Internet X-MS-Exchange-CrossTenant-RMS-PersistedConsumerOrg: 00000000-0000-0000-0000-000000000000 X-MS-Exchange-Transport-CrossTenantHeadersStamped: SG2APC01HT013 X-Spam-Score: 0.0 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) --5e1026f9_3e5e582b_4379 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline =E5=9C=A8 2020=E5=B9=B41=E6=9C=883=E6=97=A5 +0800 PM2:06=EF=BC=8CEli Zare= tskii =EF=BC=8C=E5=86=99=E9=81=93=EF=BC=9A > How would that help=3F Until 3 is done, the user doesn't see the > display updated. And if you think 3 doesn't touch any Lisp, then > thats not true, just see how many times you find =22Lisp=5FObject=22 in= , > say, xterm.c. > OK. This branch of the discussion is for =40arthur=C2=A0miller. If 3 can=E2=80=99t be done in separate thread, then we can keep them all = as the =E2=80=9CUI thread=22. And let it do as less work as possible by s= plitting some of work to background workers. Then better user responsiven= ess is possible. --5e1026f9_3e5e582b_4379 Content-Type: text/html; charset="utf-8" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline
=E5=9C=A8 2020=E5=B9=B41=E6=9C=883=E6=97= =A5 +0800 PM2:06=EF=BC=8CEli Zaretskii <eliz@gnu.org>=EF=BC=8C=E5= =86=99=E9=81=93=EF=BC=9A
How would that help? U= ntil 3 is done, the user doesn't see the
display updated. And if you think 3 doesn't touch any Lisp, then
thats not true, just see how many times you find "Lisp_Object" in= ,
say, xterm.c.

OK. This branch of the discussion is for @arthur miller.

If 3 can=E2=80=99t be done in separate thread, then we can keep them all as= the =E2=80=9CUI thread". And let it do as less work as possible by sp= litting some of work to background workers. Then better user responsiveness= is possible.


--5e1026f9_3e5e582b_4379-- From unknown Wed Jul 30 13:11:05 2025 X-Loop: help-debbugs@gnu.org Subject: bug#38807: [Feature request]: Support lisp workers like web workers. Resent-From: HaiJun Zhang Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 04 Jan 2020 05:57:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 38807 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Eli Zaretskii Cc: 38807@debbugs.gnu.org, michael.albinus@gmx.de Received: via spool by 38807-submit@debbugs.gnu.org id=B38807.157811736911937 (code B ref 38807); Sat, 04 Jan 2020 05:57:01 +0000 Received: (at 38807) by debbugs.gnu.org; 4 Jan 2020 05:56:09 +0000 Received: from localhost ([127.0.0.1]:42380 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1incPw-00036T-Vs for submit@debbugs.gnu.org; Sat, 04 Jan 2020 00:56:09 -0500 Received: from mail-oln040092254094.outbound.protection.outlook.com ([40.92.254.94]:34390 helo=APC01-PU1-obe.outbound.protection.outlook.com) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1incPv-00035t-14 for 38807@debbugs.gnu.org; Sat, 04 Jan 2020 00:56:08 -0500 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=T8EFbNYh6pqyFL9TpVDgzlgc4zWhd/PMTZCGzBUad9CkWrxn+i5WWKG3P8h7UR2cR+4HRBgCRcqaRoJQne9QexkN97A3JYmgsNYfUzWddWsaPQx0gRlXdBuENwprr0hy2Uz51Cwfeja35fkZDdJrRSgI57glgpsCLZ9WSh9nXVNr8Y1pWSvTC4mK/7EkWfCkChoHpufpsZi7Ovd6xfXubhRjqVKc+olnRMbCjz3PDUadkOatiPTYbM6UJ0KCN9h6BRzRShzwpsVrGjDRzK+Mak2byZ05nLJw0+zL/2S/XkAJcAD2y0P5wKfB2HsDiD4kEc3DJDoh6PoSZXZ3fCjLGg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=0yoiP4pYNllVUKr62rqX5CTYZNMnyYRELqSZCXOpqi4=; b=m819BHLaflYSnqkXatm2ExLAHeDuJSKcjsH7+vncDbUPUwoG11b+y3QH3X9McccfYUs+PrME7HtirR4TGqA/RcgEHwxCxE7vAxJCAgH9moNXovWq7sej3Io0pVoBlIHFGbxto36IisdSqWGzPgU2Cbr6jMnuTNedND1uCZ2lpbUDjy50Xyo4ATQa70DyBB97pUnOHxr6nm4YpXZP3WDH5/8LVp1SbrUSDb42FQ3zUOKL2JNdaEz0zH8AEVEQyjmlzVmxE0ls5OnNdV4h2E4PDwAAfAD+AQQresOvhRKjJatmehyq6HT6MV0Ym8iTxt6XqWlV5UQmGBB3kbLkGCp0SA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=outlook.com; dmarc=pass action=none header.from=outlook.com; dkim=pass header.d=outlook.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=outlook.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=0yoiP4pYNllVUKr62rqX5CTYZNMnyYRELqSZCXOpqi4=; b=RiLlDS9IahnwTF8dAPC/SXt8QEQQeEjhoLSfrrwkP9UXHlNYwCHu2+m36Be4y47AhRspTR+4onRGwe8OhoAIJNvii2CCit8UlDyy+fnVCKnzJ5imsYOSg4S5/a3EquYlk8NBFVrfPwh/2DkPyCrvhiBSeNbj5+A+ytYtgfwW1lpCWdwggRsYv65W8XPhatiQACdBpwDb0pVdd5e9T0dSBV0hgLkarfG+000jz24AA/b/kef9Dijsu0o0vcAs/1NfFqdthxruIsa3yvPZ3wvaWD8fTSfSBQrwpmInYm4JKB7sya8qgFoRbf424K81qKVQRrHh/fIY17vKKD4Sbi2fgw== Received: from PU1APC01FT028.eop-APC01.prod.protection.outlook.com (10.152.252.53) by PU1APC01HT180.eop-APC01.prod.protection.outlook.com (10.152.253.5) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2602.11; Sat, 4 Jan 2020 05:55:58 +0000 Received: from PS1PR03MB3606.apcprd03.prod.outlook.com (10.152.252.58) by PU1APC01FT028.mail.protection.outlook.com (10.152.252.229) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2581.11 via Frontend Transport; Sat, 4 Jan 2020 05:55:58 +0000 X-IncomingTopHeaderMarker: OriginalChecksum:72CA3DA9692B28A903F002F0E3A005895338F27475EF7CE1477A385C8A95CE2E; UpperCasedChecksum:56DF5B9FE95669B812B08988050C5B2F3FB98D323E34C623305D40A6560ECFF3; SizeAsReceived:9219; Count:48 Received: from PS1PR03MB3606.apcprd03.prod.outlook.com ([fe80::b470:80bc:efed:9117]) by PS1PR03MB3606.apcprd03.prod.outlook.com ([fe80::b470:80bc:efed:9117%7]) with mapi id 15.20.2623.002; Sat, 4 Jan 2020 05:55:58 +0000 Date: Sat, 4 Jan 2020 13:55:48 +0800 From: HaiJun Zhang Message-ID: In-Reply-To: <83png1hyb8.fsf@gnu.org> References: <83o8vpn8g1.fsf@gnu.org> <87mub9u0ld.fsf@gmx.de> <831rslmxih.fsf@gnu.org> <83lfqslafm.fsf@gnu.org> <83r20jjgg3.fsf@gnu.org> <83png1hyb8.fsf@gnu.org> X-Readdle-Message-ID: 77bc72f4-1768-4b25-8644-a77aacd83765@Spark Content-Type: multipart/alternative; boundary="5e1028ea_3bd615eb_4379" X-ClientProxiedBy: HK0PR03CA0117.apcprd03.prod.outlook.com (2603:1096:203:b0::33) To PS1PR03MB3606.apcprd03.prod.outlook.com (2603:1096:803:4e::17) X-Microsoft-Original-Message-ID: <77bc72f4-1768-4b25-8644-a77aacd83765@Spark> MIME-Version: 1.0 Received: from [192.168.1.103] (1.199.245.197) by HK0PR03CA0117.apcprd03.prod.outlook.com (2603:1096:203:b0::33) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2602.12 via Frontend Transport; Sat, 4 Jan 2020 05:55:56 +0000 X-Readdle-Message-ID: 77bc72f4-1768-4b25-8644-a77aacd83765@Spark X-Microsoft-Original-Message-ID: <77bc72f4-1768-4b25-8644-a77aacd83765@Spark> X-TMN: [eBxVs4s+OBOXq+yKRkSTg64fvitWyLoO] X-MS-PublicTrafficType: Email X-IncomingHeaderCount: 48 X-EOPAttributedMessage: 0 X-MS-Office365-Filtering-Correlation-Id: 32f4d7c5-b8fd-44af-4679-08d790dac4f5 X-MS-TrafficTypeDiagnostic: PU1APC01HT180: X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: p4Il53k4ruiWirnZzVEkfx8X+5Q3h/rPaTrWZ65DJyO0C/Cs0xfyA3MHCa+xNE18GA5LJ2rvRT71AU6QAH/CPRMGQKQ6wKDS6J1546mdT/tia/f6mH4u4kfTfFRSw474DhegIOiK44R1lwqsqMttP/UoSwcqMVQi91AFjRAazWKU6NP9uht+TQkyNU7cOPEJY1jK442AABwdxpP2l3tN15swnVTurZX5Ez9VbZ/EaCQ= X-OriginatorOrg: outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 32f4d7c5-b8fd-44af-4679-08d790dac4f5 X-MS-Exchange-CrossTenant-OriginalArrivalTime: 04 Jan 2020 05:55:58.0292 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 84df9e7f-e9f6-40af-b435-aaaaaaaaaaaa X-MS-Exchange-CrossTenant-FromEntityHeader: Internet X-MS-Exchange-CrossTenant-RMS-PersistedConsumerOrg: 00000000-0000-0000-0000-000000000000 X-MS-Exchange-Transport-CrossTenantHeadersStamped: PU1APC01HT180 X-Spam-Score: 0.0 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) --5e1028ea_3bd615eb_4379 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline =E5=9C=A8 2020=E5=B9=B41=E6=9C=883=E6=97=A5 +0800 PM2:02=EF=BC=8CEli Zare= tskii =EF=BC=8C=E5=86=99=E9=81=93=EF=BC=9A > > There are ways of communications (e.g., you can call any Emacs > function), but if more is needed, we can add that. Some design is > necessary, though, to identify what else is needed and why. > There is discussion related with this.=C2=A0https://emacs-china.org/t/lsp= -mode/11238/36 --5e1028ea_3bd615eb_4379 Content-Type: text/html; charset="utf-8" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline
=E5=9C=A8 2020=E5=B9=B41=E6=9C=883=E6=97= =A5 +0800 PM2:02=EF=BC=8CEli Zaretskii <eliz@gnu.org>=EF=BC=8C=E5= =86=99=E9=81=93=EF=BC=9A

There are ways of communications (e.g., you can call any Emacs
function), but if more is needed, we can add that. Some design is
necessary, though, to identify what else is needed and why.


There is discussion related with this. https://emacs-china.org/t/lsp-mode/11238/36

--5e1028ea_3bd615eb_4379-- From unknown Wed Jul 30 13:11:05 2025 X-Loop: help-debbugs@gnu.org Subject: bug#38807: [Feature request]: Support lisp workers like web workers. Resent-From: HaiJun Zhang Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 04 Jan 2020 06:00:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 38807 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Eli Zaretskii , arthur miller Cc: "38807@debbugs.gnu.org" <38807@debbugs.gnu.org>, "dgutov@yandex.ru" Received: via spool by 38807-submit@debbugs.gnu.org id=B38807.157811756312212 (code B ref 38807); Sat, 04 Jan 2020 06:00:02 +0000 Received: (at 38807) by debbugs.gnu.org; 4 Jan 2020 05:59:23 +0000 Received: from localhost ([127.0.0.1]:42385 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1incT5-0003Au-GT for submit@debbugs.gnu.org; Sat, 04 Jan 2020 00:59:23 -0500 Received: from mail-oln040092255031.outbound.protection.outlook.com ([40.92.255.31]:1376 helo=APC01-HK2-obe.outbound.protection.outlook.com) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1incT3-0003Ag-44 for 38807@debbugs.gnu.org; Sat, 04 Jan 2020 00:59:21 -0500 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=mth296fhFyXhhYYtIMgEd5T2N99K8jjZpSUpCKu7SJrF0SlThbvMscK47RLT40Nrg2xinME5Wjzojh0QiXdJBJCiNT5sdRY5YzQ1vxOV9p2O5AX1fBOKNb6WZwczo1pJ9gT7TF4DMT67tcfXRTqCLl1a53J+aScaS7r4nyjhqaLcBXZCvyZO4HNcvAeCIvH5isjufBwpt5LAqm7MJlmYZJyWO9asG0MFnF6izIt0yMmimUvcvlr8pGYv4nBH/TM7zMINuuHuR5CbP031HKGkk8UWpJV2mLWi40y18upgFHczDJlThkehCfzGXDOQW9PKuxwbVLCNREiTXQwzXBfwGg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=K9zbjTJomOP4ehV4hjz5ycxfwPLiAE/qXqcCYbw0AII=; b=O8AOE65L0wakCcK1Pt/EoD2KpkGPOuP31/8/2XYSHRe/zB+7UeY6C8DPthmovjRJnIgxO0DyViHft7dS9P9ZQVzuNfAAyBLaOSrNMgiYcZoxhZuyzG/KQNm0/50czsQnKzHKmsKV3D1mSkg3CDR1tS5GV94dpVqWlAxaMACAEh4m491okXJNUYPIqXiiM05OLGbeRpx0VEwGma9nOXSzBscna0ssUnz2Ub9qb1UgOw8/rbJFSAZI7AuFvd+EC5xqrA5CWpDhDNfApKucEQqx3agZUwFjPQnHV4XXup//XbxI351v0JhvN98l3j2zW8nHJJxMlhQ2sMcPhRZaxLiAuA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=outlook.com; dmarc=pass action=none header.from=outlook.com; dkim=pass header.d=outlook.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=outlook.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=K9zbjTJomOP4ehV4hjz5ycxfwPLiAE/qXqcCYbw0AII=; b=aDio4YjLXx4mTfgnRFP4N+migyG0KxeuidCv6Lf5F3qgprrDkbM+vA1uI8iRUgZDQhfrfMAnRKWoLPV4y6jTyrYHYWiTEPSB9ZFZbFx9/RKj1ARX1hPkI6oqtz33oNO+rKFwOxRgUxFzXVoeEEqZTVp4Zp61QAqAA/m5xg8Y/hB9R5jaSapIBo0Z3crlUDCF/Q0ILmjxP0qpzRha/oi2t9qct3oQegSjJjZwqIhSYF3F76bxb138CZVRMq7NVncgpO1qtAS3GCaPmbeh6chgiORv/QoiTsk+gwnYajrKpvoGOIcijGn6MhCXEQ/F1M//w4TzWZqKJcLel2F1BfJ/2A== Received: from PU1APC01FT028.eop-APC01.prod.protection.outlook.com (10.152.252.57) by PU1APC01HT227.eop-APC01.prod.protection.outlook.com (10.152.252.239) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2602.11; Sat, 4 Jan 2020 05:59:12 +0000 Received: from PS1PR03MB3606.apcprd03.prod.outlook.com (10.152.252.58) by PU1APC01FT028.mail.protection.outlook.com (10.152.252.229) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2581.11 via Frontend Transport; Sat, 4 Jan 2020 05:59:12 +0000 X-IncomingTopHeaderMarker: OriginalChecksum:B7D0A4DDE2C5B8DF0439C96B79193898793CB3FF3F2BCD873F75DF05D3865EB9; UpperCasedChecksum:2AD376475865A412788BEEAC6337BBD5AB3F622ABDCA5F94E59E73B1F92DDE50; SizeAsReceived:9507; Count:48 Received: from PS1PR03MB3606.apcprd03.prod.outlook.com ([fe80::b470:80bc:efed:9117]) by PS1PR03MB3606.apcprd03.prod.outlook.com ([fe80::b470:80bc:efed:9117%7]) with mapi id 15.20.2623.002; Sat, 4 Jan 2020 05:59:12 +0000 Date: Sat, 4 Jan 2020 13:59:01 +0800 From: HaiJun Zhang Message-ID: In-Reply-To: References: <83o8vpn8g1.fsf@gnu.org> <48d683e5-e0ec-2cbf-c8db-ad41cfc553e1@yandex.ru> <835zhxn5jg.fsf@gnu.org> <8336czlucz.fsf@gnu.org> <39f1e59e-08db-4862-98db-c31c3bcbab06@Spark> <83y2urjip6.fsf@gnu.org> X-Readdle-Message-ID: 8b23c7b4-ec22-41ec-b209-b9420e805069@Spark Content-Type: multipart/alternative; boundary="5e1029aa_58df53b_4379" X-ClientProxiedBy: HK2PR03CA0047.apcprd03.prod.outlook.com (2603:1096:202:17::17) To PS1PR03MB3606.apcprd03.prod.outlook.com (2603:1096:803:4e::17) X-Microsoft-Original-Message-ID: <8b23c7b4-ec22-41ec-b209-b9420e805069@Spark> MIME-Version: 1.0 Received: from [192.168.1.103] (1.199.245.197) by HK2PR03CA0047.apcprd03.prod.outlook.com (2603:1096:202:17::17) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2623.4 via Frontend Transport; Sat, 4 Jan 2020 05:59:11 +0000 X-Readdle-Message-ID: 8b23c7b4-ec22-41ec-b209-b9420e805069@Spark X-Microsoft-Original-Message-ID: <8b23c7b4-ec22-41ec-b209-b9420e805069@Spark> X-TMN: [ruv22wmHicuflQZEEjbAfefFceOU0TCP] X-MS-PublicTrafficType: Email X-IncomingHeaderCount: 48 X-EOPAttributedMessage: 0 X-MS-Office365-Filtering-Correlation-Id: efedc675-1e15-4fb5-085f-08d790db3906 X-MS-Exchange-SLBlob-MailProps: Eluf6BVNkXn6zjXc6iMCbIV813BMaOvqrjfQDhHsk748fw6M3CtIWp1eBHuNYyQ5R9Lw/EqJpdNl4r+Wt35rk5DmJi2vZgJeTmVCsgu5w3zufs6WacD9QiBUhkRkpnAAIhrfFVDz5ysb7iVh40LfC95rl/OFosNkBYXiE5YjiT5JumIutUreM31BLhSZjSFUYlU/atUlbfFeEZzajcTWx1K9nO6kOYu3dRNrRfCsBSNI7wdCYpc66PkROmL23rC6Vtbfxo/GbhRvlGt5+hO3qyJF4rZwG3puMYGfVQQAWuOC2zmlZ2rGRhbHRVQ1hn35VgRK78k1QtX87tk0FOUEWF0EcMwaCOdBZLTSA8CC5INIiWNY/aUoOEogHOEparSEB5tuGNQwWIqjXctTGlVzJFca2RPVQ5YSCeqg1Gr/WZ+U5mO0UJr7zc0TiWWNpvRvJ6OVA2PgBsF4S0/p/TLgmG7STkJcaq6/yFTOZW1+mnTMdEfMJydf5yv8lQ5eDFHVnoeteVE6mqgeRjGhZVtItnCW3ieL4DTjmRkCTW229GC3FZjckMhU+QwkklmluNb98fCZOMfwhS1G4dNgiq3wnsyZ33dPZQphFAiNzQ/PZw8dHWP9P81Jg/dY+XyKqz/BXAQ9GkAPBd3VsX6W89MFErX/ZxNwWZol X-MS-TrafficTypeDiagnostic: PU1APC01HT227: X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: LYV5YRhDgULEkd0LfsBqSL+N2rA90JlVc/qh+XEaw42vt6W5RmA8924kL5qYkT1qmmFAu+wSiOWtc52YUOb3E3hdKIf2AkMJ3wfEFXl1dLDp3upVXzKMo8W3x7wklYkeA5DAHIF0aEokVM+Tmh6G26hq2TbRfosCInxMHZdHM7tDUvDFGNC6Jy9k+HO5IVedEu/RJUn9k2ENwy0j/pgqamcDbo2e5CJ+9Yf7B3HGP1M= X-OriginatorOrg: outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: efedc675-1e15-4fb5-085f-08d790db3906 X-MS-Exchange-CrossTenant-OriginalArrivalTime: 04 Jan 2020 05:59:12.7607 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 84df9e7f-e9f6-40af-b435-aaaaaaaaaaaa X-MS-Exchange-CrossTenant-FromEntityHeader: Internet X-MS-Exchange-CrossTenant-RMS-PersistedConsumerOrg: 00000000-0000-0000-0000-000000000000 X-MS-Exchange-Transport-CrossTenantHeadersStamped: PU1APC01HT227 X-Spam-Score: 0.0 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) --5e1029aa_58df53b_4379 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline =E5=9C=A8 2020=E5=B9=B41=E6=9C=883=E6=97=A5 +0800 PM9:38=EF=BC=8Carthur m= iller =EF=BC=8C=E5=86=99=E9=81=93=EF=BC=9A > This issue on their github might help you to start in right direction := -): > > > https://github.com/microsoft/vscode/issues/1833 > > I don't if things changed since 2017 though. > > Skickat fr=C3=A5n min Samsung Galaxy-smartphone. > It is what I want to find. Thank you very much. --5e1029aa_58df53b_4379 Content-Type: text/html; charset="utf-8" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline
=E5=9C=A8 2020=E5=B9=B41=E6=9C=883=E6=97= =A5 +0800 PM9:38=EF=BC=8Carthur miller <arthur.miller@live.com>= =EF=BC=8C=E5=86=99=E9=81=93=EF=BC=9A
This issue on their github might help you to start in rig= ht direction :-):


https://github.com/microsoft/vscode/issues/1833

I don't if things changed since 2017 though.

Skickat fr=C3=A5n = min Samsung Galaxy-smartphone.
 

It is what I want to find. Thank you very much.

--5e1029aa_58df53b_4379-- From unknown Wed Jul 30 13:11:05 2025 X-Loop: help-debbugs@gnu.org Subject: bug#38807: [Feature request]: Support lisp workers like web workers. Resent-From: HaiJun Zhang Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 04 Jan 2020 06:43:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 38807 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Eli Zaretskii , arthur miller Cc: "38807@debbugs.gnu.org" <38807@debbugs.gnu.org>, "michael.albinus@gmx.de" Received: via spool by 38807-submit@debbugs.gnu.org id=B38807.157812014717064 (code B ref 38807); Sat, 04 Jan 2020 06:43:01 +0000 Received: (at 38807) by debbugs.gnu.org; 4 Jan 2020 06:42:27 +0000 Received: from localhost ([127.0.0.1]:42403 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ind8g-0004R2-DC for submit@debbugs.gnu.org; Sat, 04 Jan 2020 01:42:27 -0500 Received: from mail-oln040092255073.outbound.protection.outlook.com ([40.92.255.73]:4096 helo=APC01-HK2-obe.outbound.protection.outlook.com) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ind8d-0004Qg-IK for 38807@debbugs.gnu.org; Sat, 04 Jan 2020 01:42:20 -0500 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=et4++AURNZ4AvDYy/6cxKGRJzufyiWTVyXjJSKhk8jdtxctfe/JVwgvemaw9/M0w6cfjP7yE9Ymj+A8xDHHu87YWZPawllJyNGyzrKpnL8KDwK4DU7gSHtIDM8IyRWOvqbbausYKBntaSQMS5xjpJk0+bc+vcBAGV+EwqFfOv8M275CZ/657b8zQhXk04twmKifRKJqklrEinjEevfo9e5qiWIjycyeMvQnDNEkMzFdWueRXhD43GdhVryEvB+qNypvfqznWGIpdK5Lk5AvtpRcqt5+916wjHkmLtqagnmFNXZTDpF9vfmsDApZaYEJ1dxXHIZel2VbKYinzP7R5OA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=dnVlRZOY80CzyELq0c3D7AtSsFYk6EAmcMljTpLPSWA=; b=jrjkOa9PxEuxO2p+eL5CrobBedOc62PEFfStHExlWyxraJty29iaf8xaEbgeB9djuMkcpJxZqHVdMuc2fLE4YTAn5yCmxv5m0XxK7vsbgWz/4FyFZRKVRUsBz6s5RNSsjURB3P+1/U6FtGurm+8pfayCTUBiq9RCM8iUNdtazDoDVbojukHTIfYvJougWwzWt+ob8NKlMQqWjbLfAXGOZ4DwfrxztqcduvLwOEHjDnqBhaMKaCNEWa4AMd6Znm5PWbqC382AfmIlPNCuUmLAKAUflwREqxbtmaxC+T2d9QM5X3sM1ohvS7DgJZ8meCn6HDidIgkzti5jpqrsE3KLvQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=outlook.com; dmarc=pass action=none header.from=outlook.com; dkim=pass header.d=outlook.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=outlook.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=dnVlRZOY80CzyELq0c3D7AtSsFYk6EAmcMljTpLPSWA=; b=oKEgKu8SwS25GSBl/tB3Tj2SwRSZWp2JTbKXLZmY2lGn++7z/mwuXZlo07ZLgmM8G60ml6rfsPyTsU6Yb6QX9hZdOtyUrD758hUMisd8mtZMBDD3lXvkUD28Y6bbHdviYaRgxfGe9B7HAqOCehThK9sCaMfo3LjAqZ1CWBQAMjnHxR5Qw9GyIV3lMSKgldOwPG3OkcpwJAvhR5d31Lq1vMpJ2FYNd9wbJVcMj346TKvYq3lvoGJTLvhrlTogwSC217L/P+VDlAVDWCafkaoM+ClZ+YmKD/fT+L0XdBGFa9PQGA7iRfCZTPeQ8yVWqLrT9mwlq+WyUE57ZnQ+KscvlA== Received: from PU1APC01FT026.eop-APC01.prod.protection.outlook.com (10.152.252.57) by PU1APC01HT101.eop-APC01.prod.protection.outlook.com (10.152.253.124) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2602.11; Sat, 4 Jan 2020 06:42:10 +0000 Received: from PS1PR03MB3606.apcprd03.prod.outlook.com (10.152.252.51) by PU1APC01FT026.mail.protection.outlook.com (10.152.252.235) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2602.11 via Frontend Transport; Sat, 4 Jan 2020 06:42:10 +0000 X-IncomingTopHeaderMarker: OriginalChecksum:95A149B52C5AD142C5620562D77D551A89720FC84AA7D6790A6981F2D8B31961; UpperCasedChecksum:FC3776A76B0FBE5824D86BAB80E7037359F35F2A06E7E1773E55114783C7DAE3; SizeAsReceived:9450; Count:48 Received: from PS1PR03MB3606.apcprd03.prod.outlook.com ([fe80::b470:80bc:efed:9117]) by PS1PR03MB3606.apcprd03.prod.outlook.com ([fe80::b470:80bc:efed:9117%7]) with mapi id 15.20.2623.002; Sat, 4 Jan 2020 06:42:10 +0000 Date: Sat, 4 Jan 2020 14:41:58 +0800 From: HaiJun Zhang Message-ID: In-Reply-To: References: <83o8vpn8g1.fsf@gnu.org> <87mub9u0ld.fsf@gmx.de> <831rslmxih.fsf@gnu.org> <83lfqslafm.fsf@gnu.org> <83r20jjgg3.fsf@gnu.org> X-Readdle-Message-ID: c5f867e5-2599-4c95-9082-ca1565106924@Spark Content-Type: multipart/alternative; boundary="5e1033bb_6f0939f8_4379" X-ClientProxiedBy: HK0PR03CA0112.apcprd03.prod.outlook.com (2603:1096:203:b0::28) To PS1PR03MB3606.apcprd03.prod.outlook.com (2603:1096:803:4e::17) X-Microsoft-Original-Message-ID: MIME-Version: 1.0 Received: from [192.168.1.103] (1.199.245.197) by HK0PR03CA0112.apcprd03.prod.outlook.com (2603:1096:203:b0::28) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2602.12 via Frontend Transport; Sat, 4 Jan 2020 06:42:06 +0000 X-Readdle-Message-ID: c5f867e5-2599-4c95-9082-ca1565106924@Spark X-Microsoft-Original-Message-ID: X-TMN: [BObC+rcdDmyGoES8S7d9/TBq5juDXxon] X-MS-PublicTrafficType: Email X-IncomingHeaderCount: 48 X-EOPAttributedMessage: 0 X-MS-Office365-Filtering-Correlation-Id: a0314f9f-15c6-41e2-1db8-08d790e1398b X-MS-Exchange-SLBlob-MailProps: 7FNIAzWC7TpQE0WUgx7fnFiBCYfaxZF7jwYy+iZ74Xfu8Vagj6dYBCIjCtgiqDhZbgQOT1sxAio420eYRlSME8YalA1jLJUZCDZDbupui6h3CvK9Rskq957+aGwZmrCNIuCK3z7813MZ1tLo530MqxmNlwVX9lr4bOCoxj03eemCScmxnN1t2oLAl97LAL42j8qwps2lE89zsdS2KhaLPlhyZDiwacvP6gThgsT6QBzaOnNj3JLZq7lm1TcrcYmz/uCsqKXkwJD2qopkSNtaKzbAM6mZ+p/qW5RHQMExTgs0vHasfDsTYV/5ocsCLHtM3NBLMMfjJCk9ggAGkObZU4zQURu/TodhTx3Hbr5M4+4Dp42lwBrYYVVg/bI5TOD3BCbGQmIygGC1mRiuJrjo0xbWCgsDkmIF5G1nZutREZrJSQd21uwbObrobF1AJH7JmojD0ZEXKYcs1q6XwhbEFhUW00YB6SqKAhb6Q0TqROz8WrOA4MIxOpr1XAlkHEC/NRkT3vGGBJ4uh/Hw2t7gLHuTlR8Va4R2kYzlJSOMxArEOdxn0lBWMO8uHgtwzwdOw4CT3pN2AtXRhAKLSqCzC1UlgZaFESp5T+FfeV5JDKlYE4ZO531YZrFPH5+iAeqyK2mwB0nfEiMgpSFnxOBQ7NdrkiepJTD1ZboUWo8cURtT3qWTk9voHuebadu7+5rgioVIvd1iCuyNODWLZacNteLIxkLlhSZR/qhHNipBYv/mLyf2Kxuy5BGPFLyFSffWYTZTt4g4y/ddIzx2J9YNrzFlY7Ha4u8QitSdnxsR+TLTNj9MwtH4A058QTFuOU+cTus54WCVYiltTPhwc9qZl2josu4tdjQooGPUJqrRNTb8qINP7OVV1g+HhXjuvcRPl6O08FHJi2CsnP3VoT3xCAya1ULjlYZN+kVfvK5ZFcVRzzXnQS2Xa+wHpNcF7zp2BFGarYeC1R4AqsP6m3B103WPaLNdLJyuimQcvBUU7OySzFD8HEzjkq08bGgP2QxpFlrVEANLcmWv4/lxHn4yaWkU4lcfWIhev8z8MC4uft1mfRcMKdIsOdgZt66+Gi5RWhgKW0C/KnU= X-MS-TrafficTypeDiagnostic: PU1APC01HT101: X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: 1CrBq9k854P/DSHjXLGxOgmAVAg6UOwHnxBsZ5YKD7vZBSANCDQyN2rYFLTsZB44fw6feZNacAHb5HIFB2V8f/Gn+phi0xS091n/wp7Ltk7AfFDqSxxvt652gemtyzjjAAvN4XCTumLdSBxozTh28y306iZ8sJgwtfwXVLwQ6yVuhHcjp2HDzJNY0m6rPQAGZE2Lky4pspiOZTAJ9RfByaH4w0zWwbyTXqrcsBh5jMs= X-OriginatorOrg: outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: a0314f9f-15c6-41e2-1db8-08d790e1398b X-MS-Exchange-CrossTenant-OriginalArrivalTime: 04 Jan 2020 06:42:10.6802 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 84df9e7f-e9f6-40af-b435-aaaaaaaaaaaa X-MS-Exchange-CrossTenant-FromEntityHeader: Internet X-MS-Exchange-CrossTenant-RMS-PersistedConsumerOrg: 00000000-0000-0000-0000-000000000000 X-MS-Exchange-Transport-CrossTenantHeadersStamped: PU1APC01HT101 X-Spam-Score: 1.0 (+) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) --5e1033bb_6f0939f8_4379 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Workers don=E2=80=99t have to be in dedicated native threads. It is decid= ed by the lisp machine if they are run in a lisp machine. =E5=9C=A8 2020=E5=B9=B41=E6=9C=883=E6=97=A5 +0800 PM10:11=EF=BC=8Carthur = miller =EF=BC=8C=E5=86=99=E9=81=93=EF=BC=9A > As a concept, I am not sure a thread is the best solution to implement = for a high level scripting runtime as Emacs lisp. Thread is a relatively = primitive concept and leaves a lot to=C2=A0 applications programmer to de= cide and manage. In concurrent programming a thread is OK-ish concept, bu= t it might not be the best for truly parallel problem solving. > > Creating more threads than there are physical cpus creates overhead tha= t might eat up benefits of parallelism. It=C2=A0 also forces a programmer= to think in terms of machine, scheduling, synchronization etc. It can be= more effective and more lisp-ish to think in terms of tasks and let the = core manage the threads and scheduling on it's own. > > Tasks let us think about the work we wish to perform and not how to per= form it. It lets runtime create number of worker threads and schedule the= m automatically instead of forcing programmers to join, synchronize etc > > As a concept a web worker is just a worker thread introduced as idea in= various single threaded gui toolkits long ago. Java's Swing popularized = worker threads heavily back in days, and I don't remember if M=46C also m= ade a deal of those before Swing or after. > > Anyway, these were just ordinary threads,=C2=A0 doing some work, like p= opulating big lists and similar, nothing special. However back in days th= reads were cheap. Everything run on one CPU, and threaded programming was= mostly what we today call concurrent programming. > > Since Swing and Mfc were big things, we have got multi core CPUs as mai= nstream and threads have got much more expensive to create and communicat= e with. Java threads back at days where super cheap to create. I am not s= ure how expensive are posix threads on different cpus, but I know that wi= n32 threads are quite expensive/slow. =46or a small work it might be more= expensive to process it in separate thread. > > Tasks can be mapped on entire thread or put into a queue for physical t= hreads to pick them up. Thus I think tasks might be more suited for say a= n input queue or render queue and similar. > > If I remember well, certain version of DirectX used to process input in= separate thread, which they abandoned in some later version. However I s= topped to work with dx years ago, before dx10 come out, so I don't know h= ow they do nowadays. > > > Skickat fr=C3=A5n min Samsung Galaxy-smartphone. > > > > -------- Originalmeddelande -------- > =46r=C3=A5n: HaiJun Zhang > Datum: 2020-01-03 04:36 (GMT+01:00) > Till: Eli Zaretskii > Kopia: 38807=40debbugs.gnu.org, michael.albinus=40gmx.de > =C3=84mne: bug=2338807: =5B=46eature request=5D: Support lisp workers l= ike web workers. > > =E5=9C=A8 2020=E5=B9=B41=E6=9C=882=E6=97=A5 +0800 AM12:21=EF=BC=8CEli Z= aretskii =EF=BC=8C=E5=86=99=E9=81=93=EF=BC=9A > > > > Then these threads cannot really run Lisp at all, nor even directly > > affect Lisp data. So in effect you want to be able to run threads > > that don't enter the Lisp interpreter, nor modify any Lisp data. > > =46or web worker, they have different contexts. The following is from M= DN(https://developer.mozilla.org/en-US/docs/Web/API/Web=5FWorkers=5FAPI/U= sing=5Fweb=5Fworkers): > > workers run in another global context that is different from the curren= t=C2=A0window. Thus, using the=C2=A0windowshortcut to get the current glo= bal scope (instead of=C2=A0self) within a=C2=A0Worker=C2=A0will return an= error. > The worker context is represented by a=C2=A0DedicatedWorkerGlobalScope=C2= =A0object in the case of dedicated workers (standard workers that are uti= lized by a single script; shared workers use=C2=A0SharedWorkerGlobalScope= ). A dedicated worker is only accessible from the script that first spawn= ed it, whereas shared workers can be accessed from multiple scripts. > --5e1033bb_6f0939f8_4379 Content-Type: text/html; charset="utf-8" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline
Workers don=E2=80=99t have to be in dedicated native thre= ads. It is decided by the lisp machine if they are run in a lisp machine.

=E5=9C=A8 2020=E5=B9=B41=E6=9C=883=E6=97=A5 += 0800 PM10:11=EF=BC=8Carthur miller <arthur.miller@live.com>=EF=BC=8C= =E5=86=99=E9=81=93=EF=BC=9A
As a concept, I am not sure a thread is the best solution= to implement for a high level scripting runtime as Emacs lisp. Thread is a= relatively primitive concept and leaves a lot to  applications progra= mmer to decide and manage. In concurrent programming a thread is OK-ish con= cept, but it might not be the best for truly parallel problem solving.

Creating more threads than there are physical cpus create= s overhead that might eat up benefits of parallelism. It  also forces = a programmer to think in terms of machine, scheduling, synchronization etc.= It can be more effective and more lisp-ish to think in terms of tasks and = let the core manage the threads and scheduling on it's own.

Tasks let us think about the work we wish to perform and = not how to perform it. It lets runtime create number of worker threads and = schedule them automatically instead of forcing programmers to join, synchro= nize etc

As a concept a web worker is just a worker thread introdu= ced as idea in various single threaded gui toolkits long ago. Java's Swing = popularized worker threads heavily back in days, and I don't remember if MF= C also made a deal of those before Swing or after.

Anyway, these were just ordinary threads,  doing som= e work, like populating big lists and similar, nothing special. However bac= k in days threads were cheap. Everything run on one CPU, and threaded progr= amming was mostly what we today call concurrent programming. 

Since Swing and Mfc were big things, we have got multi co= re CPUs as mainstream and threads have got much more expensive to create an= d communicate with. Java threads back at days where super cheap to create. = I am not sure how expensive are posix threads on different cpus, but I know= that win32 threads are quite expensive/slow. For a small work it might be = more expensive to process it in separate thread. 

Tasks can be mapped on entire thread or put into a queue = for physical threads to pick them up. Thus I think tasks might be more suit= ed for say an input queue or render queue and similar. 

If I remember well, certain version of DirectX used to pr= ocess input in separate thread, which they abandoned in some later version.= However I stopped to work with dx years ago, before dx10 come out, so I do= n't know how they do nowadays. 


Skickat fr=C3=A5n = min Samsung Galaxy-smartphone.



-------- Originalmeddelande --------
Fr=C3=A5n: HaiJun Zhang <netjune@outlook.com>
Datum: 2020-01-03 04:36 (GMT+01:00)
Till: Eli Zaretskii <eliz@gnu.org>
Kopia: 38807@debbugs.gnu.org, michael.albinus@gmx.de
=C3=84mne: bug#38807: [Feature request]: Support lisp workers like web= workers.

=E5=9C=A8 2020=E5=B9=B41=E6=9C=882=E6=97= =A5 +0800 AM12:21=EF=BC=8CEli Zaretskii <eliz@gnu.org>=EF=BC=8C= =E5=86=99=E9=81=93=EF=BC=9A

Then these threads cannot really run Lisp at all, nor even directly
affect Lisp data. So in effect you want to be able to run threads
that don't enter the Lisp interpreter, nor modify any Lisp data.  
=

For web worker, they have different contexts. The following is from MD= N(https://developer.mozilla.org/en-US/docs/Web/API/Web_= Workers_API/Using_web_workers):

workers= run in another global context that is different from the current window. Thus, using the window= shortcut to get the current global scope (instead of self) within a Worker will return an error.

The wor= ker context is represented by a DedicatedWorkerGlobalScope&= nbsp;object in the case of dedicated workers (standard workers that are uti= lized by a single script; shared workers use SharedWork= erGlobalScope). A dedicated worker is only accessible from the s= cript that first spawned it, whereas shared workers can be accessed from mu= ltiple scripts.


--5e1033bb_6f0939f8_4379-- From unknown Wed Jul 30 13:11:05 2025 X-Loop: help-debbugs@gnu.org Subject: bug#38807: [Feature request]: Support lisp workers like web workers. Resent-From: HaiJun Zhang Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 04 Jan 2020 08:12:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 38807 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Eli Zaretskii Cc: 38807@debbugs.gnu.org, dgutov@yandex.ru Received: via spool by 38807-submit@debbugs.gnu.org id=B38807.157812550925948 (code B ref 38807); Sat, 04 Jan 2020 08:12:02 +0000 Received: (at 38807) by debbugs.gnu.org; 4 Jan 2020 08:11:49 +0000 Received: from localhost ([127.0.0.1]:42415 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ineXA-0006kM-Rp for submit@debbugs.gnu.org; Sat, 04 Jan 2020 03:11:49 -0500 Received: from mail-oln040092255053.outbound.protection.outlook.com ([40.92.255.53]:18864 helo=APC01-HK2-obe.outbound.protection.outlook.com) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ineX8-0006k8-8I for 38807@debbugs.gnu.org; Sat, 04 Jan 2020 03:11:43 -0500 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=CLII8vTJ96vll2aRkV+/zu39SRymEWi+d+Os84iF/1u9/Qcgk+O3MMvj2mQ893Kxgg4TRz0HqehjIu403aD65Vf+aaoaV++A+v/Xs+rFOkAd8ucr9rgdiYPvPVhKw8TbiFK67AFkxqcQ1uPYOsxmivewH1itUtToE5KvZ0u2ZjKzZIrZEObyTj/yFxjYp70+26ReLWn3kiVuUObB+4dP+iHiMkO7hyRWDPxwlWbQAvKGT9EPWw4leac2AZ068i6/EgfCIRWDRu/U8Rd6QYRFNszrgL7g/HxNmZvKSCm4rMMvkO6zHIVPrBBIc5UWYt3/HcF7dsePYzedbMSwLIP2NQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=IhIMN29AT8zauuQCJwZu45pvKv4Bl0dA5PJ97NOdqUA=; b=mPxFtV06MxJ1EOw2Lw5rGH56EKqR4C9pbxNQ/iTeMuLdd0+w0ovGHem5KEzgKp3rBAN780TeI4u/rjhB85xXTvpqSb3H7IAQ5UZeYsC5FDv4ZWycR6dI2LVcjUwJjqzDjOoJ//dN8NkQX6E+ryPDxNoTzvUJJVSJY9m3uaJ/UCOWOtgTG4juIZg1V7D7UOQIzwDy73LyEuUL0FRmjbV4t77GrRRVVKVte5bixoRgLsjHnf+DeFfdaZIz62Q422tTYSlkoH1nIIY21f6x70YMc7CSQRK6W7BisjRsGYpUGxH9hC8iV6tJPF+V/68WjRhsLVp17vkIExxU6VZ9b7WJyw== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=outlook.com; dmarc=pass action=none header.from=outlook.com; dkim=pass header.d=outlook.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=outlook.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=IhIMN29AT8zauuQCJwZu45pvKv4Bl0dA5PJ97NOdqUA=; b=b1K1WTY1vEJllni+ntQhsVeF+l0O3VuvTapwy64wOo0RoFODqHfH2DAZd2b6eojNIgJYdIsCgG7IH1Ah1ZXi4muox7+tssgCBuoYaztxzqPpMB2hEK76sqIvAHwJNw6UvP3xOOzxbErT1J607KwaoEcF6JVHtiEET93R8ck0k1nFz4mHyIXc1qDZJ8LcRuxxhpFtaJGKpxBIqvbXOGo+C0GgnFGdRMc3nIrOnhN0Hpvh31k7ClAHUviJIwldNBtYNfJH8Kyz2QMW79AbgANw6oGRSP1Jf1fDvLBqcc0WJl1ICPQsIzRaHb4I+ngY6BOustGif7GM1KfLcDvOLifeVA== Received: from PU1APC01FT064.eop-APC01.prod.protection.outlook.com (10.152.252.59) by PU1APC01HT222.eop-APC01.prod.protection.outlook.com (10.152.252.163) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2602.11; Sat, 4 Jan 2020 08:11:32 +0000 Received: from PS1PR03MB3606.apcprd03.prod.outlook.com (10.152.252.59) by PU1APC01FT064.mail.protection.outlook.com (10.152.253.70) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2602.11 via Frontend Transport; Sat, 4 Jan 2020 08:11:32 +0000 X-IncomingTopHeaderMarker: OriginalChecksum:1844FAA8C6B1F573194CF3E0C2E0EE9EC3DE623BEA8DF922534E5601A82FD081; UpperCasedChecksum:1C34890644B01C905AB88B7967880ADC62345880AE3BE39214EA75F903804F21; SizeAsReceived:9184; Count:48 Received: from PS1PR03MB3606.apcprd03.prod.outlook.com ([fe80::b470:80bc:efed:9117]) by PS1PR03MB3606.apcprd03.prod.outlook.com ([fe80::b470:80bc:efed:9117%7]) with mapi id 15.20.2623.002; Sat, 4 Jan 2020 08:11:32 +0000 Date: Sat, 4 Jan 2020 16:11:23 +0800 From: HaiJun Zhang Message-ID: In-Reply-To: <83y2urjip6.fsf@gnu.org> References: <83o8vpn8g1.fsf@gnu.org> <48d683e5-e0ec-2cbf-c8db-ad41cfc553e1@yandex.ru> <835zhxn5jg.fsf@gnu.org> <8336czlucz.fsf@gnu.org> <39f1e59e-08db-4862-98db-c31c3bcbab06@Spark> <83y2urjip6.fsf@gnu.org> X-Readdle-Message-ID: 2fcca1e5-0d63-462b-af88-af3168db2479@Spark Content-Type: multipart/alternative; boundary="5e1048b0_6385489e_4379" X-ClientProxiedBy: HK0PR01CA0072.apcprd01.prod.exchangelabs.com (2603:1096:203:a6::36) To PS1PR03MB3606.apcprd03.prod.outlook.com (2603:1096:803:4e::17) X-Microsoft-Original-Message-ID: <2fcca1e5-0d63-462b-af88-af3168db2479@Spark> MIME-Version: 1.0 Received: from [192.168.1.103] (1.199.245.197) by HK0PR01CA0072.apcprd01.prod.exchangelabs.com (2603:1096:203:a6::36) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2602.12 via Frontend Transport; Sat, 4 Jan 2020 08:11:31 +0000 X-Readdle-Message-ID: 2fcca1e5-0d63-462b-af88-af3168db2479@Spark X-Microsoft-Original-Message-ID: <2fcca1e5-0d63-462b-af88-af3168db2479@Spark> X-TMN: [QURiHPGvnlq9zcnda+Un9nD2QWTe3Bnj] X-MS-PublicTrafficType: Email X-IncomingHeaderCount: 48 X-EOPAttributedMessage: 0 X-MS-Office365-Filtering-Correlation-Id: fc501968-f999-424a-c40e-08d790edb562 X-MS-TrafficTypeDiagnostic: PU1APC01HT222: X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: gp4afQaRyeYgmfWV9vcUYjajak/D5H5FRrTZhM8eMS+rJmczv2NyHORnl4xMDVQzzB1iQ9OwmZyFrfikPLw0M4/kaqN5LeDo+RBrIiTEzIZtEv5kynWlygJ/VuHZVR0bOOsDXzrJljvG+TpYsg1Csn+rwMKinVIowBr7W0T6+0RFEy+pqfH5idkvAQMMOwfLAlqa1MREgxRx7Yzd24DGR6k7lyOvWbDVh1MDz9mWpnY= X-OriginatorOrg: outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: fc501968-f999-424a-c40e-08d790edb562 X-MS-Exchange-CrossTenant-OriginalArrivalTime: 04 Jan 2020 08:11:32.3480 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 84df9e7f-e9f6-40af-b435-aaaaaaaaaaaa X-MS-Exchange-CrossTenant-FromEntityHeader: Internet X-MS-Exchange-CrossTenant-RMS-PersistedConsumerOrg: 00000000-0000-0000-0000-000000000000 X-MS-Exchange-Transport-CrossTenantHeadersStamped: PU1APC01HT222 X-Spam-Score: 1.0 (+) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) --5e1048b0_6385489e_4379 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline I extracted some text from the VSCode extension development guide. Hope y= ou can get an overview first. The extension host: =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D Extension host is a Node.js process in VS Code responsible for loading an= d running extensions. Although you don't need to worry about the Extensio= n Host when you are writing extensions, it is still useful to know what t= he Extension Host does to your extension. URL: https://code.visualstudio.com/api/advanced-topics/extension-host Extension Manifest: =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D Every Visual Studio Code extension needs a manifest file package.json at = the root of the extension directory structure. URL: https://code.visualstudio.com/api/references/extension-manifest Contribute Points: =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D Contribution Points are a set of JSON declarations that you make in the c= ontributes field of the package.json Extension Manifest. Your extension r= egisters Contribution Points to extend various functionalities within Vis= ual Studio Code. Here is a list of all available Contribution Points: configuration configurationDefaults commands menus keybindings languages debuggers breakpoints grammars themes snippets jsonValidation views viewsContainers problemMatchers problemPatterns taskDefinitions colors typescriptServerPlugins resourceLabel=46ormatters URL: https://code.visualstudio.com/api/references/contribution-points Extending Workbench: =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D =22Workbench=22 refers to the overall Visual Studio Code UI that encompas= ses the following UI components: Title Bar Activity Bar Side Bar Panel Editor Group Status Bar VS Code provides various APIs that allow you to add your own components t= o the Workbench. URL: https://code.visualstudio.com/api/extension-capabilities/extending-w= orkbench =E5=9C=A8 2020=E5=B9=B41=E6=9C=881=E6=97=A5 +0800 PM11:32=EF=BC=8CEli Zar= etskii =EF=BC=8C=E5=86=99=E9=81=93=EF=BC=9A > > Date: Wed, 1 Jan 2020 12:02:35 +0800 > > =46rom: HaiJun Zhang > > Cc: dgutov=40yandex.ru, 38807=40debbugs.gnu.org > > > > While with the same dart project, the VSCode has good user responsive= ness. As far as I known, the > > extensions of VSCode runs in separate process. > > Can you even remotely compare the degree of control the VSCode > extension language can have on the UI, with what Emacs gives you=3F --5e1048b0_6385489e_4379 Content-Type: text/html; charset="utf-8" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline
I extracted some text from the VSCode extension developme= nt guide. Hope you can get an overview first.


The extension host:
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
Extension host is a Node.js process in VS Code responsible for loading and = running extensions. Although you don't need to worry about the Extension Ho= st when you are writing extensions, it is still useful to know what the Ext= ension Host does to your extension.

URL: https://code.visualstudio.com/api/advanced-topics/extension-host=


Extension Manifest:
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
Every Visual Studio Code extension needs a manifest file package.json at th= e root of the extension directory structure.

URL: https://code.visualstudio.com/api/references/extension-manifest

Contribute Points:
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
Contribution Points are a set of JSON declarations that you make in the con= tributes field of the package.json Extension Manifest. Your extension regis= ters Contribution Points to extend various functionalities within Visual St= udio Code. Here is a list of all available Contribution Points:

configuration
configurationDefaults
commands
menus
keybindings
languages
debuggers
breakpoints
grammars
themes
snippets
jsonValidation
views
viewsContainers
problemMatchers
problemPatterns
taskDefinitions
colors
typescriptServerPlugins
resourceLabelFormatters

URL: https://code.visualstudio.com/api/references/contribution-points=


Extending Workbench:
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
"Workbench" refers to the overall Visual Studio Code UI that enco= mpasses the following UI components:

Title Bar
Activity Bar
Side Bar
Panel
Editor Group
Status Bar

VS Code provides various APIs that allow you to add your own components to = the Workbench.

URL: https://code.visualstudio.com/api/extension-capabilities= /extending-workbench

=E5=9C=A8 2020=E5=B9=B41=E6=9C=881=E6=97= =A5 +0800 PM11:32=EF=BC=8CEli Zaretskii <eliz@gnu.org>=EF=BC=8C= =E5=86=99=E9=81=93=EF=BC=9A
Date: Wed, 1 Jan 2020 = 12:02:35 +0800
From: HaiJun Zhang <netjune@outlook.com>
Cc: dgutov@yandex.ru, 38807@debbugs.gnu.org

While with the same dart project, the VSCode has good user responsiveness. = As far as I known, the
extensions of VSCode runs in separate process.

Can you even remotely compare the degree of control the VSCode
extension language can have on the UI, with what Emacs gives you?
--5e1048b0_6385489e_4379-- From unknown Wed Jul 30 13:11:05 2025 X-Loop: help-debbugs@gnu.org Subject: bug#38807: [Feature request]: Support lisp workers like web workers. Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 04 Jan 2020 09:00:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 38807 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: HaiJun Zhang Cc: 38807@debbugs.gnu.org, michael.albinus@gmx.de Received: via spool by 38807-submit@debbugs.gnu.org id=B38807.157812839230269 (code B ref 38807); Sat, 04 Jan 2020 09:00:02 +0000 Received: (at 38807) by debbugs.gnu.org; 4 Jan 2020 08:59:52 +0000 Received: from localhost ([127.0.0.1]:42444 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1infHk-0007s9-3w for submit@debbugs.gnu.org; Sat, 04 Jan 2020 03:59:52 -0500 Received: from eggs.gnu.org ([209.51.188.92]:51601) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1infHi-0007rw-5h for 38807@debbugs.gnu.org; Sat, 04 Jan 2020 03:59:50 -0500 Received: from fencepost.gnu.org ([2001:470:142:3::e]:49639) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1infHc-0001aH-1Q; Sat, 04 Jan 2020 03:59:44 -0500 Received: from [176.228.60.248] (port=2441 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1infHb-00038R-E5; Sat, 04 Jan 2020 03:59:43 -0500 Date: Sat, 04 Jan 2020 10:59:45 +0200 Message-Id: <83k167ha0u.fsf@gnu.org> From: Eli Zaretskii In-reply-to: (message from HaiJun Zhang on Sat, 4 Jan 2020 13:19:46 +0800) References: <83o8vpn8g1.fsf@gnu.org> <87mub9u0ld.fsf@gmx.de> <878smrtu65.fsf@gmx.de> <83r20hhyhi.fsf@gnu.org> MIME-version: 1.0 Content-type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Spam-Score: -2.3 (--) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) > Date: Sat, 4 Jan 2020 13:19:46 +0800 > From: HaiJun Zhang > Cc: michael.albinus@gmx.de, 38807@debbugs.gnu.org > > How do you write a useful Lisp application for a thread if you have no > way of displaying any messages? > > Workers are background workers. They don’t display messages directly. They post the error messages to the > UI part of the lisp application. How would that work? We don't have any such message queues in Emacs, and no machinery to display them, nor for telling the user which job reported the message. And again, some low-level Lisp functions issue messages when they like that, out of the application's control. What do you do with those? > For a lisp application such as an email client, it is splitted to two parts: the UI part and the worker part. The UI > part may has two callbacks(or event handlers): > 1. on_new_email > 2. on_error > > If the worker fetches an email successfully, it sends an event to the UI part and the on_new_email callback of > the UI part will be called. If the worker fails, it sends an error to the UI part and the on_error callback will be > called. The on_error callback can display the error message to user. I'm saying that fetching email doesn't need any Lisp, it can be done in C. And if so, you don't need Lisp-level threads at all. From unknown Wed Jul 30 13:11:05 2025 X-Loop: help-debbugs@gnu.org Subject: bug#38807: [Feature request]: Support lisp workers like web workers. Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 04 Jan 2020 09:01:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 38807 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: HaiJun Zhang Cc: 38807@debbugs.gnu.org, michael.albinus@gmx.de Received: via spool by 38807-submit@debbugs.gnu.org id=B38807.157812844930461 (code B ref 38807); Sat, 04 Jan 2020 09:01:01 +0000 Received: (at 38807) by debbugs.gnu.org; 4 Jan 2020 09:00:49 +0000 Received: from localhost ([127.0.0.1]:42448 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1infIf-0007vF-Er for submit@debbugs.gnu.org; Sat, 04 Jan 2020 04:00:49 -0500 Received: from eggs.gnu.org ([209.51.188.92]:54228) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1infId-0007v2-Cn for 38807@debbugs.gnu.org; Sat, 04 Jan 2020 04:00:47 -0500 Received: from fencepost.gnu.org ([2001:470:142:3::e]:49677) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1infIX-0005pP-Uu; Sat, 04 Jan 2020 04:00:42 -0500 Received: from [176.228.60.248] (port=2496 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1infIR-0004cu-8k; Sat, 04 Jan 2020 04:00:40 -0500 Date: Sat, 04 Jan 2020 11:00:37 +0200 Message-Id: <83imlrh9ze.fsf@gnu.org> From: Eli Zaretskii In-reply-to: (message from HaiJun Zhang on Sat, 4 Jan 2020 13:26:24 +0800) References: <83o8vpn8g1.fsf@gnu.org> <87mub9u0ld.fsf@gmx.de> <831rslmxih.fsf@gnu.org> <83lfqslafm.fsf@gnu.org> <83r20jjgg3.fsf@gnu.org> <83png1hyb8.fsf@gnu.org> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Spam-Score: -2.3 (--) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) > Date: Sat, 4 Jan 2020 13:26:24 +0800 > From: HaiJun Zhang > Cc: michael.albinus@gmx.de, 38807@debbugs.gnu.org > > There are ways of communications (e.g., you can call any Emacs > function), > > Can threads in modules call Emacs functions? Yes. It's in the docs, please read about modules in the ELisp manual. From unknown Wed Jul 30 13:11:05 2025 X-Loop: help-debbugs@gnu.org Subject: bug#38807: [Feature request]: Support lisp workers like web workers. Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 04 Jan 2020 09:08:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 38807 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: HaiJun Zhang Cc: 38807@debbugs.gnu.org, dgutov@yandex.ru Received: via spool by 38807-submit@debbugs.gnu.org id=B38807.157812885231035 (code B ref 38807); Sat, 04 Jan 2020 09:08:02 +0000 Received: (at 38807) by debbugs.gnu.org; 4 Jan 2020 09:07:32 +0000 Received: from localhost ([127.0.0.1]:42452 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1infP7-00084R-5y for submit@debbugs.gnu.org; Sat, 04 Jan 2020 04:07:32 -0500 Received: from eggs.gnu.org ([209.51.188.92]:42714) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1infP5-00084F-HW for 38807@debbugs.gnu.org; Sat, 04 Jan 2020 04:07:28 -0500 Received: from fencepost.gnu.org ([2001:470:142:3::e]:49744) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1infOz-0004C0-Ge; Sat, 04 Jan 2020 04:07:21 -0500 Received: from [176.228.60.248] (port=2908 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1infOy-00007i-UH; Sat, 04 Jan 2020 04:07:21 -0500 Date: Sat, 04 Jan 2020 11:07:22 +0200 Message-Id: <83h81bh9o5.fsf@gnu.org> From: Eli Zaretskii In-reply-to: (message from HaiJun Zhang on Sat, 4 Jan 2020 16:11:23 +0800) References: <83o8vpn8g1.fsf@gnu.org> <48d683e5-e0ec-2cbf-c8db-ad41cfc553e1@yandex.ru> <835zhxn5jg.fsf@gnu.org> <8336czlucz.fsf@gnu.org> <39f1e59e-08db-4862-98db-c31c3bcbab06@Spark> <83y2urjip6.fsf@gnu.org> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Spam-Score: -2.3 (--) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) > Date: Sat, 4 Jan 2020 16:11:23 +0800 > From: HaiJun Zhang > Cc: dgutov@yandex.ru, 38807@debbugs.gnu.org > > I extracted some text from the VSCode extension development guide. Hope you can get an overview first. Where does it say how to cause VSCode display an equivalent to an image or an overlay string over some text in a buffer? From unknown Wed Jul 30 13:11:05 2025 X-Loop: help-debbugs@gnu.org Subject: bug#38807: [Feature request]: Support lisp workers like web workers. Resent-From: HaiJun Zhang Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 04 Jan 2020 09:11:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 38807 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Eli Zaretskii Cc: 38807@debbugs.gnu.org, dgutov@yandex.ru Received: via spool by 38807-submit@debbugs.gnu.org id=B38807.157812905231344 (code B ref 38807); Sat, 04 Jan 2020 09:11:02 +0000 Received: (at 38807) by debbugs.gnu.org; 4 Jan 2020 09:10:52 +0000 Received: from localhost ([127.0.0.1]:42458 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1infSN-00089T-Rl for submit@debbugs.gnu.org; Sat, 04 Jan 2020 04:10:52 -0500 Received: from mail-oln040092254046.outbound.protection.outlook.com ([40.92.254.46]:24372 helo=APC01-PU1-obe.outbound.protection.outlook.com) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1infSL-00089E-6M for 38807@debbugs.gnu.org; Sat, 04 Jan 2020 04:10:50 -0500 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=J8A6qJQ7xkVFaQNM9neso42sjIOWyXnswtR6UxhlQeGZ2fLv42w6/j1qQSmK8MWfyEgJkqcR9nOJ49C6jx5aT++a3iHk6sEzTGaFY1qPH7GnZMvvSHRBWlKdEqjnFLpPZyj0nVtbek9MKahWcnYy1yqkE0ka1JicCt6N+aoyBFg2ly1eH10AJU3DM2vY2eKhfmNCvrMQzwDk7IP/HZ2hzBKqM2i15MS1Q4qg3orsxs5j2tQPcXLAMddfs2z2WnuQmuCitSPeuzRxvSbDdTQVI3TGxuMuJbjJsOg+N8pO3XPJGlE4XpvNB23Obkajxhuz2+PtLfgKsOmBkmTtmktVtA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=ZiQHImEUZtKWOzz8r1Y+i7+7zcadjMwT10eDAA3srHU=; b=XlIL6seza8VGo/5ZQdA7t27DTGgKcF10SjRdM1aKqP5e5cJs0vX4q+giVEd9P/GRkScL7p1SJIubo0eJnJmEKzjDGoVUqBQFHSUylQsd/WC0Rhz1t/qEPn+xfe/+PETa5zdUen/00Dho4545o/cVvbcPBmqxwZezgpp2QftOFkiE8AV1/4PRw8648++/GFahxnMD9M59xI95HuSAMHQVnoWtvIf4nhvOaGorC85EYvq1QqYY9lkBnCssU5xHpW3tDMq7U6urvt8PgODtHkVjEwJ9ABxWT1p51iVrn9rzf4YA+vurCIu2xMTgAHRBSrlUjG+nxjZa3beCuPfU2xB/3A== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=outlook.com; dmarc=pass action=none header.from=outlook.com; dkim=pass header.d=outlook.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=outlook.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=ZiQHImEUZtKWOzz8r1Y+i7+7zcadjMwT10eDAA3srHU=; b=rkDpp340gcLn74Ad6vlqxjYSVuuRPi2VojVG9dRgOGwGqJPq7ch3ziDXj+9pehH+neaZt3440NGxDDji2Rwz+dvGauEbhzE+HpTfGftqCzWVtgYDS8+CwVSS0hF1rVkD20AmnVtGmZI3L4t56nhRBADz1brU//RCKfSuw6/MC+1vfh9GUCOkeGEA9m+dsOzuEEuCsLInt/L9j4bLB8VjZzgaPvM+GDsmAp8x8OiQyA64DnScsO46k/lDeLGUQk7OIiWMFbC9fAbdV/8dgtnhdepspmvUJfwlO/1LDJ4hNkNMdyLTzLGaDNFBklN98uAmGA1awwunKcPE2Y/jzUdWHA== Received: from HK2APC01FT031.eop-APC01.prod.protection.outlook.com (10.152.248.51) by HK2APC01HT093.eop-APC01.prod.protection.outlook.com (10.152.249.226) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2602.11; Sat, 4 Jan 2020 09:10:40 +0000 Received: from PS1PR03MB3606.apcprd03.prod.outlook.com (10.152.248.55) by HK2APC01FT031.mail.protection.outlook.com (10.152.248.189) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2602.11 via Frontend Transport; Sat, 4 Jan 2020 09:10:40 +0000 X-IncomingTopHeaderMarker: OriginalChecksum:B9D8753582B5178D93ADC1124DED599B064C1882AAFA4D52F4032933050F9444; UpperCasedChecksum:6352EB03636005BB3BD1F0A2AE66F963409F5B3860ACF393698F1E1629BE71AA; SizeAsReceived:9175; Count:48 Received: from PS1PR03MB3606.apcprd03.prod.outlook.com ([fe80::b470:80bc:efed:9117]) by PS1PR03MB3606.apcprd03.prod.outlook.com ([fe80::b470:80bc:efed:9117%7]) with mapi id 15.20.2623.002; Sat, 4 Jan 2020 09:10:40 +0000 Date: Sat, 4 Jan 2020 17:10:31 +0800 From: HaiJun Zhang Message-ID: In-Reply-To: <83y2urjip6.fsf@gnu.org> References: <83o8vpn8g1.fsf@gnu.org> <48d683e5-e0ec-2cbf-c8db-ad41cfc553e1@yandex.ru> <835zhxn5jg.fsf@gnu.org> <8336czlucz.fsf@gnu.org> <39f1e59e-08db-4862-98db-c31c3bcbab06@Spark> <83y2urjip6.fsf@gnu.org> X-Readdle-Message-ID: b1af4b9f-cb51-4897-93ca-902ca24ca72d@Spark Content-Type: multipart/alternative; boundary="5e10568c_7924ca0a_4379" X-ClientProxiedBy: HK0PR01CA0070.apcprd01.prod.exchangelabs.com (2603:1096:203:a6::34) To PS1PR03MB3606.apcprd03.prod.outlook.com (2603:1096:803:4e::17) X-Microsoft-Original-Message-ID: MIME-Version: 1.0 Received: from [192.168.1.103] (1.199.245.197) by HK0PR01CA0070.apcprd01.prod.exchangelabs.com (2603:1096:203:a6::34) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2602.12 via Frontend Transport; Sat, 4 Jan 2020 09:10:38 +0000 X-Readdle-Message-ID: b1af4b9f-cb51-4897-93ca-902ca24ca72d@Spark X-Microsoft-Original-Message-ID: X-TMN: [UjtI3diSA7161aEQuIF/pm4kHbzt/QdQ] X-MS-PublicTrafficType: Email X-IncomingHeaderCount: 48 X-EOPAttributedMessage: 0 X-MS-Office365-Filtering-Correlation-Id: 12a3edd2-89e5-42da-691e-08d790f5f7fc X-MS-TrafficTypeDiagnostic: HK2APC01HT093: X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: qaixGKde0mienAE3N2ulpUqJ43WKmM0pJOOtw89fG+A3o2MQsTL7h/qtCOEEl2hQiZibfFDQ9lP9YZn0te+S2DSVyw+hIQOHrZ31YoKHRY9mv8yNSv6AD3GGdLOYqo1j38y0JA04KCnzgp39SG8jJ0/+6jk0kuwgd9rXzMEuf9AZtO3UJZIYjr/T4hYZZ6DI X-OriginatorOrg: outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 12a3edd2-89e5-42da-691e-08d790f5f7fc X-MS-Exchange-CrossTenant-OriginalArrivalTime: 04 Jan 2020 09:10:40.0774 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 84df9e7f-e9f6-40af-b435-aaaaaaaaaaaa X-MS-Exchange-CrossTenant-FromEntityHeader: Internet X-MS-Exchange-CrossTenant-RMS-PersistedConsumerOrg: 00000000-0000-0000-0000-000000000000 X-MS-Exchange-Transport-CrossTenantHeadersStamped: HK2APC01HT093 X-Spam-Score: 1.0 (+) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) --5e10568c_7924ca0a_4379 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline The UI extension is in =E2=80=9CExtending Workbench=E2=80=9D. Extension examples: 1. add icon buttons on the title menu bar(like toolbar) 2. add icon buttons on the status bar 3. add items to any existing menu or add new context menu 4. add an outline view to show symbol list(like imenu with a list view), = and add a context menu for the symbols in the list 5. add an virtual filesystem view to show files from a ftp server and ope= n files in it 6. call any command in the VSCode and get the result. The command may be = a file chooser dialog. 7. call any command registered by other extensions and get the result 8. register commands for user to use. The command is implemented in the e= xtension with typescript(like javescript). The command can be run by user= with Ctrl-P(like M-x in emacs) or can be called by other extensions(like= in 7). 9. create a webview and show it like an opened file. It can be used to pr= eview markdown. 10. add key bindings 11. create an slot in log panel and output logs to it. 12. display notifications(like the tooltip window in emacs) 13. show progress 14. get opened file list or get the active file =E5=9C=A8 2020=E5=B9=B41=E6=9C=881=E6=97=A5 +0800 PM11:32=EF=BC=8CEli Zar= etskii =EF=BC=8C=E5=86=99=E9=81=93=EF=BC=9A > > Date: Wed, 1 Jan 2020 12:02:35 +0800 > > =46rom: HaiJun Zhang > > Cc: dgutov=40yandex.ru, 38807=40debbugs.gnu.org > > > > While with the same dart project, the VSCode has good user responsive= ness. As far as I known, the > > extensions of VSCode runs in separate process. > > Can you even remotely compare the degree of control the VSCode > extension language can have on the UI, with what Emacs gives you=3F --5e10568c_7924ca0a_4379 Content-Type: text/html; charset="utf-8" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline
The UI extension is in =E2=80=9CExtending Workbench=E2=80= =9D.

Extension examples:
1. add icon buttons on the title menu bar(like toolbar)
2. add icon buttons on the status bar
3. add items to any existing menu or add new context menu
4. add an outline view to show symbol list(like imenu with a list view= ), and add a context menu for the symbols in the list
5. add an virtual filesystem view to show files from a ftp server and = open files in it
6. call any command in the VSCode and get the result. The command may = be a file chooser dialog.
7. call any command registered by other extensions and get the result<= /div>
8. register commands for user to use. The command is implemented in th= e extension with typescript(like javescript). The command can be run by use= r with Ctrl-P(like M-x in emacs) or can be called by other extensions(like = in 7).
9. create a webview and show it like an opened file. It can be used to= preview markdown.
10. add key bindings
11. create an slot in log panel and output logs to it.
12. display notifications(like the tooltip window in emacs)
13. show progress
14. get opened file list or get the active file


=E5=9C=A8 2020=E5=B9=B41=E6=9C=881=E6=97= =A5 +0800 PM11:32=EF=BC=8CEli Zaretskii <eliz@gnu.org>=EF=BC=8C= =E5=86=99=E9=81=93=EF=BC=9A
Date: Wed, 1 Jan 2020 = 12:02:35 +0800
From: HaiJun Zhang <netjune@outlook.com>
Cc: dgutov@yandex.ru, 38807@debbugs.gnu.org

While with the same dart project, the VSCode has good user responsiveness. = As far as I known, the
extensions of VSCode runs in separate process.

Can you even remotely compare the degree of control the VSCode
extension language can have on the UI, with what Emacs gives you?
--5e10568c_7924ca0a_4379-- From unknown Wed Jul 30 13:11:05 2025 X-Loop: help-debbugs@gnu.org Subject: bug#38807: [Feature request]: Support lisp workers like web workers. Resent-From: HaiJun Zhang Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 04 Jan 2020 09:34:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 38807 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Eli Zaretskii Cc: 38807@debbugs.gnu.org, michael.albinus@gmx.de Received: via spool by 38807-submit@debbugs.gnu.org id=B38807.15781304201027 (code B ref 38807); Sat, 04 Jan 2020 09:34:02 +0000 Received: (at 38807) by debbugs.gnu.org; 4 Jan 2020 09:33:40 +0000 Received: from localhost ([127.0.0.1]:42471 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1infoS-0000GV-Fl for submit@debbugs.gnu.org; Sat, 04 Jan 2020 04:33:40 -0500 Received: from mail-oln040092253047.outbound.protection.outlook.com ([40.92.253.47]:6107 helo=APC01-SG2-obe.outbound.protection.outlook.com) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1infoR-0000GH-0l for 38807@debbugs.gnu.org; Sat, 04 Jan 2020 04:33:39 -0500 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=gBC2wv/VnimPvK0X+alOS1nwu7wfM7E9HAUKl1TusY3zm4ENYncUp2t3yGNfCYJ4IsSo+HemoQX77hMToX8cT7dWq7HCbeei33ltiZleDr7PxmFvTaSfSIHSSigcLDS/mdwezgW0hek+SKUF/j3BkO0/8ATnj/7fJjnqhU0qJWxTC78P+2EjiFAveMdf/aeEv/UGTcQizXj1/U0OmmsEr3NbhTRegX0YhsFcrhJU7uAMKrxTR/V8TBVf9c60tH7GahATZ+zSYtIZJoKUfDBGccxEIk4kRp1qfz7XVtPL/jvMJ+s+b5EqG+d3bWVyJt+NdKeQyDPh3eBwbdnIhaLG4w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=09u20Ne9TFzUVTsdWwHdNvK8LdJKFGPZSO66+Qq3f84=; b=dpdYyZAfSfJ1YnpopxjmaNB8Puqn7sfmN7Czs8tpkUHZvE3+BXSjAAH2Yur3ERYQyHhAsMyjV2OjB/o63WGrx+8lFBGwqA+ROP2Agr4jktFQsbXoa2+DNViHHLkj8frx8sYqHNa/2mPFSayQh3tOJUs8tT1bkWFhYZINixKHgb5ptWSxTKU3JW4/96dKO0EYRUSYTvyW8XRBl9AH+9otZ4aWKzX6bTL0yiyozWy/iPhuF8HHzM3pSK7ZW0kGMqajU0YVhcjkOFftqbTSaxiB01a6A5AZjcEwenK0Ry7LmU+upsJPq9b23RsUN1EyQDf3pK4OqyVTz4gpG3bclGvwNg== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=outlook.com; dmarc=pass action=none header.from=outlook.com; dkim=pass header.d=outlook.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=outlook.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=09u20Ne9TFzUVTsdWwHdNvK8LdJKFGPZSO66+Qq3f84=; b=eFJfK38Fsqpo2ezsANPJFZUulVX92E2+xeQXeyGIb8D2KPkR7T/AIW74Vxjgf0O3zq1AzJuej0/YW+JljL7pKB+LNUD43lTPNrzBC/y3UNUAZ5tF5B1igEcvug6Eem4wBW3LhjJxL+NBerpB0AKK2AF7NPZ6kTh/ak/ZP6ytQJ46qr8IzH2DQnn9OCvy49d1HuGKBucI7yPiYaSuIHB29c6nzgnWdZDCNcIwMWWsQNFOjIiR1z1/Qm+mpgUMhzvqN+WPjr+Hx0X8qgtbMIGL7pVpdV4B31P/m7cCyyY+/NnpEQUM1TtI753Z7FGjJhmPaeRFCRXErhz7uHil2htdDg== Received: from HK2APC01FT040.eop-APC01.prod.protection.outlook.com (10.152.248.51) by HK2APC01HT059.eop-APC01.prod.protection.outlook.com (10.152.249.11) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2602.11; Sat, 4 Jan 2020 09:33:29 +0000 Received: from PS1PR03MB3606.apcprd03.prod.outlook.com (10.152.248.52) by HK2APC01FT040.mail.protection.outlook.com (10.152.249.42) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2602.11 via Frontend Transport; Sat, 4 Jan 2020 09:33:29 +0000 X-IncomingTopHeaderMarker: OriginalChecksum:F4B380A2DDA243D372404F7DF2ECF843ECC1B6AFF2C9914A8C5902B2838A5B15; UpperCasedChecksum:D5139FFBF7DBA619D49742CB543A51A7CC1CB5AA83732D7A0AD6D3049D6A1F32; SizeAsReceived:9204; Count:48 Received: from PS1PR03MB3606.apcprd03.prod.outlook.com ([fe80::b470:80bc:efed:9117]) by PS1PR03MB3606.apcprd03.prod.outlook.com ([fe80::b470:80bc:efed:9117%7]) with mapi id 15.20.2623.002; Sat, 4 Jan 2020 09:33:29 +0000 Date: Sat, 4 Jan 2020 17:33:18 +0800 From: HaiJun Zhang Message-ID: In-Reply-To: <83k167ha0u.fsf@gnu.org> References: <83o8vpn8g1.fsf@gnu.org> <87mub9u0ld.fsf@gmx.de> <878smrtu65.fsf@gmx.de> <83r20hhyhi.fsf@gnu.org> <83k167ha0u.fsf@gnu.org> X-Readdle-Message-ID: ee387ecf-46bb-4574-96b1-245bc259d2f0@Spark Content-Type: multipart/alternative; boundary="5e105be3_3b2125a3_4379" X-ClientProxiedBy: HK2P15301CA0004.APCP153.PROD.OUTLOOK.COM (2603:1096:202:1::14) To PS1PR03MB3606.apcprd03.prod.outlook.com (2603:1096:803:4e::17) X-Microsoft-Original-Message-ID: MIME-Version: 1.0 Received: from [192.168.1.103] (1.199.245.197) by HK2P15301CA0004.APCP153.PROD.OUTLOOK.COM (2603:1096:202:1::14) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2644.2 via Frontend Transport; Sat, 4 Jan 2020 09:33:28 +0000 X-Readdle-Message-ID: ee387ecf-46bb-4574-96b1-245bc259d2f0@Spark X-Microsoft-Original-Message-ID: X-TMN: [++I0J+N903OaUDhxq1uC6NTnDcogmobu] X-MS-PublicTrafficType: Email X-IncomingHeaderCount: 48 X-EOPAttributedMessage: 0 X-MS-Office365-Filtering-Correlation-Id: 6134a575-e5f0-47e5-2dc6-08d790f92818 X-MS-TrafficTypeDiagnostic: HK2APC01HT059: X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: 2h6RWQWgO7R0PGw9I0wom5bG+dJDouDzOmC1X9HpTo6ERz4UhNvt33qCf3ipbIHAvzhKw0HHtNRHPPETjxJ5E+o6yPMlVJSUo2OI0z9R7NJoJEuOxpVIxV+7xmVdaBZ0FieVrJaSdeKc0UCl7jzLYNN5LqKxyEo1UFZHAoAIQaFcjAizcoO4lO5aWPd7fvpc X-OriginatorOrg: outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 6134a575-e5f0-47e5-2dc6-08d790f92818 X-MS-Exchange-CrossTenant-OriginalArrivalTime: 04 Jan 2020 09:33:29.2792 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 84df9e7f-e9f6-40af-b435-aaaaaaaaaaaa X-MS-Exchange-CrossTenant-FromEntityHeader: Internet X-MS-Exchange-CrossTenant-RMS-PersistedConsumerOrg: 00000000-0000-0000-0000-000000000000 X-MS-Exchange-Transport-CrossTenantHeadersStamped: HK2APC01HT059 X-Spam-Score: 0.0 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) --5e105be3_3b2125a3_4379 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline =E5=9C=A8 2020=E5=B9=B41=E6=9C=884=E6=97=A5 +0800 PM4:59=EF=BC=8CEli Zare= tskii =EF=BC=8C=E5=86=99=E9=81=93=EF=BC=9A > How would that work=3F We don't have any such message queues in Emacs, > and no machinery to display them, nor for telling the user which job > reported the message. Some APIs need to be added for communication use. The UI part of the emai= l client known what happens and will tell the user. > And again, some low-level Lisp functions issue messages when they like > that, out of the application's control. What do you do with those=3F > The lisp machine need to be modified for running workers. When running wo= rkers, It may save the messages to a log file. > I'm saying that fetching email doesn't need any Lisp, it can be done > in C. And if so, you don=E2=80=99t need Lisp-level threads at all. Many emacs hackers may prefer lisp to C. Writing lisp is faster than C. A= nd compiling C is not an easy =C2=A0thing for many users. --5e105be3_3b2125a3_4379 Content-Type: text/html; charset="utf-8" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline
=E5=9C=A8 2020=E5=B9=B41=E6=9C=884=E6=97= =A5 +0800 PM4:59=EF=BC=8CEli Zaretskii <eliz@gnu.org>=EF=BC=8C=E5= =86=99=E9=81=93=EF=BC=9A
How would that work? W= e don't have any such message queues in Emacs,
and no machinery to display them, nor for telling the user which job
reported the message.

Some APIs need to be added for communication use. The UI = part of the email client known what happens and will tell the user. 
And again, some low-le= vel Lisp functions issue messages when they like
that, out of the application's control. What do you do with those?


The lisp machine need to be modified for running workers.= When running workers, It may save the messages to a log file.

I'm saying that fetchi= ng email doesn't need any Lisp, it can be done
in C. And if so, you don=E2=80=99t need Lisp-level threads at all. 

Many emacs hackers may prefer lisp to C. Writing lisp is faster than C. And= compiling C is not an easy
 thing for many users.

--5e105be3_3b2125a3_4379-- From unknown Wed Jul 30 13:11:05 2025 X-Loop: help-debbugs@gnu.org Subject: bug#38807: [Feature request]: Support lisp workers like web workers. Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 04 Jan 2020 09:52:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 38807 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: HaiJun Zhang Cc: 38807@debbugs.gnu.org, michael.albinus@gmx.de Received: via spool by 38807-submit@debbugs.gnu.org id=B38807.15781314982584 (code B ref 38807); Sat, 04 Jan 2020 09:52:02 +0000 Received: (at 38807) by debbugs.gnu.org; 4 Jan 2020 09:51:38 +0000 Received: from localhost ([127.0.0.1]:42495 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ing5q-0000fc-3L for submit@debbugs.gnu.org; Sat, 04 Jan 2020 04:51:38 -0500 Received: from eggs.gnu.org ([209.51.188.92]:44532) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ing5o-0000fN-69 for 38807@debbugs.gnu.org; Sat, 04 Jan 2020 04:51:36 -0500 Received: from fencepost.gnu.org ([2001:470:142:3::e]:50229) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ing5h-0002ss-BQ; Sat, 04 Jan 2020 04:51:29 -0500 Received: from [176.228.60.248] (port=1649 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1ing5g-0005rQ-IW; Sat, 04 Jan 2020 04:51:29 -0500 Date: Sat, 04 Jan 2020 11:51:30 +0200 Message-Id: <83blrjh7ml.fsf@gnu.org> From: Eli Zaretskii In-reply-to: (message from HaiJun Zhang on Sat, 4 Jan 2020 17:33:18 +0800) References: <83o8vpn8g1.fsf@gnu.org> <87mub9u0ld.fsf@gmx.de> <878smrtu65.fsf@gmx.de> <83r20hhyhi.fsf@gnu.org> <83k167ha0u.fsf@gnu.org> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Spam-Score: -2.3 (--) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) > Date: Sat, 4 Jan 2020 17:33:18 +0800 > From: HaiJun Zhang > Cc: michael.albinus@gmx.de, 38807@debbugs.gnu.org > > How would that work? We don't have any such message queues in Emacs, > and no machinery to display them, nor for telling the user which job > reported the message. > > Some APIs need to be added for communication use. The UI part of the email client known what happens and > will tell the user. Sorry, such general and vague suggestions aren't useful. You need to propose specific changes that are consistent with how Emacs is designed and implemented. You need to describe those new APIs, and you need to tell how will they be used by the existing code that displays messages in the echo area. It goes without saying that an editor different from Emacs could be designed from scratch to support multi-threading between the UI and the processing engine. The issues at hand are (a) would such an editor be as powerful and flexible as Emacs, in terms of letting the programs written in the extension language control what is being displayed and where; and (b) would it be possible to add such threading to Emacs as it is now without completely redesigning how it processes input events and how it displays messages to the user. So any proposals in that direction must be more concrete and directly related to how Emacs works now, otherwise this will not be a discussion of any practical interest for Emacs development. From unknown Wed Jul 30 13:11:05 2025 X-Loop: help-debbugs@gnu.org Subject: bug#38807: [Feature request]: Support lisp workers like web workers. Resent-From: HaiJun Zhang Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 06 Jan 2020 05:09:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 38807 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Eli Zaretskii Cc: 38807@debbugs.gnu.org, michael.albinus@gmx.de Received: via spool by 38807-submit@debbugs.gnu.org id=B38807.157828732924763 (code B ref 38807); Mon, 06 Jan 2020 05:09:02 +0000 Received: (at 38807) by debbugs.gnu.org; 6 Jan 2020 05:08:49 +0000 Received: from localhost ([127.0.0.1]:44897 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ioKdE-0006RL-QJ for submit@debbugs.gnu.org; Mon, 06 Jan 2020 00:08:49 -0500 Received: from mail-oln040092254014.outbound.protection.outlook.com ([40.92.254.14]:12352 helo=APC01-PU1-obe.outbound.protection.outlook.com) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ioKdC-0006R7-Pw for 38807@debbugs.gnu.org; Mon, 06 Jan 2020 00:08:47 -0500 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=FKN99Qx0293ZWh8GZau3dWRwY82C5/OaR+nDgodcarBhPFY/l+AjI2Es60N1qMnpWzSSDcjCshoNKCfAbT3bo26oYTq1CHsbLDODYwS63wyM8c9M8ZK86ZpjjjTxVpg5ZfR0cVEd32Ws3QnOb7X7kmL0r1MZR1tLeMwddegMZayRIPqjvJTSP6Z0/Gsk5l26DCjfhuBx5GtWYtS5f3B5DmX/Lpxs3X6iYLEYH0ZI+TXHEj09DWI6pyZ3H0LLYB0XTSv5xi9S7MEA/ruf2bYfV5ndp04iWLzVb2mWQad58xcJcZzTCiTJ0/QRwHe06Ido3h6ps+VamJ8sJDikL1ozXg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=IrfAsqp3sfdc8kVN2TXV9DjDFxuCqdR1gsPPVDL1zN4=; b=Vsc0EfRgTI+oVgEWpBQB1Px6X1Quul7bStdWB2IncHQzc8jsOHtv9EK3wk5CWpkuXYhILwRjGWcG8/Ukd34Gg9Emr7U3yh/ONlRBw9ub9SUY9185ikxHM8+5cidi089YXRc6TqqFkoktq//Y2aXVDmXnQzyDo4gwNBdA2ULXKRO+LxVdJr21A3fJ2gvgDw4avZPcCH6ubbayVr8AO3bmBZiTIxxxVkAvVN2HRFks6VGpwb1x+shGt41hzTAqft2kblz0Fexfx+/t0iBfJag27tR8qFQz21Rje+wpfdShw/iC/5jRqPddaJAgt5MNp3Wc8yqgEwYdaxiPLAC1i09KPQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=outlook.com; dmarc=pass action=none header.from=outlook.com; dkim=pass header.d=outlook.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=outlook.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=IrfAsqp3sfdc8kVN2TXV9DjDFxuCqdR1gsPPVDL1zN4=; b=CcemivgiM/BEaSgh3x3Doh2JBs5Rbe5rFa6I+6hAb60H87phWuCR4WeurAMBtzLCHbzJ4TX34RsIsLLdolM06F/iW2lvEYP+NG0+F+mX3n0nbCzGJcnN/s4+CHbYJkNQaOCxVaGiqWx3P6+27aoVzEtqgV1of0KtAE638jVkd/um2iGsGGRCqpJRZhglVXByr75QSVyqwSpHIbHGjnqCYn/pdzhx5BP52uksYsUaRnOHIXmyC7dyRqghOhKu+QCSnyTOIadx+sfomt+oo5urLTFNvTDoWIk2QDm9FPL2Bdc98BwEfdhJJ7BSs7KOYLr/ROcxSqv+oaC6v4dzsRoHtA== Received: from SG2APC01FT039.eop-APC01.prod.protection.outlook.com (10.152.250.52) by SG2APC01HT216.eop-APC01.prod.protection.outlook.com (10.152.251.78) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2602.11; Mon, 6 Jan 2020 05:08:38 +0000 Received: from PS1PR03MB3606.apcprd03.prod.outlook.com (10.152.250.60) by SG2APC01FT039.mail.protection.outlook.com (10.152.251.12) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2602.11 via Frontend Transport; Mon, 6 Jan 2020 05:08:38 +0000 X-IncomingTopHeaderMarker: OriginalChecksum:3B4D5AD724A806F86CEB895D23A4C295ACD7C35CD3BD9048D1799C104AEB5F02; UpperCasedChecksum:86899C67BA6866F4593922D5D4717D5CF16C1F4E2A95D0D41FACA67CDCAA75C1; SizeAsReceived:9334; Count:48 Received: from PS1PR03MB3606.apcprd03.prod.outlook.com ([fe80::b470:80bc:efed:9117]) by PS1PR03MB3606.apcprd03.prod.outlook.com ([fe80::b470:80bc:efed:9117%7]) with mapi id 15.20.2623.008; Mon, 6 Jan 2020 05:08:38 +0000 Date: Mon, 6 Jan 2020 13:08:28 +0800 From: HaiJun Zhang Message-ID: In-Reply-To: <83blrjh7ml.fsf@gnu.org> References: <83o8vpn8g1.fsf@gnu.org> <87mub9u0ld.fsf@gmx.de> <878smrtu65.fsf@gmx.de> <83r20hhyhi.fsf@gnu.org> <83k167ha0u.fsf@gnu.org> <83blrjh7ml.fsf@gnu.org> X-Readdle-Message-ID: 15c45e6d-2b21-4c88-962e-0d033ebf6e7e@Spark Content-Type: multipart/alternative; boundary="5e12c0d1_153ea438_b145" X-ClientProxiedBy: HK2PR04CA0085.apcprd04.prod.outlook.com (2603:1096:202:15::29) To PS1PR03MB3606.apcprd03.prod.outlook.com (2603:1096:803:4e::17) X-Microsoft-Original-Message-ID: <15c45e6d-2b21-4c88-962e-0d033ebf6e7e@Spark> MIME-Version: 1.0 Received: from [192.168.1.103] (1.199.245.197) by HK2PR04CA0085.apcprd04.prod.outlook.com (2603:1096:202:15::29) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2602.12 via Frontend Transport; Mon, 6 Jan 2020 05:08:36 +0000 X-Readdle-Message-ID: 15c45e6d-2b21-4c88-962e-0d033ebf6e7e@Spark X-Microsoft-Original-Message-ID: <15c45e6d-2b21-4c88-962e-0d033ebf6e7e@Spark> X-TMN: [pmi7WOKQDp1EBJ4tIWjXV93dyThsZQZk] X-MS-PublicTrafficType: Email X-IncomingHeaderCount: 48 X-EOPAttributedMessage: 0 X-MS-Office365-Filtering-Correlation-Id: 75cd23ee-147f-452e-ecff-08d792667d21 X-MS-TrafficTypeDiagnostic: SG2APC01HT216: X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: IuTZxMp++wzxGecMQv0G7Oz5qiIQoDm3etzOi1Iw5WaMF3/chStkmzg4j9DoA+zca3Z6LNSakdzTrN+iUrna4NLKEOxfZhlNzZDAQD5EbL3wvBi79ozHqvswXwZrZ6Yi04f3T8zayHP7veyCVwGkUwLtnhqaNtknttoI7FDuDxyl5IXgE9HvYsCC7c38j4a+ X-OriginatorOrg: outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 75cd23ee-147f-452e-ecff-08d792667d21 X-MS-Exchange-CrossTenant-OriginalArrivalTime: 06 Jan 2020 05:08:38.5565 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 84df9e7f-e9f6-40af-b435-aaaaaaaaaaaa X-MS-Exchange-CrossTenant-FromEntityHeader: Internet X-MS-Exchange-CrossTenant-RMS-PersistedConsumerOrg: 00000000-0000-0000-0000-000000000000 X-MS-Exchange-Transport-CrossTenantHeadersStamped: SG2APC01HT216 X-Spam-Score: 1.0 (+) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) --5e12c0d1_153ea438_b145 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline =E5=9C=A8 2020=E5=B9=B41=E6=9C=884=E6=97=A5 +0800 PM5:51=EF=BC=8CEli Zare= tskii =EF=BC=8C=E5=86=99=E9=81=93=EF=BC=9A > > Date: Sat, 4 Jan 2020 17:33:18 +0800 > > =46rom: HaiJun Zhang > > Cc: michael.albinus=40gmx.de, 38807=40debbugs.gnu.org > > > > How would that work=3F We don't have any such message queues in Emacs= , > > and no machinery to display them, nor for telling the user which job > > reported the message. > > > > Some APIs need to be added for communication use. The UI part of the = email client known what happens and > > will tell the user. > > Sorry, such general and vague suggestions aren't useful. You need to > propose specific changes that are consistent with how Emacs is > designed and implemented. You need to describe those new APIs, and > you need to tell how will they be used by the existing code that > displays messages in the echo area. On the UI part, create a worker like this: =E2=80=94=E2=80=94=E2=80=94=E2=80=94=E2=80=94=E2=80=94xxxx=E2=80=94=E2=80= =94=E2=80=94=E2=80=94=E2=80=94=E2=80=94 fetch=5Fmail=5Fworker =3D new Worker(xxx) fetch=5Fmail=5Fworker.onmessage =3D function (msg) =7B =C2=A0 =C2=A0 // display the new mail =7D; fetch=5Fmail=5Fworker.onerror =3D function (error) =7B =C2=A0 =C2=A0 message(=E2=80=9Cfetch mail error: %s=E2=80=9D, error) =7D; fetch=5Fmail=5Fworker.start() =E2=80=94=E2=80=94=E2=80=94=E2=80=94=E2=80=94=E2=80=94xxxx=E2=80=94=E2=80= =94=E2=80=94=E2=80=94=E2=80=94=E2=80=94=E2=80=94 On the worker part, fetch emails and post messages or error: =E2=80=94=E2=80=94=E2=80=94=E2=80=94=E2=80=94=E2=80=94xxxx=E2=80=94=E2=80= =94=E2=80=94=E2=80=94=E2=80=94=E2=80=94=E2=80=94- while(true) =7B =C2=A0 =C2=A0 error =3D fetch=5Fnext=5Fmail(&msg) =C2=A0 =C2=A0 if error =21=3D nil =7B =C2=A0 =C2=A0 =C2=A0 =C2=A0post=5Ferror(error) =C2=A0 =C2=A0 =C2=A0 =C2=A0break =C2=A0 =C2=A0 =7D =C2=A0 =C2=A0 post=5Fmessage(msg) =7D =E2=80=94=E2=80=94=E2=80=94=E2=80=94=E2=80=94=E2=80=94xxxx=E2=80=94=E2=80= =94=E2=80=94=E2=80=94=E2=80=94=E2=80=94=E2=80=94- > It goes without saying that an editor different from Emacs could be > designed from scratch to support multi-threading between the UI and > the processing engine. The issues at hand are (a) would such an > editor be as powerful and flexible as Emacs, in terms of letting the > programs written in the extension language control what is being > displayed and where; and (b) would it be possible to add such > threading to Emacs as it is now without completely redesigning how it > processes input events and how it displays messages to the user. > > So any proposals in that direction must be more concrete and directly > related to how Emacs works now, otherwise this will not be a > discussion of any practical interest for Emacs development. I don=E2=80=99t known if the above code is=C2=A0concrete. --5e12c0d1_153ea438_b145 Content-Type: text/html; charset="utf-8" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline
=E5=9C=A8 2020=E5=B9=B41=E6=9C=884=E6=97= =A5 +0800 PM5:51=EF=BC=8CEli Zaretskii <eliz@gnu.org>=EF=BC=8C=E5= =86=99=E9=81=93=EF=BC=9A
Date: Sat, 4 Jan 2020 = 17:33:18 +0800
From: HaiJun Zhang <netjune@outlook.com>
Cc: michael.albinus@gmx.de, 38807@debbugs.gnu.org

How would that work? We don't have any such message queues in Emacs,
and no machinery to display them, nor for telling the user which job
reported the message.

Some APIs need to be added for communication use. The UI part of the email = client known what happens and
will tell the user.

Sorry, such general and vague suggestions aren't useful. You need to
propose specific changes that are consistent with how Emacs is
designed and implemented. You need to describe those new APIs, and
you need to tell how will they be used by the existing code that
displays messages in the echo area.

On the UI part, create a worker like this:
=E2=80=94=E2=80=94=E2=80=94=E2=80=94=E2=80=94=E2=80=94xxx= x=E2=80=94=E2=80=94=E2=80=94=E2=80=94=E2=80=94=E2=80=94
fetch_mail_worker =3D new Worker(xxx)

fetch_mail_worker.onmessage =3D function (msg) {
    // display the new mail
};

fetch_mail_worker.onerror =3D function (error) {
    message(=E2=80=9Cfetch mail error: %s=E2=80= =9D, error)
};

fetch_mail_worker.start()
=E2=80=94=E2=80=94=E2=80=94=E2=80=94=E2=80=94=E2=80=94xxx= x=E2=80=94=E2=80=94=E2=80=94=E2=80=94=E2=80=94=E2=80=94=E2=80=94

On the worker part, fetch emails and post messages or err= or:
=E2=80=94=E2=80=94=E2=80=94=E2=80=94=E2=80=94=E2=80=94xxx= x=E2=80=94=E2=80=94=E2=80=94=E2=80=94=E2=80=94=E2=80=94=E2=80=94-
while(true) {
    error =3D fetch_next_mail(&msg)
    if error !=3D nil {
       post_error(error)
       break
    }

    post_message(msg)
}
=E2=80=94=E2=80=94=E2=80=94=E2=80=94=E2=80=94=E2=80=94xxx= x=E2=80=94=E2=80=94=E2=80=94=E2=80=94=E2=80=94=E2=80=94=E2=80=94-

It goes without saying= that an editor different from Emacs could be
designed from scratch to support multi-threading between the UI and
the processing engine. The issues at hand are (a) would such an
editor be as powerful and flexible as Emacs, in terms of letting the
programs written in the extension language control what is being
displayed and where; and (b) would it be possible to add such
threading to Emacs as it is now without completely redesigning how it
processes input events and how it displays messages to the user.

So any proposals in that direction must be more concrete and directly
related to how Emacs works now, otherwise this will not be a
discussion of any practical interest for Emacs development. 

I don=E2=80=99t known if the above code is concrete.

--5e12c0d1_153ea438_b145-- From unknown Wed Jul 30 13:11:05 2025 X-Loop: help-debbugs@gnu.org Subject: bug#38807: [Feature request]: Support lisp workers like web workers. Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 06 Jan 2020 16:08:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 38807 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: HaiJun Zhang Cc: 38807@debbugs.gnu.org, michael.albinus@gmx.de Received: via spool by 38807-submit@debbugs.gnu.org id=B38807.157832683126560 (code B ref 38807); Mon, 06 Jan 2020 16:08:02 +0000 Received: (at 38807) by debbugs.gnu.org; 6 Jan 2020 16:07:11 +0000 Received: from localhost ([127.0.0.1]:46550 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ioUuM-0006uK-Nz for submit@debbugs.gnu.org; Mon, 06 Jan 2020 11:07:11 -0500 Received: from eggs.gnu.org ([209.51.188.92]:47972) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ioUuL-0006u5-Cm for 38807@debbugs.gnu.org; Mon, 06 Jan 2020 11:07:09 -0500 Received: from fencepost.gnu.org ([2001:470:142:3::e]:57084) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ioUuF-00084z-Uw; Mon, 06 Jan 2020 11:07:03 -0500 Received: from [176.228.60.248] (port=1575 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1ioUuF-0007h2-48; Mon, 06 Jan 2020 11:07:03 -0500 Date: Mon, 06 Jan 2020 18:07:12 +0200 Message-Id: <83tv58efgv.fsf@gnu.org> From: Eli Zaretskii In-reply-to: (message from HaiJun Zhang on Mon, 6 Jan 2020 13:08:28 +0800) References: <83o8vpn8g1.fsf@gnu.org> <87mub9u0ld.fsf@gmx.de> <878smrtu65.fsf@gmx.de> <83r20hhyhi.fsf@gnu.org> <83k167ha0u.fsf@gnu.org> <83blrjh7ml.fsf@gnu.org> MIME-version: 1.0 Content-type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Spam-Score: -2.3 (--) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) > Date: Mon, 6 Jan 2020 13:08:28 +0800 > From: HaiJun Zhang > Cc: michael.albinus@gmx.de, 38807@debbugs.gnu.org > > Sorry, such general and vague suggestions aren't useful. You need to > propose specific changes that are consistent with how Emacs is > designed and implemented. You need to describe those new APIs, and > you need to tell how will they be used by the existing code that > displays messages in the echo area. > > On the UI part, create a worker like this: > ——————xxxx—————— > fetch_mail_worker = new Worker(xxx) > > fetch_mail_worker.onmessage = function (msg) { > // display the new mail > }; > > fetch_mail_worker.onerror = function (error) { > message(“fetch mail error: %s”, error) > }; > > fetch_mail_worker.start() > ——————xxxx——————— > > On the worker part, fetch emails and post messages or error: > ——————xxxx———————- > while(true) { > error = fetch_next_mail(&msg) > if error != nil { > post_error(error) > break > } > > post_message(msg) > } > ——————xxxx———————- This is very abstract. I hoped you could describe this in terms of relevant Emacs APIs and features. From unknown Wed Jul 30 13:11:05 2025 X-Loop: help-debbugs@gnu.org Subject: bug#38807: [Feature request]: Support lisp workers like web workers. Resent-From: HaiJun Zhang Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 21 Mar 2020 02:26:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 38807 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Eli Zaretskii Cc: 38807@debbugs.gnu.org, michael.albinus@gmx.de Received: via spool by 38807-submit@debbugs.gnu.org id=B38807.158475750414493 (code B ref 38807); Sat, 21 Mar 2020 02:26:02 +0000 Received: (at 38807) by debbugs.gnu.org; 21 Mar 2020 02:25:04 +0000 Received: from localhost ([127.0.0.1]:45859 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jFTor-0003lG-1r for submit@debbugs.gnu.org; Fri, 20 Mar 2020 22:25:04 -0400 Received: from mail-oln040092255063.outbound.protection.outlook.com ([40.92.255.63]:22112 helo=APC01-HK2-obe.outbound.protection.outlook.com) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jFTon-0003l2-Bq for 38807@debbugs.gnu.org; Fri, 20 Mar 2020 22:24:58 -0400 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=O9MZtV3YZtb2PynJtUNect+mZ59WlUidBViaOaCBY/a5uTaUCbWlBrMNQu8B4TNzEjN/bjihQNg5jnk3GldaUIJ3UVBHYCzj4eE41O6xqVcpgD2gVVmEbZhjK7XiLVERWREo65zAYaFTZU7R69LsqYU1SvBDDpExPXizEI9Dv9RNBTJOr5SE1sicKxqa4DnNbryqj0n3RAsXPX5/2aNnd8puZZffrvX174NL3VhbvWahSXFxSDmxNKmbzaHgpg/skqjDVb4OjSrxA/MOjVVCDYF8gO0IDeDGPkcMVK+CrzfsMYaR96rigDeJsejZrVWq+cFBM2py8F1mz/VZAcO97Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=m+j9ZkZQH+sNlm5NS44mAPtlRDN48LXxKibyxgFoZIo=; b=K4w+giGLbe83GvwYThnRhGm3GcOTZNcCPHd3muLg4H9wR140OG8b/07zzpI+pivLXqq+7uZjb+uwHEUUAekFrpDi05fZjAuMa+YGGNNhqf8PIsbN+6RU/Ej6oJU+n0ky5h8rPrhkntWcQ/EIUVo9LysapOA1kka+vetyWh1ZIiPMxe5gK7H8PiPU0Ncth0vaEEIoEhVs4NL89eEiQdO5QLbfauZQeEWjg/lPXWZyZ4uzsCLUl8tRv/L5SL6nrhBbUxbGFsLYrgYsLjac63gj89wuw0pCMt5SLa+9aWDTzojOpCtGmuWu4lAHPgBgILJ0ZYAeXOrkfOQ98ehbAy5k7Q== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=outlook.com; dmarc=pass action=none header.from=outlook.com; dkim=pass header.d=outlook.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=outlook.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=m+j9ZkZQH+sNlm5NS44mAPtlRDN48LXxKibyxgFoZIo=; b=HHN7FYjDiw0e7HZ5H86r2Ak6sl/ZcXCDPs4ZMntayVr18XV/darenrmTsrGWa1CXoQe38A1M9KP6gG77er7fNo1iRJhQwX1nU9koJ6eaU15qrGxl7fRbKZhKbvhHtVywHbpMTMy3F/V4nebWp2M9xB0S6JHZvYtrMtV/tWQaMciwbpWDKVqNOv+svgRfGqGfwfauF3Nc8T2q+xcQKMocvTd6DMYRsN0X7WWwwMqHl5OlTgo+EzGvBSx5H6+RfKS7Mz9PCT9VBTro350ajA6hdIylQdHxpzaeYXL+KS2T82+eQV1RYlAVT6I6d4Xe5Car0y5u7RWXmLf9XoL3F1UysQ== Received: from SG2APC01FT012.eop-APC01.prod.protection.outlook.com (2a01:111:e400:7ebd::38) by SG2APC01HT104.eop-APC01.prod.protection.outlook.com (2a01:111:e400:7ebd::329) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2814.13; Sat, 21 Mar 2020 02:24:49 +0000 Received: from PS1PR03MB3606.apcprd03.prod.outlook.com (10.152.250.56) by SG2APC01FT012.mail.protection.outlook.com (10.152.250.184) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2814.13 via Frontend Transport; Sat, 21 Mar 2020 02:24:49 +0000 X-IncomingTopHeaderMarker: OriginalChecksum:BC9BD11CE9A70BDC0E16A4CB1ADAF26358875F472CFE8266196403B4D838E8D0; UpperCasedChecksum:470631E96C3B3F78B96015D071213D5B4BD36054E6C0AECA38D873BCDBF5054F; SizeAsReceived:9373; Count:49 Received: from PS1PR03MB3606.apcprd03.prod.outlook.com ([fe80::85cb:c430:1173:7716]) by PS1PR03MB3606.apcprd03.prod.outlook.com ([fe80::85cb:c430:1173:7716%5]) with mapi id 15.20.2835.017; Sat, 21 Mar 2020 02:24:49 +0000 Date: Sat, 21 Mar 2020 10:24:37 +0800 From: HaiJun Zhang Message-ID: In-Reply-To: <83imlrh9ze.fsf@gnu.org> References: <83o8vpn8g1.fsf@gnu.org> <87mub9u0ld.fsf@gmx.de> <831rslmxih.fsf@gnu.org> <83lfqslafm.fsf@gnu.org> <83r20jjgg3.fsf@gnu.org> <83png1hyb8.fsf@gnu.org> <83imlrh9ze.fsf@gnu.org> X-Readdle-Message-ID: 8885d54d-6653-4141-8b0a-28f2b0b77234@Spark Content-Type: multipart/alternative; boundary="5e757aed_79838cb2_6dce" X-ClientProxiedBy: HK0PR03CA0108.apcprd03.prod.outlook.com (2603:1096:203:b0::24) To PS1PR03MB3606.apcprd03.prod.outlook.com (2603:1096:803:4e::17) X-Microsoft-Original-Message-ID: <8885d54d-6653-4141-8b0a-28f2b0b77234@Spark> MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 Received: from [192.168.1.150] (1.193.171.233) by HK0PR03CA0108.apcprd03.prod.outlook.com (2603:1096:203:b0::24) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2835.15 via Frontend Transport; Sat, 21 Mar 2020 02:24:47 +0000 X-Readdle-Message-ID: 8885d54d-6653-4141-8b0a-28f2b0b77234@Spark X-Microsoft-Original-Message-ID: <8885d54d-6653-4141-8b0a-28f2b0b77234@Spark> X-TMN: [hjQZDbGgB4zvcSGVFSvx2GLGw9nY9XoX] X-MS-PublicTrafficType: Email X-IncomingHeaderCount: 49 X-EOPAttributedMessage: 0 X-MS-Office365-Filtering-Correlation-Id: dc690b0d-5a38-431e-708f-08d7cd3f076b X-MS-TrafficTypeDiagnostic: SG2APC01HT104: X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: PL+GPyJ1+t5mueznCcDSMyvXGVPPX9EGHNOx9wkv+zpDVZ7ixKBEIKSBjzRFBR/FBrnP8Ish5fPlT143h78AepOGFldrJYNw+n0vCI0hoY4ZOB9jOnAxrtJrkUcKzpfKeNzMd8/Uez0XUp2yTN6YlxTGzYOzU0Zjujt7pka1jdYy6XFpkKnC36TlYoH73FQ/igl8OP4yAVSn2t49LTnZ8Sep+Nu8pfItbKN1+6Atizk= X-MS-Exchange-AntiSpam-MessageData: 6qZCwaeZKIPmi1R/DnoCB7US7ruFYodumSttSfpBxyMq5iZNbL0VwJ4ClCu4xdk3Gvh2PQHyZUES8Tl1g++V3Sl2YCBJyzxlfZ7fPHM45Z9YZlrRz/Glg3x1FdEVUzHVdNZnTKPjhTgOJpa4w+9Y+A== X-OriginatorOrg: outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: dc690b0d-5a38-431e-708f-08d7cd3f076b X-MS-Exchange-CrossTenant-OriginalArrivalTime: 21 Mar 2020 02:24:49.2726 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 84df9e7f-e9f6-40af-b435-aaaaaaaaaaaa X-MS-Exchange-CrossTenant-FromEntityHeader: Internet X-MS-Exchange-CrossTenant-RMS-PersistedConsumerOrg: 00000000-0000-0000-0000-000000000000 X-MS-Exchange-Transport-CrossTenantHeadersStamped: SG2APC01HT104 X-Spam-Score: 1.0 (+) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) --5e757aed_79838cb2_6dce Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline =E5=9C=A8 2020=E5=B9=B41=E6=9C=884=E6=97=A5 +0800 PM5:00=EF=BC=8CEli Zare= tskii =EF=BC=8C=E5=86=99=E9=81=93=EF=BC=9A > > Date: Sat, 4 Jan 2020 13:26:24 +0800 > > =46rom: HaiJun Zhang > > Cc: michael.albinus=40gmx.de, 38807=40debbugs.gnu.org > > > > There are ways of communications (e.g., you can call any Emacs > > function), > > > > Can threads in modules call Emacs functions=3F > > Yes. It=E2=80=99s in the docs, please read about modules in the ELisp m= anual. I known module code can call emacs functions. But is it true for threads = in module=3F See this:=C2=A0https://github.com/emacs-lsp/lsp-mode/issues/676=23issueco= mment-476700911 > That means if a native-code thread is to be run in parallel with the UI= thread, it can never access an=C2=A0Env. --5e757aed_79838cb2_6dce Content-Type: text/html; charset="utf-8" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline
=E5=9C=A8 2020=E5=B9=B41=E6=9C=884=E6=97= =A5 +0800 PM5:00=EF=BC=8CEli Zaretskii <eliz@gnu.org>=EF=BC=8C=E5= =86=99=E9=81=93=EF=BC=9A
Date: Sat, 4 Jan 2020 = 13:26:24 +0800
From: HaiJun Zhang <netjune@outlook.com>
Cc: michael.albinus@gmx.de, 38807@debbugs.gnu.org

There are ways of communications (e.g., you can call any Emacs
function),

Can threads in modules call Emacs functions?

Yes. It=E2=80=99s in the docs, please read about modules in the ELisp manua= l. 

I known module code can call emacs functions. But is it t= rue for threads in module?

See this: https://github.com/emacs-lsp/lsp-mode/issues/676#iss= uecomment-476700911

> That means if a native-code thread is to be run = in parallel with the UI thread, it can never access an Env

--5e757aed_79838cb2_6dce-- From unknown Wed Jul 30 13:11:05 2025 X-Loop: help-debbugs@gnu.org Subject: bug#38807: [Feature request]: Support lisp workers like web workers. Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 21 Mar 2020 08:17:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 38807 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: HaiJun Zhang Cc: 38807@debbugs.gnu.org, michael.albinus@gmx.de Received: via spool by 38807-submit@debbugs.gnu.org id=B38807.158477860017744 (code B ref 38807); Sat, 21 Mar 2020 08:17:01 +0000 Received: (at 38807) by debbugs.gnu.org; 21 Mar 2020 08:16:40 +0000 Received: from localhost ([127.0.0.1]:45898 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jFZJ7-0004c3-1i for submit@debbugs.gnu.org; Sat, 21 Mar 2020 04:16:40 -0400 Received: from eggs.gnu.org ([209.51.188.92]:56259) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jFZJ5-0004bo-5i for 38807@debbugs.gnu.org; Sat, 21 Mar 2020 04:16:35 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]:42238) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1jFZIz-0005Tk-8D; Sat, 21 Mar 2020 04:16:29 -0400 Received: from [176.228.60.248] (port=4179 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1jFZIy-0004Fx-Qi; Sat, 21 Mar 2020 04:16:29 -0400 Date: Sat, 21 Mar 2020 10:16:28 +0200 Message-Id: <83d096dswz.fsf@gnu.org> From: Eli Zaretskii In-Reply-To: (message from HaiJun Zhang on Sat, 21 Mar 2020 10:24:37 +0800) References: <83o8vpn8g1.fsf@gnu.org> <87mub9u0ld.fsf@gmx.de> <831rslmxih.fsf@gnu.org> <83lfqslafm.fsf@gnu.org> <83r20jjgg3.fsf@gnu.org> <83png1hyb8.fsf@gnu.org> <83imlrh9ze.fsf@gnu.org> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Spam-Score: -0.7 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.7 (-) > Date: Sat, 21 Mar 2020 10:24:37 +0800 > From: HaiJun Zhang > Cc: michael.albinus@gmx.de, 38807@debbugs.gnu.org > > I known module code can call emacs functions. But is it true for threads in module? Since the Lisp interpreter is non-reentrant, this is not possible. > See this: https://github.com/emacs-lsp/lsp-mode/issues/676#issuecomment-476700911 > > That means if a native-code thread is to be run in parallel with the UI thread, it can never access an Env. Yes, but so what? You can still do work in the module threads, then send the accumulated results to emacs from the main thread. Again, this is all too abstract. A useful discussion would have many more details regarding the job that needs to be done and the bottle-necks that need to be distributed to threads running in parallel. From unknown Wed Jul 30 13:11:05 2025 X-Loop: help-debbugs@gnu.org Subject: bug#38807: [Feature request]: Support lisp workers like web workers. Resent-From: HaiJun Zhang Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 22 Mar 2020 01:13:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 38807 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Eli Zaretskii Cc: 38807@debbugs.gnu.org, michael.albinus@gmx.de Received: via spool by 38807-submit@debbugs.gnu.org id=B38807.158483956511863 (code B ref 38807); Sun, 22 Mar 2020 01:13:02 +0000 Received: (at 38807) by debbugs.gnu.org; 22 Mar 2020 01:12:45 +0000 Received: from localhost ([127.0.0.1]:48487 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jFpAS-00035G-2Z for submit@debbugs.gnu.org; Sat, 21 Mar 2020 21:12:45 -0400 Received: from mail-oln040092253031.outbound.protection.outlook.com ([40.92.253.31]:15864 helo=APC01-SG2-obe.outbound.protection.outlook.com) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jFpAP-00034z-O7 for 38807@debbugs.gnu.org; Sat, 21 Mar 2020 21:12:43 -0400 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=Bakkp7ifloy0m93aw2dywAa0v8UVkELfg5zZmBoS3Iyo6LNsCHLGOeLpONrHmoAl0udXMJ+6yHT3wE+SsBJfKuRZ4GaFuIpVGTcNF0gnITPenv1xzAJdBUH96/a3LRxjZQzYHHO3I7zheCR8bmqb70M+SPhFJvmbwvRo0w2aMh3w0FgN5UXfN8fs2HXQnoIwBG5dko39va694QHs69ZEL3lDHLUPl+SYqWVxbOtCxrEdVqmNKoxrp2rrO/HQrzkD+S7mi+7o6wW9GAxtIIASxURBeObhottv2HaMp9Wdb0BsQueWSRUx2zTBhs5SqyRM6TT2I7lY8ep+YKLiwIKUCg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=mMX5ilKww5RDsSxt+bBM2vRlwf5QVTG7Br58LgZBeRU=; b=nm52dD1LFzr2cDN8JDFrFtjQCFogv4IaoIGdxrQYcYlBzsvjF3fqBeIoZUfLw8LtO5iPga10UTxO4Tx8LUiHrM7CbchG5D/nins9A3ULckIdZi+U+AlJR/9K/EO4oASpCxMA4dIS4OwmTZ+BJb4KV7YgYzBIy4y4AAHcpOOPH2E01MmNZC/vuZ+2mFr4groRgL8dnnbJqv5YTJHlnMx0NNL6bHhxxfJGjLgDLBnGuFpD/FaWix3XZeFjTqXF8MM9IR3x3UZN7Jn80AXOJgv0EXz2cHjZdSIeHWI8Fs1x33Ns7686bB1/pMKnOYfQKup5fjroqTBJQVUN0ZyZeFVicQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=outlook.com; dmarc=pass action=none header.from=outlook.com; dkim=pass header.d=outlook.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=outlook.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=mMX5ilKww5RDsSxt+bBM2vRlwf5QVTG7Br58LgZBeRU=; b=kf+mwXGqDQ7mQ2qk3Ic9frrGrdEnporK1aXXyAiH8EBpJ5tU4GK4sakudg1fVySJzYNHQ7r1Fdc/6UFarU32XcWB8J2kefVMcsNl6FWRXgdflHaQ5KgJeVvpx+KHZjXdbbuJttnS01TOLMCdox+TX82+YtTdrGmiqeOSiNhdK8V3lVZ7oZw9vxgOjzsBAPReIT4+yeklMgVJ9siIpY/E1v1svHEj/k5dJ2SbgXmkDIClXxVdaDdb7SbXSwyYYt49z6q4+/PVGrIkc4SxD67PpqnGcQmSVGtS+4YJEFE0TrW8N80DCkrcodREY6EJ+gKKzodFMTqnSeOX5zPRUjBXDg== Received: from PU1APC01FT037.eop-APC01.prod.protection.outlook.com (2a01:111:e400:7ebe::3c) by PU1APC01HT004.eop-APC01.prod.protection.outlook.com (2a01:111:e400:7ebe::120) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2814.13; Sun, 22 Mar 2020 01:12:33 +0000 Received: from PS1PR03MB3606.apcprd03.prod.outlook.com (10.152.252.58) by PU1APC01FT037.mail.protection.outlook.com (10.152.253.147) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2814.13 via Frontend Transport; Sun, 22 Mar 2020 01:12:33 +0000 X-IncomingTopHeaderMarker: OriginalChecksum:3C0991AECF30C94854FFF6A7D84FC363336AF0260951414A12A8DDD08DA7E53E; UpperCasedChecksum:32CEFC20DFD4F7D9824A50FF7F7ECCAF9C19F813311B39A4CE731377557F17AF; SizeAsReceived:9492; Count:49 Received: from PS1PR03MB3606.apcprd03.prod.outlook.com ([fe80::85cb:c430:1173:7716]) by PS1PR03MB3606.apcprd03.prod.outlook.com ([fe80::85cb:c430:1173:7716%5]) with mapi id 15.20.2835.021; Sun, 22 Mar 2020 01:12:33 +0000 Date: Sun, 22 Mar 2020 09:12:23 +0800 From: HaiJun Zhang Message-ID: In-Reply-To: <83d096dswz.fsf@gnu.org> References: <83o8vpn8g1.fsf@gnu.org> <87mub9u0ld.fsf@gmx.de> <831rslmxih.fsf@gnu.org> <83lfqslafm.fsf@gnu.org> <83r20jjgg3.fsf@gnu.org> <83png1hyb8.fsf@gnu.org> <83imlrh9ze.fsf@gnu.org> <83d096dswz.fsf@gnu.org> X-Readdle-Message-ID: 8ee8c174-ed1f-49d2-8043-6b2ec713dd93@Spark Content-Type: multipart/alternative; boundary="5e76bb7d_6a5ee64_6dce" X-ClientProxiedBy: HK2PR06CA0007.apcprd06.prod.outlook.com (2603:1096:202:2e::19) To PS1PR03MB3606.apcprd03.prod.outlook.com (2603:1096:803:4e::17) X-Microsoft-Original-Message-ID: <8ee8c174-ed1f-49d2-8043-6b2ec713dd93@Spark> MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 Received: from [192.168.1.150] (1.196.184.53) by HK2PR06CA0007.apcprd06.prod.outlook.com (2603:1096:202:2e::19) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2835.18 via Frontend Transport; Sun, 22 Mar 2020 01:12:32 +0000 X-Readdle-Message-ID: 8ee8c174-ed1f-49d2-8043-6b2ec713dd93@Spark X-Microsoft-Original-Message-ID: <8ee8c174-ed1f-49d2-8043-6b2ec713dd93@Spark> X-TMN: [MLGVCwOhO3bTOwLZ40MBXNtunvA0vMW+] X-MS-PublicTrafficType: Email X-IncomingHeaderCount: 49 X-EOPAttributedMessage: 0 X-MS-Office365-Filtering-Correlation-Id: 8f4ded84-f684-4d43-7b29-08d7cdfe1992 X-MS-TrafficTypeDiagnostic: PU1APC01HT004: X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: ynss7V5qXsYL8prRUVPejFeS4zlG30tAQgAci2RHGHMKXh2AXMTjeM5T51XSdR/PJZ5lnp/7opotqQWoKaiABOHadda6EU0YWFqQB8Fw64xDfOYRCJs7WGAWJVojlDbDaOXHAs3Fxqmgmupoaa9ly+BRIfZc0tnT387Vccg1HRHg42au5YU16O6l9C+pYO2s X-MS-Exchange-AntiSpam-MessageData: FYr6igMr0TgoVJupaU9vql744BZFHsPpbpwPHduppP/IP5qJ7nkqqujV5p2L+ZvmrAqLGr7oFnnhxZEVansSE+LzkZjcYsEBrXWF2gsaHdGTBx5hoTyT4aPFhocVt2M17swgv9g5whlHNHJvegAkJA== X-OriginatorOrg: outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 8f4ded84-f684-4d43-7b29-08d7cdfe1992 X-MS-Exchange-CrossTenant-OriginalArrivalTime: 22 Mar 2020 01:12:33.6688 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 84df9e7f-e9f6-40af-b435-aaaaaaaaaaaa X-MS-Exchange-CrossTenant-FromEntityHeader: Internet X-MS-Exchange-CrossTenant-RMS-PersistedConsumerOrg: 00000000-0000-0000-0000-000000000000 X-MS-Exchange-Transport-CrossTenantHeadersStamped: PU1APC01HT004 X-Spam-Score: 0.0 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) --5e76bb7d_6a5ee64_6dce Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline =E5=9C=A8 2020=E5=B9=B43=E6=9C=8821=E6=97=A5 +0800 PM4:16=EF=BC=8CEli Zar= etskii =EF=BC=8C=E5=86=99=E9=81=93=EF=BC=9A > > Yes, but so what=3F You can still do work in the module threads, then > send the accumulated results to emacs from the main thread. > Many users complain the lag of lsp-mode(lsp client for emacs). I=E2=80=99= m also suffering from it, while the lsp works much better in vim and VSCo= de. There are too many json messages in communication between emacs(lsp clien= t) and lsp server. In that discussion, =C2=A0some people want to parse the json messages in = a module thread and prepare lisp data for emacs to use. But it is not pos= sible because of the limit. If json messages are parsed in module thread and saved as c struct data(n= ot lisp data), they have to be translated to lisp data before emacs use. = The translation which should be done in emacs thread cost too much cpu, w= hich make the parallel parsing of json messages not very useful. Is it possible to parse json messages and prepare data struct for pdumper= , and translate the data to lisp using pdumper=3F What about the performa= nse comparing with the above=3F --5e76bb7d_6a5ee64_6dce Content-Type: text/html; charset="utf-8" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline
=E5=9C=A8 2020=E5=B9=B43=E6=9C=8821=E6=97= =A5 +0800 PM4:16=EF=BC=8CEli Zaretskii <eliz@gnu.org>=EF=BC=8C=E5= =86=99=E9=81=93=EF=BC=9A

Yes, but so what? You can still do work in the module threads, then
send the accumulated results to emacs from the main thread.


Many users complain the lag of lsp-mode(lsp client for em= acs). I=E2=80=99m also suffering from it, while the lsp works much better i= n vim and VSCode.
There are too many json messages in communication between= emacs(lsp client) and lsp server. 

In that discussion,  some people want to par= se the json messages in a module thread and prepare lisp data for emacs to = use. But it is not possible because of the limit.

If json messages are parsed in module thread and saved as= c struct data(not lisp data), they have to be translated to lisp data befo= re emacs use. The translation which should be done in emacs thread cost too= much cpu, which make the parallel parsing of json messages not very useful= .

Is it possible to parse json messages and prepare data st= ruct for pdumper, and translate the data to lisp using pdumper? What about = the performanse comparing with the above?

--5e76bb7d_6a5ee64_6dce-- From unknown Wed Jul 30 13:11:05 2025 X-Loop: help-debbugs@gnu.org Subject: bug#38807: [Feature request]: Support lisp workers like web workers. Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 22 Mar 2020 14:33:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 38807 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: HaiJun Zhang Cc: 38807@debbugs.gnu.org, michael.albinus@gmx.de Received: via spool by 38807-submit@debbugs.gnu.org id=B38807.15848875282138 (code B ref 38807); Sun, 22 Mar 2020 14:33:01 +0000 Received: (at 38807) by debbugs.gnu.org; 22 Mar 2020 14:32:08 +0000 Received: from localhost ([127.0.0.1]:50816 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jG1e4-0000YP-0C for submit@debbugs.gnu.org; Sun, 22 Mar 2020 10:32:08 -0400 Received: from eggs.gnu.org ([209.51.188.92]:45089) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jG1e2-0000Xs-3u for 38807@debbugs.gnu.org; Sun, 22 Mar 2020 10:32:06 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]:34461) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1jG1dw-0003KG-Ag; Sun, 22 Mar 2020 10:32:00 -0400 Received: from [176.228.60.248] (port=4582 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1jG1dv-0005Ef-4Y; Sun, 22 Mar 2020 10:32:00 -0400 Date: Sun, 22 Mar 2020 16:32:01 +0200 Message-Id: <83lfnscvfi.fsf@gnu.org> From: Eli Zaretskii In-Reply-To: (message from HaiJun Zhang on Sun, 22 Mar 2020 09:12:23 +0800) References: <83o8vpn8g1.fsf@gnu.org> <87mub9u0ld.fsf@gmx.de> <831rslmxih.fsf@gnu.org> <83lfqslafm.fsf@gnu.org> <83r20jjgg3.fsf@gnu.org> <83png1hyb8.fsf@gnu.org> <83imlrh9ze.fsf@gnu.org> <83d096dswz.fsf@gnu.org> MIME-version: 1.0 Content-type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Spam-Score: -0.7 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.7 (-) > Date: Sun, 22 Mar 2020 09:12:23 +0800 > From: HaiJun Zhang > Cc: michael.albinus@gmx.de, 38807@debbugs.gnu.org > > Yes, but so what? You can still do work in the module threads, then > send the accumulated results to emacs from the main thread. > > Many users complain the lag of lsp-mode(lsp client for emacs). I’m also suffering from it, while the lsp works > much better in vim and VSCode. > There are too many json messages in communication between emacs(lsp client) and lsp server. > > In that discussion, some people want to parse the json messages in a module thread and prepare lisp data > for emacs to use. But it is not possible because of the limit. Suppose a module thread will be able to parse JSON: what would the main (a.k.a. "Lisp") thread of Emacs do while the module thread is working? Doesn't it need to wait for the parsed data anyhow? > If json messages are parsed in module thread and saved as c struct data(not lisp data), they have to be > translated to lisp data before emacs use. The translation which should be done in emacs thread cost too > much cpu, which make the parallel parsing of json messages not very useful. You are saying that the translation is costly, but did someone actually measure that and verify that it's indeed costly? And if someone did, where can I see the results in sufficient level of detail to understand what part(s) of parsing JSON are the bottleneck? > Is it possible to parse json messages and prepare data struct for pdumper, and translate the data to lisp > using pdumper? What about the performanse comparing with the above? I don't think I understand what does pdumper have to do with this issue. From unknown Wed Jul 30 13:11:05 2025 X-Loop: help-debbugs@gnu.org Subject: bug#38807: [Feature request]: Support lisp workers like web workers. Resent-From: HaiJun Zhang Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 24 Mar 2020 04:24:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 38807 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Eli Zaretskii Cc: 38807@debbugs.gnu.org, michael.albinus@gmx.de, yyoncho@gmail.com Received: via spool by 38807-submit@debbugs.gnu.org id=B38807.15850238016382 (code B ref 38807); Tue, 24 Mar 2020 04:24:01 +0000 Received: (at 38807) by debbugs.gnu.org; 24 Mar 2020 04:23:21 +0000 Received: from localhost ([127.0.0.1]:53775 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jGb61-0001es-7b for submit@debbugs.gnu.org; Tue, 24 Mar 2020 00:23:21 -0400 Received: from mail-oln040092254104.outbound.protection.outlook.com ([40.92.254.104]:41952 helo=APC01-PU1-obe.outbound.protection.outlook.com) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jGb5y-0001eb-H8 for 38807@debbugs.gnu.org; Tue, 24 Mar 2020 00:23:19 -0400 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=ONSxfkVlBYpJ+o6IDOBU5v4olJaDGXr1CguKrM8ku9oVkAZv+giVOySFJBEDs7H6+GnW5ED9+svappJVdGncGVsFjNjKTxgALZJ+9gj5QkvOKtg7xt93wocHjzzHPUagOzQ9cnYoH0GjDQzO9DPV/gMHi49ZikY8NxLIa8mv2kZEO35TUf/qIVLWNYVEPpI0gDze5z3T4ORxX4xhA9jULHtfVHutre0yRy5IGK8h6RNHsz8TkYuIxEyt+N4CkQrWQz5dnf/O6YX/N43TkWPa3jP4fFmMmUS4fQyAvgNuBFIqg6y8oVGcsVVdJnnfVDk7C5kDYWnJZjzDI+ehFUFZzQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=ZN1fm99hBnx8sqbhNB+Z1cE7zXsHds8XJLPZL/dkIdY=; b=B91CWIETR2wAXDRSJlDlxJ4FwOy8kxCuYMhjF5Og5hB/12rDyjqYoFR6mZRmWJGLXSN3orSKr3Ff7646qNY/c7jF81qqTYRTxPt4n/c2ZOHjw4LZP3ZRxsU66XarkM50lK2cf/edGGED52ofenBmIisP/iUYP661C2wYQj1BpYt2QwzJVkRvxiD0r0+6XAWhzFwL64Nrrzl76mSmTgrO7e5Hzn6H2UPKKm6GkHfHtgWbeTZ9FyjPEVVDTA7NWuX/TyEWE/JSrG2Kyz7lbaMjYriKEJnTyFDzZlGaqDXCdKGeGMOZ28ba03o049ootO+qeFaJYyr/XdCb7N8qvIhDWA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=outlook.com; dmarc=pass action=none header.from=outlook.com; dkim=pass header.d=outlook.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=outlook.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=ZN1fm99hBnx8sqbhNB+Z1cE7zXsHds8XJLPZL/dkIdY=; b=gEX8RQcFIcXh5NB/EhzpzRxq4DfYqsMBC1fAw1gerUq1dVvy/NqwxWyfBPMBHRe0EBcNei7VphoKO93+XieZk7CdXZ8zonXgbF7PnlPAG2kuo3WYKfZPFnx4mmFdwnUwsDCoponlU3gtmzvDzUe3FDdKoQnf7VtoikEGR6ijOUizANQay2JgfkcJUhQab8u+MY0S0IWt7Q26cc5QXwmM/uk/yI3eHmbOPoByi63Z127+IZKikEbgenuPSKBh08u/1nccDciTL5RwDLW2bfXxXKJS4tnRRG/Cl+fpwH5yHgTWzocV4kw9wec9vnrC7WvuT9R8f2/5o0ddRE+Tme4d0Q== Received: from SG2APC01FT051.eop-APC01.prod.protection.outlook.com (2a01:111:e400:7ebd::3c) by SG2APC01HT119.eop-APC01.prod.protection.outlook.com (2a01:111:e400:7ebd::346) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2814.13; Tue, 24 Mar 2020 04:23:09 +0000 Received: from PS1PR03MB3606.apcprd03.prod.outlook.com (10.152.250.56) by SG2APC01FT051.mail.protection.outlook.com (10.152.251.112) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2814.13 via Frontend Transport; Tue, 24 Mar 2020 04:23:09 +0000 X-IncomingTopHeaderMarker: OriginalChecksum:626A3A21C8B3DA78D125706F37032F5FF25BBD97E957808799B28BB3BA55FCCF; UpperCasedChecksum:1A3AA058F70F537A7D9C379E980743E8BA8566DED341269E7736247D4BFC05E1; SizeAsReceived:9590; Count:49 Received: from PS1PR03MB3606.apcprd03.prod.outlook.com ([fe80::85cb:c430:1173:7716]) by PS1PR03MB3606.apcprd03.prod.outlook.com ([fe80::85cb:c430:1173:7716%5]) with mapi id 15.20.2835.021; Tue, 24 Mar 2020 04:23:09 +0000 Date: Tue, 24 Mar 2020 12:22:57 +0800 From: HaiJun Zhang Message-ID: In-Reply-To: <83lfnscvfi.fsf@gnu.org> References: <83o8vpn8g1.fsf@gnu.org> <87mub9u0ld.fsf@gmx.de> <831rslmxih.fsf@gnu.org> <83lfqslafm.fsf@gnu.org> <83r20jjgg3.fsf@gnu.org> <83png1hyb8.fsf@gnu.org> <83imlrh9ze.fsf@gnu.org> <83d096dswz.fsf@gnu.org> <83lfnscvfi.fsf@gnu.org> X-Readdle-Message-ID: 69de1f08-2108-4758-9043-12b8b5e162ce@Spark Content-Type: multipart/alternative; boundary="5e798b26_3fc32e20_6dce" X-ClientProxiedBy: HK2P15301CA0021.APCP153.PROD.OUTLOOK.COM (2603:1096:202:1::31) To PS1PR03MB3606.apcprd03.prod.outlook.com (2603:1096:803:4e::17) X-Microsoft-Original-Message-ID: <69de1f08-2108-4758-9043-12b8b5e162ce@Spark> MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 Received: from [192.168.1.150] (1.196.184.53) by HK2P15301CA0021.APCP153.PROD.OUTLOOK.COM (2603:1096:202:1::31) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2878.5 via Frontend Transport; Tue, 24 Mar 2020 04:23:08 +0000 X-Readdle-Message-ID: 69de1f08-2108-4758-9043-12b8b5e162ce@Spark X-Microsoft-Original-Message-ID: <69de1f08-2108-4758-9043-12b8b5e162ce@Spark> X-TMN: [/wuSkHO3n0C6PJtccHuqBNJXHmOUmKZa] X-MS-PublicTrafficType: Email X-IncomingHeaderCount: 49 X-EOPAttributedMessage: 0 X-MS-Office365-Filtering-Correlation-Id: d3183087-5db0-4805-f12b-08d7cfab0eef X-MS-TrafficTypeDiagnostic: SG2APC01HT119: X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: 0hdDYjD+dFvicxeN0faahoik6RzF2KHoKRE6du0l21kUU0zBBFpVpcupBN/xfkSRSNHzdrvI3TngkTvkMFyn12cs/aJ0jy1rcBwyY4i3x+jnrNWSJg3M8vBjY/Ky93uGoNUKJxmbBmgs1p3ksakRv9/zW+vEPl9T/BWRcnAZU2wfLqDZHhZk2YjgiGo27lrs X-MS-Exchange-AntiSpam-MessageData: dBuFHBS+d9QaphK7gdW/sZ+NnsyU9+wbhIwKLauxZeuScuAUUVG6QjI6IvbK/h/tu4/pd7t0NSlnY5GQjZ6wucWbA+KRIcz6y1Ut1rp/+WcFmERe00Ae4um6vHVSlcmaaEBlyiEbaSGV60X6tcdO8g== X-OriginatorOrg: outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: d3183087-5db0-4805-f12b-08d7cfab0eef X-MS-Exchange-CrossTenant-OriginalArrivalTime: 24 Mar 2020 04:23:09.6955 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 84df9e7f-e9f6-40af-b435-aaaaaaaaaaaa X-MS-Exchange-CrossTenant-FromEntityHeader: Internet X-MS-Exchange-CrossTenant-RMS-PersistedConsumerOrg: 00000000-0000-0000-0000-000000000000 X-MS-Exchange-Transport-CrossTenantHeadersStamped: SG2APC01HT119 X-Spam-Score: 0.0 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) --5e798b26_3fc32e20_6dce Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline =E5=9C=A8 2020=E5=B9=B43=E6=9C=8822=E6=97=A5 +0800 PM10:32=EF=BC=8CEli Za= retskii =EF=BC=8C=E5=86=99=E9=81=93=EF=BC=9A > > Suppose a module thread will be able to parse JSON: what would the > main (a.k.a. =22Lisp=22) thread of Emacs do while the module thread is > working=3F Doesn=E2=80=99t it need to wait for the parsed data anyhow=3F= > They don=E2=80=99t known each other. It will be good if module thread can= post message to lisp thread. It will be better if module thread can send= lisp data within the message to lisp thread. > > > If json messages are parsed in module thread and saved as c struct da= ta(not lisp data), they have to be > > translated to lisp data before emacs use. The translation which shoul= d be done in emacs thread cost too > > much cpu, which make the parallel parsing of json messages not very u= seful. > > You are saying that the translation is costly, but did someone > actually measure that and verify that it's indeed costly=3F And if > someone did, where can I see the results in sufficient level of detail > to understand what part(s) of parsing JSON are the bottleneck=3F > I have talked with the author of lsp-mode. I think their team have done s= ome work on this. =40yyoncho=C2=A0Can you join the discussion=3F > > Is it possible to parse json messages and prepare data struct for pdu= mper, and translate the data to lisp > > using pdumper=3F What about the performanse comparing with the above=3F= > > I don't think I understand what does pdumper have to do with this > issue. My understanding is that pdumper can serialize and deserialize lisp data.= Maybe we can prepare data with its format and let it deserialize them. --5e798b26_3fc32e20_6dce Content-Type: text/html; charset="utf-8" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline
=E5=9C=A8 2020=E5=B9=B43=E6=9C=8822=E6=97= =A5 +0800 PM10:32=EF=BC=8CEli Zaretskii <eliz@gnu.org>=EF=BC=8C= =E5=86=99=E9=81=93=EF=BC=9A

Suppose a module thread will be able to parse JSON: what would the
main (a.k.a. "Lisp") thread of Emacs do while the module thread i= s
working? Doesn=E2=80=99t it need to wait for the parsed data anyhow?


They don=E2=80=99t known each other. It will be good if m= odule thread can post message to lisp thread. It will be better if module t= hread can send lisp data within the message to lisp thread. 



If json messages are p= arsed in module thread and saved as c struct data(not lisp data), they have= to be
translated to lisp data before emacs use. The translation which should be d= one in emacs thread cost too
much cpu, which make the parallel parsing of json messages not very useful.=

You are saying that the translation is costly, but did someone
actually measure that and verify that it's indeed costly? And if
someone did, where can I see the results in sufficient level of detail
to understand what part(s) of parsing JSON are the bottleneck?


I have talked with the author of lsp-mode. I think their = team have done some work on this.

@yyoncho Can you join the= discussion?



Is it possible to pars= e json messages and prepare data struct for pdumper, and translate the data= to lisp
using pdumper? What about the performanse comparing with the above?

I don't think I understand what does pdumper have to do with this
issue. 

My understanding is that pdumper can serialize and deserialize lisp da= ta. Maybe we can prepare data with its format and let it deserialize them.<= /div>

--5e798b26_3fc32e20_6dce-- From unknown Wed Jul 30 13:11:05 2025 X-Loop: help-debbugs@gnu.org Subject: bug#38807: [Feature request]: Support lisp workers like web workers. Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 24 Mar 2020 14:41:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 38807 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: HaiJun Zhang Cc: 38807@debbugs.gnu.org, michael.albinus@gmx.de, yyoncho@gmail.com Received: via spool by 38807-submit@debbugs.gnu.org id=B38807.158506080722272 (code B ref 38807); Tue, 24 Mar 2020 14:41:01 +0000 Received: (at 38807) by debbugs.gnu.org; 24 Mar 2020 14:40:07 +0000 Received: from localhost ([127.0.0.1]:55421 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jGkis-0005nA-LX for submit@debbugs.gnu.org; Tue, 24 Mar 2020 10:40:06 -0400 Received: from eggs.gnu.org ([209.51.188.92]:44315) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jGkir-0005mW-Q8 for 38807@debbugs.gnu.org; Tue, 24 Mar 2020 10:40:06 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]:48181) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1jGkim-0006n3-7t; Tue, 24 Mar 2020 10:40:00 -0400 Received: from [176.228.60.248] (port=1787 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1jGkil-0005bL-NV; Tue, 24 Mar 2020 10:40:00 -0400 Date: Tue, 24 Mar 2020 16:40:07 +0200 Message-Id: <831rphbyuw.fsf@gnu.org> From: Eli Zaretskii In-Reply-To: (message from HaiJun Zhang on Tue, 24 Mar 2020 12:22:57 +0800) References: <83o8vpn8g1.fsf@gnu.org> <87mub9u0ld.fsf@gmx.de> <831rslmxih.fsf@gnu.org> <83lfqslafm.fsf@gnu.org> <83r20jjgg3.fsf@gnu.org> <83png1hyb8.fsf@gnu.org> <83imlrh9ze.fsf@gnu.org> <83d096dswz.fsf@gnu.org> <83lfnscvfi.fsf@gnu.org> MIME-version: 1.0 Content-type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Spam-Score: -0.7 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.7 (-) > Date: Tue, 24 Mar 2020 12:22:57 +0800 > From: HaiJun Zhang > Cc: michael.albinus@gmx.de, 38807@debbugs.gnu.org, yyoncho@gmail.com > > Suppose a module thread will be able to parse JSON: what would the > main (a.k.a. "Lisp") thread of Emacs do while the module thread is > working? Doesn’t it need to wait for the parsed data anyhow? > > They don’t known each other. I'm not sure I understand the response. Let me repeat the question: while the module thread parses JSON, will the main thread wait for it, or will it do something else? Can you describe how this would work using some use case where lsp-mode is used, like for completing on program symbols? > It will be good if module thread can post message to lisp thread. It will be > better if module thread can send lisp data within the message to lisp thread. Posting messages is possible by writing to a pipe. But I don't think I understand what you mean by "send Lisp data" -- how (in what form) can Lisp data be sent? > I don't think I understand what does pdumper have to do with this > issue. > > My understanding is that pdumper can serialize and deserialize lisp data. Maybe we can prepare data with its > format and let it deserialize them. But we already do that: the libjansson library "serializes" the data, and we then deserialize it in Emacs as we get the data from the library. That deserialization is what takes the time you are trying to make shorter. From unknown Wed Jul 30 13:11:05 2025 X-Loop: help-debbugs@gnu.org Subject: bug#38807: [Feature request]: Support lisp workers like web workers. Resent-From: Ivan Yonchovski Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 25 Mar 2020 16:45:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 38807 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: HaiJun Zhang Cc: Eli Zaretskii , 38807@debbugs.gnu.org, michael.albinus@gmx.de Received: via spool by 38807-submit@debbugs.gnu.org id=B38807.158515469429294 (code B ref 38807); Wed, 25 Mar 2020 16:45:02 +0000 Received: (at 38807) by debbugs.gnu.org; 25 Mar 2020 16:44:54 +0000 Received: from localhost ([127.0.0.1]:57669 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jH99C-0007cQ-GZ for submit@debbugs.gnu.org; Wed, 25 Mar 2020 12:44:54 -0400 Received: from mail-lj1-f175.google.com ([209.85.208.175]:40039) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jH99B-0007cE-7X for 38807@debbugs.gnu.org; Wed, 25 Mar 2020 12:44:54 -0400 Received: by mail-lj1-f175.google.com with SMTP id 19so3197187ljj.7 for <38807@debbugs.gnu.org>; Wed, 25 Mar 2020 09:44:53 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=references:user-agent:from:to:cc:subject:in-reply-to:date :message-id:mime-version; bh=17plhFQIaQEvuumIaqDW8e3DFRKc6YmBcKgOI8zdA6Q=; b=u6Nzb5hjd86XQffC5Ulac9c9Huz33F0ihfmMpbuOsU4wl+2GD/y4ks1CZ5G0hBX9Xt j1qNTog+1HT+5AvUN7qf/JUvvPlz9egNyaRwGKJ320ckJnJMeIZpGUmjMgwLFCcWZ7Rq zw178bZyxWYWNFLzjuodnAXTYtfVKkxo8Pn+DGiwJ5B9XUgvk8JYqsx7qO9WvXA2rLlV rZOEGkH4s0qnwCYBJcGr6/s+m4HQykurxhddXX5+2a8JGjFzFSVizDkMBsuKGlXnZQbp h/4Gq/IKgzw2F3niZb87E8bBCpIB20iImextBY+ue9oivIIDYYQpmeS7weGrgJcyTPSU 8tsw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:references:user-agent:from:to:cc:subject :in-reply-to:date:message-id:mime-version; bh=17plhFQIaQEvuumIaqDW8e3DFRKc6YmBcKgOI8zdA6Q=; b=kEKYbx4zzsTnQb6WrH5JzUBLdiHMzaNNxvX+/UiG6oS2UlGNIZ+4tFA3Qt90dir+5P 9NllqNEq+6Pn9/gzK20TqIrPzUN7waZ2OGGDBSi5PCjFLzaj/bcv6lvEJrbfF+E6zO/w A6HX6eS5ZGbq1m9dNvyEQXL91T/WsGQLpLXVYjBQ/1eFEPkfJXTepz0aS00yOVK4yvC4 TvKy2ZSMthVynhP0dbwXE5aSnWt94qW1o6J5+OkekIXN56HPV2VKJaVmNMel1lefjldq dLdqDis6RedwI9RoYqKN1CMYMvnSYisHLt4MzZ1t0d0kPSUn9A/ROm1nXnsU8tmeh6Br qymA== X-Gm-Message-State: AGi0PuZADqESL9FTK4v1JPGoKTW7PA5o4fjqP+zXUEeB2L3vKitpoOkW s6Q+AXz1x+qudTxuxEZP+6ocys1s X-Google-Smtp-Source: ADFU+vtxj6WvKsAWFd4ICZNemSYDO6mp7n4HCx/wAJ8rtgm8bkP2kWgwG/u5pKq7UF6N29n/I+Zp8g== X-Received: by 2002:a2e:978d:: with SMTP id y13mr2476878lji.293.1585154686675; Wed, 25 Mar 2020 09:44:46 -0700 (PDT) Received: from kyoncho-H87-D3H ([2a00:4802:28d:1200:f55d:a928:6b5c:8e30]) by smtp.gmail.com with ESMTPSA id v9sm12266709ljv.82.2020.03.25.09.44.45 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 25 Mar 2020 09:44:45 -0700 (PDT) References: <83o8vpn8g1.fsf@gnu.org> <87mub9u0ld.fsf@gmx.de> <831rslmxih.fsf@gnu.org> <83lfqslafm.fsf@gnu.org> <83r20jjgg3.fsf@gnu.org> <83png1hyb8.fsf@gnu.org> <83imlrh9ze.fsf@gnu.org> <83d096dswz.fsf@gnu.org> <83lfnscvfi.fsf@gnu.org> User-agent: mu4e 1.3.7; emacs 27.0.60 From: Ivan Yonchovski In-reply-to: Date: Wed, 25 Mar 2020 18:44:44 +0200 Message-ID: <87ftdwmlj7.fsf@gmail.com> MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: 0.0 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) HaiJun Zhang writes: >> > If json messages are parsed in module thread and saved as c struct data(not lisp data), they have to be >> > translated to lisp data before emacs use. The translation which should be done in emacs thread cost too >> > much cpu, which make the parallel parsing of json messages not very useful. >> >> You are saying that the translation is costly, but did someone >> actually measure that and verify that it's indeed costly? And if >> someone did, where can I see the results in sufficient level of detail >> to understand what part(s) of parsing JSON are the bottleneck? >> > > I have talked with the author of lsp-mode. I think their team have done some work on this. > @yyoncho Can you join the discussion? IIRC the bottleneck was the utf conversions (there was similar issue in native json parsing as well). I havent tested the dynamic module parser after the latest optimizations. Back then I tested also with the conversion code disabled and it still was relatively slow compared to the native json parsing even before the native joson parsing fixes. HaiJun Zhang, it will be good if you can report the performance issues you have with lsp-mode. You may follow the guide in the https://github.com/emacs-lsp/lsp-mode#performance . Thanks, Ivan From unknown Wed Jul 30 13:11:05 2025 X-Loop: help-debbugs@gnu.org Subject: bug#38807: [Feature request]: Support lisp workers like web workers. Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 25 Mar 2020 17:06:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 38807 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Ivan Yonchovski Cc: netjune@outlook.com, 38807@debbugs.gnu.org, michael.albinus@gmx.de Received: via spool by 38807-submit@debbugs.gnu.org id=B38807.158515592831437 (code B ref 38807); Wed, 25 Mar 2020 17:06:02 +0000 Received: (at 38807) by debbugs.gnu.org; 25 Mar 2020 17:05:28 +0000 Received: from localhost ([127.0.0.1]:57675 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jH9T6-0008Az-72 for submit@debbugs.gnu.org; Wed, 25 Mar 2020 13:05:28 -0400 Received: from eggs.gnu.org ([209.51.188.92]:41941) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jH9T4-0008Ak-Ib for 38807@debbugs.gnu.org; Wed, 25 Mar 2020 13:05:27 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]:44172) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1jH9Sz-0006nD-5H; Wed, 25 Mar 2020 13:05:21 -0400 Received: from [176.228.60.248] (port=3460 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1jH9Sx-0000KN-Op; Wed, 25 Mar 2020 13:05:20 -0400 Date: Wed, 25 Mar 2020 19:05:17 +0200 Message-Id: <83h7yc9xgy.fsf@gnu.org> From: Eli Zaretskii In-Reply-To: <87ftdwmlj7.fsf@gmail.com> (message from Ivan Yonchovski on Wed, 25 Mar 2020 18:44:44 +0200) References: <83o8vpn8g1.fsf@gnu.org> <87mub9u0ld.fsf@gmx.de> <831rslmxih.fsf@gnu.org> <83lfqslafm.fsf@gnu.org> <83r20jjgg3.fsf@gnu.org> <83png1hyb8.fsf@gnu.org> <83imlrh9ze.fsf@gnu.org> <83d096dswz.fsf@gnu.org> <83lfnscvfi.fsf@gnu.org> <87ftdwmlj7.fsf@gmail.com> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Spam-Score: -0.7 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.7 (-) > From: Ivan Yonchovski > Cc: Eli Zaretskii , michael.albinus@gmx.de, 38807@debbugs.gnu.org > Date: Wed, 25 Mar 2020 18:44:44 +0200 > > IIRC the bottleneck was the utf conversions That should be all but gone now, then. Right? From unknown Wed Jul 30 13:11:05 2025 X-Loop: help-debbugs@gnu.org Subject: bug#38807: [Feature request]: Support lisp workers like web workers. Resent-From: Ivan Yonchovski Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 25 Mar 2020 17:23:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 38807 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Eli Zaretskii Cc: netjune@outlook.com, 38807@debbugs.gnu.org, michael.albinus@gmx.de Received: via spool by 38807-submit@debbugs.gnu.org id=B38807.1585156930747 (code B ref 38807); Wed, 25 Mar 2020 17:23:02 +0000 Received: (at 38807) by debbugs.gnu.org; 25 Mar 2020 17:22:10 +0000 Received: from localhost ([127.0.0.1]:57695 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jH9jG-0000Bz-7P for submit@debbugs.gnu.org; Wed, 25 Mar 2020 13:22:10 -0400 Received: from mail-lj1-f169.google.com ([209.85.208.169]:37105) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jH9jD-0000Bj-Tj for 38807@debbugs.gnu.org; Wed, 25 Mar 2020 13:22:08 -0400 Received: by mail-lj1-f169.google.com with SMTP id r24so3376911ljd.4 for <38807@debbugs.gnu.org>; Wed, 25 Mar 2020 10:22:07 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=references:user-agent:from:to:cc:subject:in-reply-to:date :message-id:mime-version; bh=al4IheA9g44nk5tmJXFiksx/epoxpg/ZJ34kA0jCVB0=; b=pFJqe5BUzfQj+sXXWNw6nXMWeLG7RCWTneJiwHGzmHsmUqq/TR2kFJvkviSjWvBUBT jDrxqNPdeudhJ2Z8pB8ak0Ffh4XBbJlzdgqMJcBzgrbvdgpeEaQEhDN6LqudGmF7zz67 qdzY0k9W8d9YyU7tlW/aJNH2yZMLuqEmCPqohQL8vygvx7AD/uWgSynJSuxWSexKfAj0 pzxTwT0x3aaz4cftVsK2ialWmcQoCVVqkSCAKvgT5g5ZWneoD4oa0FijOdP+f0yxXNOR rQ1fkKeQ4EsY91EC5FF0ZJy2uz+/Nt0lQRCdwJ0dUyRG/XHFnPlNNZ83Ibsu3QMf5gYb V0tA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:references:user-agent:from:to:cc:subject :in-reply-to:date:message-id:mime-version; bh=al4IheA9g44nk5tmJXFiksx/epoxpg/ZJ34kA0jCVB0=; b=td10JZMm5mSXEXqb70at+/jTdZV4CowTLZvrI5VtKWRKwvoYUC8C+9dKnaQ/F+7+ZQ lZ8/vAt2L5IOTp4g+z/0KRsXN6ABnVQSTkAQ0JL3nZHG9PhKQS2kBLeQbLndMEBOHyn3 oDw8t6kg5G/6vD+1axIv6gEKsVIQ3trfYvgKWHIY1DZ8YGSOxz8fRrtduBAXufZuuvtJ 4lj6JK/Rz1q4PNBKnhj5tZ6ykNXmbJ2JAo/bNObwF2ocdgzErlLJMdJXw8BYQYMHAat6 coZUxc0ZgSSwAapU5vz2Hok9KNBeDnu7UvhQISwXTmmbgBA8LJivRc/6XW65vukZh/4m 6KcA== X-Gm-Message-State: AGi0PuZ38qSQdL0Fw7mTZzZovyyV3y5BWT7k/oxwOyQvEbNayoxGd6Va /zcg9V3xWtigf9rTAMErytnYwJzEXtA= X-Google-Smtp-Source: APiQypIMhRSyT/PDKlKIjbFzqEWrTeF2V5nYD7D8akH0s1KeKHxJ/ZfRCNrHi85xrg2pLwagUYjE4Q== X-Received: by 2002:a2e:8652:: with SMTP id i18mr2673772ljj.265.1585156921589; Wed, 25 Mar 2020 10:22:01 -0700 (PDT) Received: from kyoncho-H87-D3H ([2a00:4802:28d:1200:f55d:a928:6b5c:8e30]) by smtp.gmail.com with ESMTPSA id b198sm5843666lfg.11.2020.03.25.10.22.00 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 25 Mar 2020 10:22:00 -0700 (PDT) References: <83o8vpn8g1.fsf@gnu.org> <87mub9u0ld.fsf@gmx.de> <831rslmxih.fsf@gnu.org> <83lfqslafm.fsf@gnu.org> <83r20jjgg3.fsf@gnu.org> <83png1hyb8.fsf@gnu.org> <83imlrh9ze.fsf@gnu.org> <83d096dswz.fsf@gnu.org> <83lfnscvfi.fsf@gnu.org> <87ftdwmlj7.fsf@gmail.com> <83h7yc9xgy.fsf@gnu.org> User-agent: mu4e 1.3.7; emacs 27.0.60 From: Ivan Yonchovski In-reply-to: <83h7yc9xgy.fsf@gnu.org> Date: Wed, 25 Mar 2020 19:21:59 +0200 Message-ID: <87d090mjt4.fsf@gmail.com> MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: 1.0 (+) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) Eli Zaretskii writes: >> From: Ivan Yonchovski >> Cc: Eli Zaretskii , michael.albinus@gmx.de, 38807@debbugs.gnu.org >> Date: Wed, 25 Mar 2020 18:44:44 +0200 >> >> IIRC the bottleneck was the utf conversions > > That should be all but gone now, then. Right? Probably yes. I haven't tested it since ATM json parsing is fast enough or at least we haven't received a bug report about performance. Also, the dynamic module solution will be slower since it will perform more work than the native json so there is no point to invest effort into that. From unknown Wed Jul 30 13:11:05 2025 X-Loop: help-debbugs@gnu.org Subject: bug#38807: [Feature request]: Support lisp workers like web workers. Resent-From: HaiJun Zhang Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 26 Mar 2020 13:39:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 38807 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Eli Zaretskii Cc: 38807@debbugs.gnu.org, michael.albinus@gmx.de, yyoncho@gmail.com Received: via spool by 38807-submit@debbugs.gnu.org id=B38807.158522988914529 (code B ref 38807); Thu, 26 Mar 2020 13:39:01 +0000 Received: (at 38807) by debbugs.gnu.org; 26 Mar 2020 13:38:09 +0000 Received: from localhost ([127.0.0.1]:58260 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jHSi0-0003mD-I4 for submit@debbugs.gnu.org; Thu, 26 Mar 2020 09:38:09 -0400 Received: from mail-oln040092253032.outbound.protection.outlook.com ([40.92.253.32]:36302 helo=APC01-SG2-obe.outbound.protection.outlook.com) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jHShy-0003ld-Cx for 38807@debbugs.gnu.org; Thu, 26 Mar 2020 09:38:07 -0400 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=MIIA6o3rNK8U3XG2Cmuf89RV6NgFwyaiDfEbExZoA+libMXBfIuZTbXsuJVywqWy5ACsag7bd75Hs4cvUx3OSAZxIXDWZg24ODXf0H2gW8y4UocaQGxmnN/rOG/08LuIdsKGX5r2aKEZNjrkRI9OqZptij3yv8deeyraqbOK+piHaT5mQOypRbyA3mmywYph8rQjt0q858d29pZ12rkn7wjJc4z037g5Nwl8O6l9n8KgQQVpONypQpGLGvuNc9sAimVDdla7KnGGMixObECdQMFvpCAyjFc0pWNOWxN9Whl+YbwailUHHQlFmW3RcEG+XXuUu0H+dpchFlB7XGiJkA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=ADp82a8LUzbMdg508DbhOINHdxkxVBMRGCsDtQkK5gI=; b=CJRZQf54byvlIoT8Oln9RG6YN7NGNyqymSnTIOGfa3DF6h24FPW+XPC2EIHe2EsFyNMo+B3i2izpgQQ0XnOB8XkOo9q7GgCFjF2vnLgWqytFQqT9SociHbXbp7IZLPSJ7p9qeCrOLcQelEkOZxLhdUSx05zsEwiSKNRY7CSnIhiONsFfQbtUbVwb1Gw9b6t9i9QZhYNEhd0aLZ99JDfcEIuZPHhOqT4ab2jrHFTGKcswZTBsMe2NT8O+Am1ts9HITh3tzjpth+Lz8/oPUD3QimgY+tGQRVy8XKtyl6mUK/bHSnrmLIWu7FZVAuAX8OnVn5/OCYWn1IZOcBVphQ8Adg== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=outlook.com; dmarc=pass action=none header.from=outlook.com; dkim=pass header.d=outlook.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=outlook.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=ADp82a8LUzbMdg508DbhOINHdxkxVBMRGCsDtQkK5gI=; b=sibXT1hIWC2fosrH7iEk6Q92yDJ4Z1eS2TnhemtMaVefg5V6g3wnaYfxUPewj0xHwWXcugkOqgtfjmh4vOV62GkIdMEFqFQblTfei/b328W9a2S410U+H4MM3yE5+CYOjZezj4ZEZ/GGPpJrM6lUYFiepAi8I+pLRNcarV71MftSr00NrGtMcOqyVgqp6Saqx/S/3LWDNZiRWHOkzpR/I8CaWD7AHfVxAf0U5y7DNnDJVRLGP+W0tNUaU60PplwjUZJ9cAKX59kb6DWxZDwl5Xfm1UjtoT7CNlvn+yj8dMBsldvbj/HlagaZpsZlMjvCmYu248txEOfvgSoVdOCzXg== Received: from PU1APC01FT041.eop-APC01.prod.protection.outlook.com (2a01:111:e400:7ebe::45) by PU1APC01HT190.eop-APC01.prod.protection.outlook.com (2a01:111:e400:7ebe::457) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2856.17; Thu, 26 Mar 2020 13:37:57 +0000 Received: from PS1PR03MB3606.apcprd03.prod.outlook.com (10.152.252.51) by PU1APC01FT041.mail.protection.outlook.com (10.152.253.108) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2856.17 via Frontend Transport; Thu, 26 Mar 2020 13:37:57 +0000 X-IncomingTopHeaderMarker: OriginalChecksum:ED1F08A44D9EF3B377477390C1ED3BA8A637D6AD2B8FBD8C44EF1607215514A1; UpperCasedChecksum:868BD0D5C570926C53ACBC59B6D71ED498F4616FFE53AB5254DE06CE06DB52FB; SizeAsReceived:9717; Count:49 Received: from PS1PR03MB3606.apcprd03.prod.outlook.com ([fe80::85cb:c430:1173:7716]) by PS1PR03MB3606.apcprd03.prod.outlook.com ([fe80::85cb:c430:1173:7716%5]) with mapi id 15.20.2856.019; Thu, 26 Mar 2020 13:37:57 +0000 Date: Thu, 26 Mar 2020 21:37:39 +0800 From: HaiJun Zhang Message-ID: In-Reply-To: <831rphbyuw.fsf@gnu.org> References: <83o8vpn8g1.fsf@gnu.org> <87mub9u0ld.fsf@gmx.de> <831rslmxih.fsf@gnu.org> <83lfqslafm.fsf@gnu.org> <83r20jjgg3.fsf@gnu.org> <83png1hyb8.fsf@gnu.org> <83imlrh9ze.fsf@gnu.org> <83d096dswz.fsf@gnu.org> <83lfnscvfi.fsf@gnu.org> <831rphbyuw.fsf@gnu.org> X-Readdle-Message-ID: ed62371f-df3b-4bc8-bf08-0de917c18742@Spark Content-Type: multipart/alternative; boundary="5e7cb02e_550b8808_6dce" X-ClientProxiedBy: HK2PR02CA0159.apcprd02.prod.outlook.com (2603:1096:201:1f::19) To PS1PR03MB3606.apcprd03.prod.outlook.com (2603:1096:803:4e::17) X-Microsoft-Original-Message-ID: MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 Received: from [192.168.1.150] (1.196.184.123) by HK2PR02CA0159.apcprd02.prod.outlook.com (2603:1096:201:1f::19) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2856.19 via Frontend Transport; Thu, 26 Mar 2020 13:37:55 +0000 X-Readdle-Message-ID: ed62371f-df3b-4bc8-bf08-0de917c18742@Spark X-Microsoft-Original-Message-ID: X-TMN: [mnig6Pk3Mk3DwO0lw3VqcruGH0TJ/1ht] X-MS-PublicTrafficType: Email X-IncomingHeaderCount: 49 X-EOPAttributedMessage: 0 X-MS-Office365-Filtering-Correlation-Id: aaa13ba3-e0b2-454d-01b5-08d7d18ae4bf X-MS-TrafficTypeDiagnostic: PU1APC01HT190: X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: epWkchCM+8pcM+7QcZPF8BcTPO+byL66knCeyjvkcuSxVzUqQ9n6oOTWk/UcSr8EzsZRNSv+aU18noQWPOzGaT1zPa/AYXgRBXtZt3U/ypClJkv/RUw5GSCeLJ5f8xhZUMJNUv4+PsqPOyXUu11vTDThvaA26xgVDdJXGpb85Sv4DjoC4Vlj9TbfWedinfwD X-MS-Exchange-AntiSpam-MessageData: lHcRSx0G3ykgbjys0k0M0OSlVhhM73EaTV3wpyXA+MhiHxPgVKyYecrxvYWjHUP/+q1WGlwSETdhxfrjf0Gg8IU/hhJvp+1ncuBhnPi2GwMYls3aQwFd7opm8FvmaY/Uh5KzIjFjn0l4TuZKyPIPmA== X-OriginatorOrg: outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: aaa13ba3-e0b2-454d-01b5-08d7d18ae4bf X-MS-Exchange-CrossTenant-OriginalArrivalTime: 26 Mar 2020 13:37:57.6285 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 84df9e7f-e9f6-40af-b435-aaaaaaaaaaaa X-MS-Exchange-CrossTenant-FromEntityHeader: Internet X-MS-Exchange-CrossTenant-RMS-PersistedConsumerOrg: 00000000-0000-0000-0000-000000000000 X-MS-Exchange-Transport-CrossTenantHeadersStamped: PU1APC01HT190 X-Spam-Score: 0.0 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) --5e7cb02e_550b8808_6dce Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline =E5=9C=A8 2020=E5=B9=B43=E6=9C=8824=E6=97=A5 +0800 PM10:40=EF=BC=8CEli Za= retskii =EF=BC=8C=E5=86=99=E9=81=93=EF=BC=9A > > I'm not sure I understand the response. Let me repeat the question: > while the module thread parses JSON, will the main thread wait for it, > or will it do something else=3F Can you describe how this would work > using some use case where lsp-mode is used, like for completing on > program symbols=3F > 1. After user inputs a char, lsp-mode call the module api to setup a comp= letion task. The task has a task id. The lsp-mode saves the task id as th= e current task and bind a callback function to it. It then returns. 2. The module create a task and adds it to its task queue. 3. The worker thread in the module fetches the task from task queue and e= xecutes it. It builds the json-rpc request and sends it to the lsp server= . And then it waits for the reply from the lsp server. 4. The worker receives the reply from lsp server. It parses the json mess= age and builds the completion result to a list(in lisp). 5. The worker thread posts a message to emacs. The message includes the t= ask id and the completion result. 6. Emacs receives the message and dispatches it to lsp-mode (by calling a= function in lsp-mode). The function checks that it is the result of the=C2= =A0completion=C2=A0ask and call the task callback function which will pop= ups a menu to display the completion items. > > It will be good if module thread can post message to lisp thread. It = will be > > better if module thread can send lisp data within the message to lisp= thread. > > Posting messages is possible by writing to a pipe. But I don't think > I understand what you mean by =22send Lisp data=22 -- how (in what form= ) > can Lisp data be sent=3F > It =C2=A0can be the above completion list, a point to a lisp object which= can be passed to emacs to for lsp-mode to use. > > I don't think I understand what does pdumper have to do with this > > issue. > > > > My understanding is that pdumper can serialize and deserialize lisp d= ata. Maybe we can prepare data with its > > format and let it deserialize them. > > But we already do that: the libjansson library =22serializes=22 the dat= a, > and we then deserialize it in Emacs as we get the data from the > library. That deserialization is what takes the time you are trying > to make shorter. Before lsp-mode, I used completion tools like irony-mode for c/c++ and go= code for golang. They work very smoothly. Now I have used lsp-mode with emacs-27 or emacs master for several weeks.= It doesn=E2=80=99t work as smoothly as the above tools. It lags. I added some debug messages to lsp-mode and see that there are too many(a= bout 10=7E30) json messages arrived after I input every char. Emacs has t= o parse and process all of them on every key pressing. =46or the old completion tools, there are only one or two json messages a= rrived on every key pressing. Maybe it is the problem of the lsp server. But it is hard to modify them.= --5e7cb02e_550b8808_6dce Content-Type: text/html; charset="utf-8" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline
=E5=9C=A8 2020=E5=B9=B43=E6=9C=8824=E6=97= =A5 +0800 PM10:40=EF=BC=8CEli Zaretskii <eliz@gnu.org>=EF=BC=8C= =E5=86=99=E9=81=93=EF=BC=9A

I'm not sure I understand the response. Let me repeat the question:
while the module thread parses JSON, will the main thread wait for it,
or will it do something else? Can you describe how this would work
using some use case where lsp-mode is used, like for completing on
program symbols?


  1. After user inputs a char, lsp-mode call the module api t= o setup a completion task. The task has a task id. The lsp-mode saves the t= ask id as the current task and bind a callback function to it. It then retu= rns.
  2. The module create a task and adds it to its task queue.
  3. The worker thread in the module fetches the task from task queue and ex= ecutes it. It builds the json-rpc request and sends it to the lsp server. A= nd then it waits for the reply from the lsp server.
  4. The worker receives the reply from lsp server. It parses the json messa= ge and builds the completion result to a list(in lisp).
  5. The worker thread posts a message to emacs. The message includes the ta= sk id and the completion result.
  6. Emacs receives the message and dispatches it to lsp-mode (by calling a = function in lsp-mode). The function checks that it is the result of the&nbs= p;completion ask = and call the task callback function which will popups a menu to display the= completion items.

It will be good if mod= ule thread can post message to lisp thread. It will be
better if module thread can send lisp data within the message to lisp threa= d.

Posting messages is possible by writing to a pipe. But I don't think
I understand what you mean by "send Lisp data" -- how (in what fo= rm)
can Lisp data be sent?


It  can be the above completion list, a point to a l= isp object which can be passed to emacs to for lsp-mode to use. 

I don't think I unders= tand what does pdumper have to do with this
issue.

My understanding is that pdumper can serialize and deserialize lisp data. M= aybe we can prepare data with its
format and let it deserialize them.

But we already do that: the libjansson library "serializes" the d= ata,
and we then deserialize it in Emacs as we get the data from the
library. That deserialization is what takes the time you are trying
to make shorter. 

Before lsp-mode, I used completion tools like irony-mode for c/c+&= #43; and gocode for golang. They work very smoothly.

Now I have used lsp-mode with emacs-27 or emacs master fo= r several weeks. It doesn=E2=80=99t work as smoothly as the above tools. It= lags.

I added some debug messages to lsp-mode and see that ther= e are too many(about 10~30) json messages arrived after I input every char.= Emacs has to parse and process all of them on every key pressing.

For the old completion tools, there are only one or two j= son messages arrived on every key pressing.

Maybe it is the problem of the lsp server. But it is hard= to modify them.

--5e7cb02e_550b8808_6dce-- From unknown Wed Jul 30 13:11:05 2025 X-Loop: help-debbugs@gnu.org Subject: bug#38807: [Feature request]: Support lisp workers like web workers. Resent-From: HaiJun Zhang Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 26 Mar 2020 13:50:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 38807 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Ivan Yonchovski Cc: Eli Zaretskii , 38807@debbugs.gnu.org, michael.albinus@gmx.de Received: via spool by 38807-submit@debbugs.gnu.org id=B38807.158523057015677 (code B ref 38807); Thu, 26 Mar 2020 13:50:01 +0000 Received: (at 38807) by debbugs.gnu.org; 26 Mar 2020 13:49:30 +0000 Received: from localhost ([127.0.0.1]:58269 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jHSsz-00044n-Hc for submit@debbugs.gnu.org; Thu, 26 Mar 2020 09:49:29 -0400 Received: from mail-oln040092254035.outbound.protection.outlook.com ([40.92.254.35]:14547 helo=APC01-PU1-obe.outbound.protection.outlook.com) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jHSsx-00044X-MP for 38807@debbugs.gnu.org; Thu, 26 Mar 2020 09:49:28 -0400 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=Zit9zBmrlZWHBCUl1aUAiavoNpTWkAxQMNfvFhBlSFWJFx1yzWdsMDHKG8SJcgEs3N8YFeSBwvMOLNNDsd0d7hwr7f72Jfmgm6WbW1dY04O0ohLD01RxJkqmqposWYxOqTNP+AxAN2Cv2Jy/NPin5oTk6sJUM6mJ9dXlFvZjBrmnPJZet0dcqL3uceAmWnupC6FD8KrXUin/rCtehRviVt0+lYI3OnP3HQSPJJHlS4g4/vvuB9z9Nl3eHWXQRSDo2f0QXeIj6n5BrkDYRILanUx4yKClVaaWURyT2ebJ8wc3d7N1a+xlWqS5WOVQnPUM1JZ1BULFrYdrINC/DzKwUQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=ukAUicN9YlUpD96eGt6zT1zXE1Zhd7CclKYMJqhOkos=; b=m0NLCI8BOEma4SKIwBRrzEil3ywxfOaRlNkcKk5XthgW0dBx6MLmxe90wYGsXcDs+otBfQ80lveMvNXDZ46t9cb9pNO2oxQWTkQsScLyGwPfvEqtyHbi/SsDSHnori1T+N8ZTVIIoVz0qezlq7lb2Mqm5aICPyuet+LMJ4hwl9U4AiF7J/gWy6RoguWSC3TGotnOjZETXqWhJuP9LkIxZ3Wg9T5zWOa/HteOhhNz++VACS86jf5y8aO9qgLVar0XldWVS+Aeqh1e9PfHDr4lfCADQ3h0AusZ3ZtlygtmzrAsiWXI+bpSULBAuvIgw4QD0BFa0ziY8sKA4srBSi7xHA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=outlook.com; dmarc=pass action=none header.from=outlook.com; dkim=pass header.d=outlook.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=outlook.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=ukAUicN9YlUpD96eGt6zT1zXE1Zhd7CclKYMJqhOkos=; b=u4zuSBIqemmgX217Q1IdXbB0mxE8mYLUzrRgSBkELKW+XzYMvRNpbUMRY/SHODs+ebwWW+10WiqdAM/jeh9Vgu0oZ18KrDR66Zq3NVFNO/sHIbVBHkmlAlzkrNyUSmTVOa3GETarZGs+KrNM9q4t0MY97YcuHX6hFj37tRA9AXYRLbseAEAFmy3wChPCXHJh0vXvThtzTdbkcvRsZ0JPjVlIQ8TH+h+E2rZwJ/fP+hXMff/KbojUVwsZ8r0FSjOtcI/Pd7Owm62LGZ8GwgvNQVA8EFw8guTiaZiYQUNKrUnaq2y0epq2/p7qsvjnQ0jt4lLmdo/21QS7Pq7haXHuJg== Received: from HK2APC01FT034.eop-APC01.prod.protection.outlook.com (2a01:111:e400:7ebc::4f) by HK2APC01HT115.eop-APC01.prod.protection.outlook.com (2a01:111:e400:7ebc::272) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2856.17; Thu, 26 Mar 2020 13:49:19 +0000 Received: from PS1PR03MB3606.apcprd03.prod.outlook.com (10.152.248.58) by HK2APC01FT034.mail.protection.outlook.com (10.152.248.191) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2814.13 via Frontend Transport; Thu, 26 Mar 2020 13:49:19 +0000 X-IncomingTopHeaderMarker: OriginalChecksum:01E3214392DD6F83ACFAE5FBBEE52197A280B0DA6F5C3310F788586D302DFFB3; UpperCasedChecksum:4D6CBA249DDB655668E247BF0588ACC45FEBBB79B8B221F8BA5CF1A36D2C74BF; SizeAsReceived:9741; Count:49 Received: from PS1PR03MB3606.apcprd03.prod.outlook.com ([fe80::85cb:c430:1173:7716]) by PS1PR03MB3606.apcprd03.prod.outlook.com ([fe80::85cb:c430:1173:7716%5]) with mapi id 15.20.2856.019; Thu, 26 Mar 2020 13:49:19 +0000 Date: Thu, 26 Mar 2020 21:49:08 +0800 From: HaiJun Zhang Message-ID: In-Reply-To: <87ftdwmlj7.fsf@gmail.com> References: <83o8vpn8g1.fsf@gnu.org> <87mub9u0ld.fsf@gmx.de> <831rslmxih.fsf@gnu.org> <83lfqslafm.fsf@gnu.org> <83r20jjgg3.fsf@gnu.org> <83png1hyb8.fsf@gnu.org> <83imlrh9ze.fsf@gnu.org> <83d096dswz.fsf@gnu.org> <83lfnscvfi.fsf@gnu.org> <87ftdwmlj7.fsf@gmail.com> X-Readdle-Message-ID: 522a244b-7c1e-4b09-afce-5599ae869eb7@Spark Content-Type: multipart/alternative; boundary="5e7cb2d9_34dfbc00_6dce" X-ClientProxiedBy: HK2PR02CA0140.apcprd02.prod.outlook.com (2603:1096:202:16::24) To PS1PR03MB3606.apcprd03.prod.outlook.com (2603:1096:803:4e::17) X-Microsoft-Original-Message-ID: <522a244b-7c1e-4b09-afce-5599ae869eb7@Spark> MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 Received: from [192.168.1.150] (1.196.184.123) by HK2PR02CA0140.apcprd02.prod.outlook.com (2603:1096:202:16::24) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2856.19 via Frontend Transport; Thu, 26 Mar 2020 13:49:18 +0000 X-Readdle-Message-ID: 522a244b-7c1e-4b09-afce-5599ae869eb7@Spark X-Microsoft-Original-Message-ID: <522a244b-7c1e-4b09-afce-5599ae869eb7@Spark> X-TMN: [cyQ1wKoyRm5cMGfpWx0cuFUyc0ohNYCV] X-MS-PublicTrafficType: Email X-IncomingHeaderCount: 49 X-EOPAttributedMessage: 0 X-MS-Office365-Filtering-Correlation-Id: 82607ec5-c366-46fc-9de7-08d7d18c7b6a X-MS-TrafficTypeDiagnostic: HK2APC01HT115: X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: WpZf30Gpe4NUadIMPDBcHWdwk8ozdqOV5vlzLRmH96+0g8EGtzO0ZtWG7G3x4Lv/JC7kzBiQjhm6sxcbFlYJn1kNz92dc1qzyY/omAX1WhMmhHHVglMLWY0jZMVpuxTukpUfYDquoIBjhgvgvwTntMsywrZ7so2u4Kq9YOeEWprY+AHE2k2A0cdOlqOjT5AF2Gw0+VEW2m/FzWAlJ0Qk8SxsZJcBG49ZGXjFzK/0AsY= X-MS-Exchange-AntiSpam-MessageData: gHZ9B6EttZlkUGhTivfC7CGySFLqc32fnc9U8BcdCiI0oqqefJdPbTa1lnRX0XOC2u/9fo/HY9EA3LUfgzo/3w+GyFsabBzsUIKQGk253YH6MlJGwIycBiQx8rzbkLXBLRsu9qx/uGznjaXGqJLqzw== X-OriginatorOrg: outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 82607ec5-c366-46fc-9de7-08d7d18c7b6a X-MS-Exchange-CrossTenant-OriginalArrivalTime: 26 Mar 2020 13:49:19.4734 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 84df9e7f-e9f6-40af-b435-aaaaaaaaaaaa X-MS-Exchange-CrossTenant-FromEntityHeader: Internet X-MS-Exchange-CrossTenant-RMS-PersistedConsumerOrg: 00000000-0000-0000-0000-000000000000 X-MS-Exchange-Transport-CrossTenantHeadersStamped: HK2APC01HT115 X-Spam-Score: 0.0 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) --5e7cb2d9_34dfbc00_6dce Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline =E5=9C=A8 2020=E5=B9=B43=E6=9C=8826=E6=97=A5 +0800 AM12:44=EF=BC=8CIvan Y= onchovski =EF=BC=8C=E5=86=99=E9=81=93=EF=BC=9A > > HaiJun Zhang writes: > > > > > If json messages are parsed in module thread and saved as c struc= t data(not lisp data), they have to be > > > > translated to lisp data before emacs use. The translation which s= hould be done in emacs thread cost too > > > > much cpu, which make the parallel parsing of json messages not ve= ry useful. > > > > > > You are saying that the translation is costly, but did someone > > > actually measure that and verify that it's indeed costly=3F And if > > > someone did, where can I see the results in sufficient level of det= ail > > > to understand what part(s) of parsing JSON are the bottleneck=3F > > > > > > > I have talked with the author of lsp-mode. I think their team have do= ne some work on this. > > =40yyoncho Can you join the discussion=3F > > IIRC the bottleneck was the utf conversions (there was similar issue in= > native json parsing as well). I havent tested the dynamic module parser= > after the latest optimizations. Back then I tested also with the > conversion code disabled and it still was relatively slow compared to > the native json parsing even before the native joson parsing fixes. > > HaiJun Zhang, it will be good if you can report the performance issues > you have with lsp-mode. You may follow the guide in the > https://github.com/emacs-lsp/lsp-mode=23performance . > > > Thanks, > Ivan OK. I will do it when I have time. --5e7cb2d9_34dfbc00_6dce Content-Type: text/html; charset="utf-8" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline
=E5=9C=A8 2020=E5=B9=B43=E6=9C=8826=E6=97= =A5 +0800 AM12:44=EF=BC=8CIvan Yonchovski <yyoncho@gmail.com>=EF= =BC=8C=E5=86=99=E9=81=93=EF=BC=9A

HaiJun Zhang writes:

If json messages are p= arsed in module thread and saved as c struct data(not lisp data), they have= to be
translated to lisp data before emacs use. The translation which should be d= one in emacs thread cost too
much cpu, which make the parallel parsing of json messages not very useful.=

You are saying that the translation is costly, but did someone
actually measure that and verify that it's indeed costly? And if
someone did, where can I see the results in sufficient level of detail
to understand what part(s) of parsing JSON are the bottleneck?


I have talked with the author of lsp-mode. I think their team have done som= e work on this.
@yyoncho Can you join the discussion?

IIRC the bottleneck was the utf conversions (there was similar issue in
native json parsing as well). I havent tested the dynamic module parser
after the latest optimizations. Back then I tested also with the
conversion code disabled and it still was relatively slow compared to
the native json parsing even before the native joson parsing fixes.

HaiJun Zhang, it will be good if you can report the performance issues
you have with lsp-mode. You may follow the guide in the
https://github.com/emacs-lsp/lsp-mode#performance .


Thanks,
Ivan 


OK. I will do it when I have time.

--5e7cb2d9_34dfbc00_6dce-- From unknown Wed Jul 30 13:11:05 2025 X-Loop: help-debbugs@gnu.org Subject: bug#38807: [Feature request]: Support lisp workers like web workers. Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 26 Mar 2020 14:45:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 38807 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: HaiJun Zhang Cc: 38807@debbugs.gnu.org, michael.albinus@gmx.de, yyoncho@gmail.com Received: via spool by 38807-submit@debbugs.gnu.org id=B38807.158523390122583 (code B ref 38807); Thu, 26 Mar 2020 14:45:02 +0000 Received: (at 38807) by debbugs.gnu.org; 26 Mar 2020 14:45:01 +0000 Received: from localhost ([127.0.0.1]:59484 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jHTki-0005sB-UR for submit@debbugs.gnu.org; Thu, 26 Mar 2020 10:45:01 -0400 Received: from eggs.gnu.org ([209.51.188.92]:59204) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jHTkg-0005ru-Nj for 38807@debbugs.gnu.org; Thu, 26 Mar 2020 10:44:59 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]:35829) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1jHTkb-0002Vq-57; Thu, 26 Mar 2020 10:44:53 -0400 Received: from [176.228.60.248] (port=2789 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1jHTka-0006Jx-HV; Thu, 26 Mar 2020 10:44:52 -0400 Date: Thu, 26 Mar 2020 16:44:50 +0200 Message-Id: <837dz79nvh.fsf@gnu.org> From: Eli Zaretskii In-Reply-To: (message from HaiJun Zhang on Thu, 26 Mar 2020 21:37:39 +0800) References: <83o8vpn8g1.fsf@gnu.org> <87mub9u0ld.fsf@gmx.de> <831rslmxih.fsf@gnu.org> <83lfqslafm.fsf@gnu.org> <83r20jjgg3.fsf@gnu.org> <83png1hyb8.fsf@gnu.org> <83imlrh9ze.fsf@gnu.org> <83d096dswz.fsf@gnu.org> <83lfnscvfi.fsf@gnu.org> <831rphbyuw.fsf@gnu.org> MIME-version: 1.0 Content-type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Spam-Score: -0.7 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.7 (-) > Date: Thu, 26 Mar 2020 21:37:39 +0800 > From: HaiJun Zhang > Cc: michael.albinus@gmx.de, 38807@debbugs.gnu.org, yyoncho@gmail.com > > I'm not sure I understand the response. Let me repeat the question: > while the module thread parses JSON, will the main thread wait for it, > or will it do something else? Can you describe how this would work > using some use case where lsp-mode is used, like for completing on > program symbols? > > 1 After user inputs a char, lsp-mode call the module api to setup a completion task. The task has a task id. > The lsp-mode saves the task id as the current task and bind a callback function to it. It then returns. > 2 The module create a task and adds it to its task queue. > 3 The worker thread in the module fetches the task from task queue and executes it. It builds the json-rpc > request and sends it to the lsp server. And then it waits for the reply from the lsp server. > 4 The worker receives the reply from lsp server. It parses the json message and builds the completion > result to a list(in lisp). > 5 The worker thread posts a message to emacs. The message includes the task id and the completion > result. > 6 Emacs receives the message and dispatches it to lsp-mode (by calling a function in lsp-mode). The > function checks that it is the result of the completion ask and call the task callback function which will > popups a menu to display the completion items. If the above describes what happens when the user requests completion, then I deduce that the user waits for the entire process you described to finish, because the user cannot continue without seeing the completion candidates, and those are only available after item 6 above is done. Since the user waits for this job to finish anyway, why does it help to run some of this processing in a separate thread? > It will be good if module thread can post message to lisp thread. It will be > better if module thread can send lisp data within the message to lisp thread. > > Posting messages is possible by writing to a pipe. But I don't think > I understand what you mean by "send Lisp data" -- how (in what form) > can Lisp data be sent? > > It can be the above completion list, a point to a lisp object which can be passed to emacs to for lsp-mode to > use. A Lisp object that is not stored in the data structures maintained by alloc.c is not really a Lisp object that has a meaning for Emacs, I think. > My understanding is that pdumper can serialize and deserialize lisp data. Maybe we can prepare > data with its > format and let it deserialize them. > > But we already do that: the libjansson library "serializes" the data, > and we then deserialize it in Emacs as we get the data from the > library. That deserialization is what takes the time you are trying > to make shorter. > > Before lsp-mode, I used completion tools like irony-mode for c/c++ and gocode for golang. They work very > smoothly. > > Now I have used lsp-mode with emacs-27 or emacs master for several weeks. It doesn’t work as smoothly > as the above tools. It lags. > > I added some debug messages to lsp-mode and see that there are too many(about 10~30) json messages > arrived after I input every char. Emacs has to parse and process all of them on every key pressing. > > For the old completion tools, there are only one or two json messages arrived on every key pressing. > > Maybe it is the problem of the lsp server. But it is hard to modify them. I don't think I understand how this is related to the serialization issue and the pdumper. From unknown Wed Jul 30 13:11:05 2025 X-Loop: help-debbugs@gnu.org Subject: bug#38807: [Feature request]: Support lisp workers like web workers. Resent-From: Ivan Yonchovski Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 26 Mar 2020 18:16:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 38807 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Eli Zaretskii Cc: HaiJun Zhang , 38807@debbugs.gnu.org, michael.albinus@gmx.de Received: via spool by 38807-submit@debbugs.gnu.org id=B38807.158524650820231 (code B ref 38807); Thu, 26 Mar 2020 18:16:02 +0000 Received: (at 38807) by debbugs.gnu.org; 26 Mar 2020 18:15:08 +0000 Received: from localhost ([127.0.0.1]:60167 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jHX24-0005GF-LZ for submit@debbugs.gnu.org; Thu, 26 Mar 2020 14:15:08 -0400 Received: from mail-lf1-f48.google.com ([209.85.167.48]:34639) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jHX23-0005Ff-JE for 38807@debbugs.gnu.org; Thu, 26 Mar 2020 14:15:07 -0400 Received: by mail-lf1-f48.google.com with SMTP id e7so5708818lfq.1 for <38807@debbugs.gnu.org>; Thu, 26 Mar 2020 11:15:07 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=references:user-agent:from:to:cc:subject:in-reply-to:date :message-id:mime-version; bh=QJujqNrmlirb1LBU19psDAH+w34jaaFt9gRFNPR6ti8=; b=gJ22pGAQV+y4awK2ezgL3vv2jHBosKyqKD/VFI0+U0kw73kkYUC6XhxyZuvYccAx2Q ms1jLTUnaHfuwR6z7oHXqCS5AjHBwbNeNOY+39OrkrgnYPZjT4tmex+Y6cCJWiy4YPsI jOU4HeIMjga7k+Bbg7O6T8Ijje5UVTzMTG9gu1I+FAPNJ+k66rPtsLRVptAeBgYElyDs 8brKt/szb2qBBB6PX253SQmdVH0AgBNa2DTFMbskk41uXCNNYF9SUvMsoouvxrzDpX04 LUa3v3oZy5YSNahxdZuTOBZLhkV/EcbAs4SNEiB9jwGWe6h/oqFXTennwMumPHyXmoCY hedQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:references:user-agent:from:to:cc:subject :in-reply-to:date:message-id:mime-version; bh=QJujqNrmlirb1LBU19psDAH+w34jaaFt9gRFNPR6ti8=; b=cOw4mLg5Y3QMBGhlsABCAvtrv31y5LYyGHXc1owZvuoGuaVGDEXtYYZAEiHHb2XbRx 2BkJT8GMkMkA5KMtHFaPQ82f+HRFnNMUc4w0hor2f5d+Dx5i8Ga/uxmdCKCdeaTCrDTx MhCTbzYcGfEKdHRZiihiHVXuIpNwTAX59pBzO6leL0bubkrlkS2OWOMYH8VuQFjHAlfi jUDorztwYhOQv4FfrQthmHVokjutt4RG09qEpHk9LF6GiD152h2tqgvdsrUFYwQd9s9V U1wgoAWo23l+suR+Hat3WQPRWwQddiwwGNG9IZpI2QFAdog7v72nBChhK/90tgeGhJ7K 4RSQ== X-Gm-Message-State: ANhLgQ3X1JiUOVrMz1grwEW7I7ev/DUZHDPhLdPNDqsIrw6Yky0MNtNm FZidqgNBIGj4+c6VmpuPHbrnV+YMBcU= X-Google-Smtp-Source: ADFU+vvG6rFy27MSErdE7d2jawYcqw4rFYsOuzsLANj7chdy3Dh2QW4SWNTCK82hgfo7gHnSv1p6uA== X-Received: by 2002:a05:6512:31d5:: with SMTP id j21mr6648079lfe.23.1585246501222; Thu, 26 Mar 2020 11:15:01 -0700 (PDT) Received: from kyoncho-H87-D3H ([2a00:4802:28d:1200:3c39:d732:372b:ad0a]) by smtp.gmail.com with ESMTPSA id y20sm1862627ljd.35.2020.03.26.11.14.59 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 26 Mar 2020 11:15:00 -0700 (PDT) References: <83o8vpn8g1.fsf@gnu.org> <87mub9u0ld.fsf@gmx.de> <831rslmxih.fsf@gnu.org> <83lfqslafm.fsf@gnu.org> <83r20jjgg3.fsf@gnu.org> <83png1hyb8.fsf@gnu.org> <83imlrh9ze.fsf@gnu.org> <83d096dswz.fsf@gnu.org> <83lfnscvfi.fsf@gnu.org> <831rphbyuw.fsf@gnu.org> <837dz79nvh.fsf@gnu.org> User-agent: mu4e 1.3.7; emacs 27.0.60 From: Ivan Yonchovski In-reply-to: <837dz79nvh.fsf@gnu.org> Date: Thu, 26 Mar 2020 20:14:58 +0200 Message-ID: <87v9mrkmot.fsf@gmail.com> MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: 0.0 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) Eli Zaretskii writes: > Since the user waits for this job to finish anyway, why does it help > to run some of this processing in a separate thread? The user might not want to wait for the completion but he/she might want to continue to type while the parsing is taking place. The effect is that the typing feels slugish. IME with latest native json parsing this is no longer the case for lsp-mode. With my limited understanding of emacs internals I see 2 potential solutions to allow writing of "lisp workers". 1. Start second(or multiple) elisp interpreter in the emacs process which has thread local copy of all of the global data(buffers, data allocation, etc). It may or may not have a gui attached to it. In addition to that, introduce primitives for moving elisp datastructure from the background thread to the main UI thread and vice versa eventually by coping the original structure to avoid bugs. 2. Make the functions that create elisp datastructures threadsafe(or some sane subset) and expose them to the dynamic modules. Thanks, Ivan From unknown Wed Jul 30 13:11:05 2025 X-Loop: help-debbugs@gnu.org Subject: bug#38807: [Feature request]: Support lisp workers like web workers. Resent-From: HaiJun Zhang Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 30 Mar 2020 02:36:28 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 38807 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Eli Zaretskii Cc: michael.albinus@gmx.de, 38807@debbugs.gnu.org, yyoncho@gmail.com Received: via spool by 38807-submit@debbugs.gnu.org id=B38807.158553573517421 (code B ref 38807); Mon, 30 Mar 2020 02:36:28 +0000 Received: (at 38807) by debbugs.gnu.org; 30 Mar 2020 02:35:35 +0000 Received: from mail-oln040092255076.outbound.protection.outlook.com ([40.92.255.76]:23472 helo=APC01-HK2-obe.outbound.protection.outlook.com) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jINR7-0007L3-7t for 38807@debbugs.gnu.org; Sat, 28 Mar 2020 22:12:30 -0400 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=JE0NAcy1fuH9OB9G+qHt+z+cRxV+8Y3zMVSMl+OUE9zRNL+pLA4TRqTl/hMGTrMH2C6J7cmJgt/WcNW+ypX3T0XzPgneq19hqYIQxjU9b7PBkTkKpgEAqt3sSuLVqZx3B8JKfByco15Z5IZzT9cxY3xaCYVtIgMCs8Mv1+uxZp7NvhrbcOHDP+2HlAJQBCx0ePH4Rm94+6fyAHUmUJT5FiCkCfoKstLpZauvdx5uVCyHycFzQPjoEcgRLrLgSrui8OujBK/dZ8k3XefACd1nf9n/II2KQUV0YhMclukjNsfORHmRwJ3ZvfsZwnQ3ZpsxxUIq+gkoQRapyLHxFozE9Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=KDb/6Qk+0QL7JQVUjdL/9IeiWl1Xh7U6lvcUdkjT/ss=; b=AhQ4a/OGopq3+Cjyh9yu+cNbGYj3STZmXDS5VyUgGhEflmgDxAQlE5IEZmd1dLxcIJY+UsZ77+hbdhDA/eCfRDrpBvlaUdGf+atFAcuMW7rwMrUdSFd/u1uVxyVSWA0tJeZ5j2XTdthSsrZSN8GLsfFrPG8Q6FowIDGKcLvkguJ/OKLfeHqsQiypiHwuCW9G5AJZd+OjRmxbFSMt5tRYi/T8QonEU0nY4DKbzfJoD5lzJTn7JiLoFj3ge2Ooj/A08bPlCsWX0VGc4DcrUOHLA3iRddfYtjMgJ0DReAh7xMsEmh1BT+AmO/xZlqtSfmnrI1nqif1OI+z7wZve4sU2Wg== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=outlook.com; dmarc=pass action=none header.from=outlook.com; dkim=pass header.d=outlook.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=outlook.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=KDb/6Qk+0QL7JQVUjdL/9IeiWl1Xh7U6lvcUdkjT/ss=; b=CI3zdrBmdT+xfZ5T9oYVQ9w03eulDcpv3x+HuLaoHJYb3e4m1SRf1hH6cEqEk5ZTuMAzU9WKTRHfI+unCTtVUh/pwIsX9nmxdNcn2RfWnpeRxhdd9CJ44ZBdNVIVHvtSfGestlobCsYoDHgJNzzzfQ2riFWHO4RzVSPY6soLskk5Xu9kxkeDTPyvf5uJskBMmVPGRG5qhwqaGn6FNFh4ZhyewWytD/ys7lgatR8EuuymUQ4UB8TOvftexN+43g3gBLHQZ8poXe+Dxl6oW0+DFEH37D20U7pft16Db/1oA/T93tTEZM9feJRnIBlbAUDYykAE22OiFcQa7EQCvK+UKQ== Received: from PU1APC01FT007.eop-APC01.prod.protection.outlook.com (2a01:111:e400:7ebe::4a) by PU1APC01HT028.eop-APC01.prod.protection.outlook.com (2a01:111:e400:7ebe::329) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2856.17; Sun, 29 Mar 2020 02:12:20 +0000 Received: from PS1PR03MB3606.apcprd03.prod.outlook.com (10.152.252.52) by PU1APC01FT007.mail.protection.outlook.com (10.152.252.99) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2856.17 via Frontend Transport; Sun, 29 Mar 2020 02:12:20 +0000 X-IncomingTopHeaderMarker: OriginalChecksum:741A2613A07FA1425375A5154D9646B0ADE8453A026CD664CB21353E1B411DB3; UpperCasedChecksum:BE5806892BB50F5570FE57CCBCF1F6DBC1C70317B60BBB82F20FB027DDC510E7; SizeAsReceived:9824; Count:49 Received: from PS1PR03MB3606.apcprd03.prod.outlook.com ([fe80::85cb:c430:1173:7716]) by PS1PR03MB3606.apcprd03.prod.outlook.com ([fe80::85cb:c430:1173:7716%5]) with mapi id 15.20.2878.013; Sun, 29 Mar 2020 02:12:20 +0000 Date: Sun, 29 Mar 2020 10:12:10 +0800 From: HaiJun Zhang Message-ID: In-Reply-To: <837dz79nvh.fsf@gnu.org> References: <83o8vpn8g1.fsf@gnu.org> <87mub9u0ld.fsf@gmx.de> <831rslmxih.fsf@gnu.org> <83lfqslafm.fsf@gnu.org> <83r20jjgg3.fsf@gnu.org> <83png1hyb8.fsf@gnu.org> <83imlrh9ze.fsf@gnu.org> <83d096dswz.fsf@gnu.org> <83lfnscvfi.fsf@gnu.org> <831rphbyuw.fsf@gnu.org> <837dz79nvh.fsf@gnu.org> X-Readdle-Message-ID: 23014cb4-73ba-4582-a94b-b0f4e0bea264@Spark Content-Type: multipart/alternative; boundary="5e8003ff_3f8b0cbf_6dce" X-ClientProxiedBy: HK2PR02CA0168.apcprd02.prod.outlook.com (2603:1096:201:1f::28) To PS1PR03MB3606.apcprd03.prod.outlook.com (2603:1096:803:4e::17) X-Microsoft-Original-Message-ID: <23014cb4-73ba-4582-a94b-b0f4e0bea264@Spark> MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 Received: from [192.168.1.150] (1.196.186.57) by HK2PR02CA0168.apcprd02.prod.outlook.com (2603:1096:201:1f::28) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2856.20 via Frontend Transport; Sun, 29 Mar 2020 02:12:19 +0000 X-Readdle-Message-ID: 23014cb4-73ba-4582-a94b-b0f4e0bea264@Spark X-Microsoft-Original-Message-ID: <23014cb4-73ba-4582-a94b-b0f4e0bea264@Spark> X-TMN: [cIcxX31AhizpNvcWAUvVq9P4G1z8Dlco] X-MS-PublicTrafficType: Email X-IncomingHeaderCount: 49 X-EOPAttributedMessage: 0 X-MS-Office365-Filtering-Correlation-Id: 3d0e7040-6804-431c-5833-08d7d3869ca2 X-MS-TrafficTypeDiagnostic: PU1APC01HT028: X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: hM5/IXERRwuEKYSdFRpMUwTdGYPh5yllUyaCrNSR+UXAIgo8jHBD9VL0JG1WjkphN+dka3JPtIkdOh5ELHsMC7O2gOWSZ29+m/rrcujGbL3ZMqQccgQ7sAD36n0l7xv3vUYz/QZ9KJem95AkYsmabBzJ3EwMDUrEGnl5Q9qu/tnd6kqJSfXIdlCRkBF8jTtP X-MS-Exchange-AntiSpam-MessageData: yeHvFbvzIq3Hg9jZlhGY+N69pPXJCZOWnmj1K8mCqihUJh3JDRoi88kkmj4+lhCHPqSAxLR2XWV7F9cHLmjtXR3+jvMPwPgp5Xo8nYpkhdLeMiZOoHUmxeCWjI4NNO4XDZtFZoAK3zA46bdvxGMDfQ== X-OriginatorOrg: outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 3d0e7040-6804-431c-5833-08d7d3869ca2 X-MS-Exchange-CrossTenant-OriginalArrivalTime: 29 Mar 2020 02:12:20.5916 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 84df9e7f-e9f6-40af-b435-aaaaaaaaaaaa X-MS-Exchange-CrossTenant-FromEntityHeader: Internet X-MS-Exchange-CrossTenant-RMS-PersistedConsumerOrg: 00000000-0000-0000-0000-000000000000 X-MS-Exchange-Transport-CrossTenantHeadersStamped: PU1APC01HT028 X-Spam-Score: 1.0 (+) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 29 Mar 2020 02:12:31 -0000 --5e8003ff_3f8b0cbf_6dce Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline =E5=9C=A8 2020=E5=B9=B43=E6=9C=8826=E6=97=A5 +0800 PM10:44=EF=BC=8CEli Za= retskii =EF=BC=8C=E5=86=99=E9=81=93=EF=BC=9A > > Date: Thu, 26 Mar 2020 21:37:39 +0800 > > =46rom: HaiJun Zhang > > Cc: michael.albinus=40gmx.de, 38807=40debbugs.gnu.org, yyoncho=40gmai= l.com > > > > I'm not sure I understand the response. Let me repeat the question: > > while the module thread parses JSON, will the main thread wait for it= , > > or will it do something else=3F Can you describe how this would work > > using some use case where lsp-mode is used, like for completing on > > program symbols=3F > > > > 1 After user inputs a char, lsp-mode call the module api to setup a c= ompletion task. The task has a task id. > > The lsp-mode saves the task id as the current task and bind a callbac= k function to it. It then returns. > > 2 The module create a task and adds it to its task queue. > > 3 The worker thread in the module fetches the task from task queue an= d executes it. It builds the json-rpc > > request and sends it to the lsp server. And then it waits for the rep= ly from the lsp server. > > 4 The worker receives the reply from lsp server. It parses the json m= essage and builds the completion > > result to a list(in lisp). > > 5 The worker thread posts a message to emacs. The message includes th= e task id and the completion > > result. > > 6 Emacs receives the message and dispatches it to lsp-mode (by callin= g a function in lsp-mode). The > > function checks that it is the result of the completion ask and call = the task callback function which will > > popups a menu to display the completion items. > > If the above describes what happens when the user requests completion, > then I deduce that the user waits for the entire process you described > to finish, because the user cannot continue without seeing the > completion candidates, and those are only available after item 6 above > is done. > It doesn=E2=80=99t need to wait. When it needs completion, it setup a tas= k with a task id. If the completion result doesn=E2=80=99t arrive before = user input next char. It doesn=E2=80=99t display completion menu. And aft= er user input another =C2=A0char it setup another task with a new task id= and the old task id is retired now.=C2=A0Then if the completion result f= or the old task arrives, it just discards it. It only displays completion= menu when the completion result for the current valid task arrives. Or when lsp add a new completion task to module, the module will know tha= t the old task is cancelled. And it will not send the old completion resu= lt to emacs. This will save more power. > Since the user waits for this job to finish anyway, why does it help > to run some of this processing in a separate thread=3F > > > It will be good if module thread can post message to lisp thread. It = will be > > better if module thread can send lisp data within the message to lisp= thread. > > > > Posting messages is possible by writing to a pipe. But I don't think > > I understand what you mean by =22send Lisp data=22 -- how (in what fo= rm) > > can Lisp data be sent=3F > > > > It can be the above completion list, a point to a lisp object which c= an be passed to emacs to for lsp-mode to > > use. > > A Lisp object that is not stored in the data structures maintained by > alloc.c is not really a Lisp object that has a meaning for Emacs, I > think. > It will be great if emacs support this. > > My understanding is that pdumper can serialize and deserialize lisp d= ata. Maybe we can prepare > > data with its > > format and let it deserialize them. > > > > But we already do that: the libjansson library =22serializes=22 the d= ata, > > and we then deserialize it in Emacs as we get the data from the > > library. That deserialization is what takes the time you are trying > > to make shorter. > > > > Before lsp-mode, I used completion tools like irony-mode for c/c++ an= d gocode for golang. They work very > > smoothly. > > > > Now I have used lsp-mode with emacs-27 or emacs master for several we= eks. It doesn=E2=80=99t work as smoothly > > as the above tools. It lags. > > > > I added some debug messages to lsp-mode and see that there are too ma= ny(about 10=7E30) json messages > > arrived after I input every char. Emacs has to parse and process all = of them on every key pressing. > > > > =46or the old completion tools, there are only one or two json messag= es arrived on every key pressing. > > > > Maybe it is the problem of the lsp server. But it is hard to modify t= hem. > > I don't think I understand how this is related to the serialization > issue and the pdumper. Because the most of the above json messages is empty diagnostic messages.= I think lsp-mode will do nothing with them except parsing them. I need p= rofiling it. Many people says that lsp in vim works smoothly. I don=E2=80=99t know if = it supports same features with lsp in emacs. I will try it and compare th= em. --5e8003ff_3f8b0cbf_6dce Content-Type: text/html; charset="utf-8" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline
=E5=9C=A8 2020=E5=B9=B43=E6=9C=8826=E6=97= =A5 +0800 PM10:44=EF=BC=8CEli Zaretskii <eliz@gnu.org>=EF=BC=8C= =E5=86=99=E9=81=93=EF=BC=9A
Date: Thu, 26 Mar 2020= 21:37:39 +0800
From: HaiJun Zhang <netjune@outlook.com>
Cc: michael.albinus@gmx.de, 38807@debbugs.gnu.org, yyoncho@gmail.com

I'm not sure I understand the response. Let me repeat the question:
while the module thread parses JSON, will the main thread wait for it,
or will it do something else? Can you describe how this would work
using some use case where lsp-mode is used, like for completing on
program symbols?

1 After user inputs a char, lsp-mode call the module api to setup a complet= ion task. The task has a task id.
The lsp-mode saves the task id as the current task and bind a callback func= tion to it. It then returns.
2 The module create a task and adds it to its task queue.
3 The worker thread in the module fetches the task from task queue and exec= utes it. It builds the json-rpc
request and sends it to the lsp server. And then it waits for the reply fro= m the lsp server.
4 The worker receives the reply from lsp server. It parses the json message= and builds the completion
result to a list(in lisp).
5 The worker thread posts a message to emacs. The message includes the task= id and the completion
result.
6 Emacs receives the message and dispatches it to lsp-mode (by calling a fu= nction in lsp-mode). The
function checks that it is the result of the completion ask and call the ta= sk callback function which will
popups a menu to display the completion items.

If the above describes what happens when the user requests completion,
then I deduce that the user waits for the entire process you described
to finish, because the user cannot continue without seeing the
completion candidates, and those are only available after item 6 above
is done.


It doesn=E2=80=99t need to wait. When it needs completion= , it setup a task with a task id. If the completion result doesn=E2=80=99t = arrive before user input next char. It doesn=E2=80=99t display completion m= enu. And after user input another  char it setup another task with a n= ew task id and the old task id is retired now. Then if the com= pletion result for the old task arrives, it just discards it. It only displ= ays completion menu when the completion result for the current valid task a= rrives. 

Or when lsp add a new completion task to module, the module will know that = the old task is cancelled. And it will not send the old completion result t= o emacs. This will save more power.

Since the user waits f= or this job to finish anyway, why does it help
to run some of this processing in a separate thread?

It will be good if mod= ule thread can post message to lisp thread. It will be
better if module thread can send lisp data within the message to lisp threa= d.

Posting messages is possible by writing to a pipe. But I don't think
I understand what you mean by "send Lisp data" -- how (in what fo= rm)
can Lisp data be sent?

It can be the above completion list, a point to a lisp object which can be = passed to emacs to for lsp-mode to
use.

A Lisp object that is not stored in the data structures maintained by
alloc.c is not really a Lisp object that has a meaning for Emacs, I
think.


It will be great if emacs support this.

My understanding is th= at pdumper can serialize and deserialize lisp data. Maybe we can prepare data with its
format and let it deserialize them.

But we already do that: the libjansson library "serializes" the d= ata,
and we then deserialize it in Emacs as we get the data from the
library. That deserialization is what takes the time you are trying
to make shorter.

Before lsp-mode, I used completion tools like irony-mode for c/c++ = and gocode for golang. They work very
smoothly.

Now I have used lsp-mode with emacs-27 or emacs master for several weeks. I= t doesn=E2=80=99t work as smoothly
as the above tools. It lags.

I added some debug messages to lsp-mode and see that there are too many(abo= ut 10~30) json messages
arrived after I input every char. Emacs has to parse and process all of the= m on every key pressing.

For the old completion tools, there are only one or two json messages arriv= ed on every key pressing.

Maybe it is the problem of the lsp server. But it is hard to modify them.

I don't think I understand how this is related to the serialization
issue and the pdumper. 

Because the most of the above json messages is empty diag= nostic messages. I think lsp-mode will do nothing with them except parsing = them. I need profiling it.

Many people says that lsp in vim works smoothly. I don=E2= =80=99t know if it supports same features with lsp in emacs. I will try it = and compare them.

--5e8003ff_3f8b0cbf_6dce-- From unknown Wed Jul 30 13:11:05 2025 X-Loop: help-debbugs@gnu.org Subject: bug#38807: [Feature request]: Support lisp workers like web workers. Resent-From: HaiJun Zhang Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 30 Mar 2020 02:36:28 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 38807 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Eli Zaretskii , Ivan Yonchovski Cc: michael.albinus@gmx.de, 38807@debbugs.gnu.org Received: via spool by 38807-submit@debbugs.gnu.org id=B38807.158553573517423 (code B ref 38807); Mon, 30 Mar 2020 02:36:28 +0000 Received: (at 38807) by debbugs.gnu.org; 30 Mar 2020 02:35:35 +0000 Received: from mail-oln040092253015.outbound.protection.outlook.com ([40.92.253.15]:43776 helo=APC01-SG2-obe.outbound.protection.outlook.com) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jINtq-00087s-36 for 38807@debbugs.gnu.org; Sat, 28 Mar 2020 22:42:12 -0400 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=WUnG6jzdTivggs32Esld9QbFdcoqYGJlNo0c8OgMbF0hOqVe0rk+bm6QJUP8MIdc9qkHx+3HkW/6t1El/15Dvz7V1qhqW+LMRZmD6297YGQpd/51xX2LrINUWLktU7vIRphyINKP91+3J5Kr/LfPG43Zuy37bEydEMVFWmq9XmiYeDk+8FOfkolkUqwBuQuisho4aW7ZD6SzgQ080Bcv5n9UgEKXzQKfSOiejHL27yonbLUGa7I7g/UlIBb9OOdjxezCekLcpFCmNr5N0b7oPvY32ofaAgdrDw/vXY6AC19+vWGO1yytfSJm/XPkZd2WgRvbPXOMP2gOLuUf2DYMlA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=VYM0NvkK+IrPratg65s9eOxPi+LcTg/kwdVEMfHj0EI=; b=M75F+andNv+9kiQVxV7xjzFXfkAX8VFim6iFP6ANK9cAMPQI/9pZXQN8xCw0xCwz6LwL3Cl2QUHdxTqLZxOir221UGBZSCkXaW/O8Lk7Xk1lZRSvouRxS2XckE52J5ZgM2buWAasg89kmlDkjJfxBknpusY8XzduhoJ5GqMYZWKtUm568KAxMW04cppazbvs896gxkv+P8VhgBPD5ziZYaKIK25t+PLPyEsX02OM3s63IW2VzZexpUuZPY8S6XAeLz24OLLebRxt9hTAkgzsiWK5AQ4YqM83/BEBcpw4Y0ENucBPtf2Cm6oCQ/YZYLM0jYZOiz1LYigZhKB4j50+Ug== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=outlook.com; dmarc=pass action=none header.from=outlook.com; dkim=pass header.d=outlook.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=outlook.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=VYM0NvkK+IrPratg65s9eOxPi+LcTg/kwdVEMfHj0EI=; b=U2QZ0KOGJSmVyBPZi8MZf+wqRJoXO7/dWaLev6ZbcJ7sBmk2rfpd3jrPGqG/bK/wu23Is0qGjm5T6PwIYAoyjTSuP9BqvPuAmdIats5nrcrw42RfDRmq4F+muDlkQueAohQTfVPQEXsR0bcwJ2/o+eBkMR3BmRE7YmXoo2H7jTAZpDs0ICgxUyQocaCQ03HcjkPYT0EW0w2XhXD2wmUSQSwKuHysrILPMY1maDDQaFQca70pbYEqUXEE0PhY4H0Lra2SV94w2A/g4P3KYvFGgqEdg3l9/DZmQ0StHSkCtpUe69pf7v3YU7iqr/HjwvTSdC3kCIQCX8A4LGhtRzw6ow== Received: from PU1APC01FT050.eop-APC01.prod.protection.outlook.com (2a01:111:e400:7ebe::42) by PU1APC01HT079.eop-APC01.prod.protection.outlook.com (2a01:111:e400:7ebe::289) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2856.17; Sun, 29 Mar 2020 02:42:01 +0000 Received: from PS1PR03MB3606.apcprd03.prod.outlook.com (10.152.252.58) by PU1APC01FT050.mail.protection.outlook.com (10.152.253.77) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2856.17 via Frontend Transport; Sun, 29 Mar 2020 02:42:01 +0000 X-IncomingTopHeaderMarker: OriginalChecksum:63F94F2C4F5263F9BCCD72C277963734631A4D85C07D6A9325488AF35447571C; UpperCasedChecksum:8BB7BD438ED198C0E384DD4BB6952D43DA4819D54B275433E55055FE629D3D6A; SizeAsReceived:9870; Count:49 Received: from PS1PR03MB3606.apcprd03.prod.outlook.com ([fe80::85cb:c430:1173:7716]) by PS1PR03MB3606.apcprd03.prod.outlook.com ([fe80::85cb:c430:1173:7716%5]) with mapi id 15.20.2878.013; Sun, 29 Mar 2020 02:42:01 +0000 Date: Sun, 29 Mar 2020 10:41:51 +0800 From: HaiJun Zhang Message-ID: In-Reply-To: <87v9mrkmot.fsf@gmail.com> References: <83o8vpn8g1.fsf@gnu.org> <87mub9u0ld.fsf@gmx.de> <831rslmxih.fsf@gnu.org> <83lfqslafm.fsf@gnu.org> <83r20jjgg3.fsf@gnu.org> <83png1hyb8.fsf@gnu.org> <83imlrh9ze.fsf@gnu.org> <83d096dswz.fsf@gnu.org> <83lfnscvfi.fsf@gnu.org> <831rphbyuw.fsf@gnu.org> <837dz79nvh.fsf@gnu.org> <87v9mrkmot.fsf@gmail.com> X-Readdle-Message-ID: e8a54047-bd09-4762-bba4-296ff74cfda5@Spark Content-Type: multipart/alternative; boundary="5e800af4_4b683d0d_6dce" X-ClientProxiedBy: HK2PR02CA0129.apcprd02.prod.outlook.com (2603:1096:202:16::13) To PS1PR03MB3606.apcprd03.prod.outlook.com (2603:1096:803:4e::17) X-Microsoft-Original-Message-ID: MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 Received: from [192.168.1.150] (1.196.186.57) by HK2PR02CA0129.apcprd02.prod.outlook.com (2603:1096:202:16::13) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2856.18 via Frontend Transport; Sun, 29 Mar 2020 02:42:00 +0000 X-Readdle-Message-ID: e8a54047-bd09-4762-bba4-296ff74cfda5@Spark X-Microsoft-Original-Message-ID: X-TMN: [ZQexG7ysY+mmZT9DyY4qwFqIzrNEj3em] X-MS-PublicTrafficType: Email X-IncomingHeaderCount: 49 X-EOPAttributedMessage: 0 X-MS-Office365-Filtering-Correlation-Id: e226a4a0-91a6-4ca3-48b9-08d7d38ac25a X-MS-TrafficTypeDiagnostic: PU1APC01HT079: X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: 9eSU6WC51BXPcI4K1jnGyUMnv0vxi5C83hKAwyUMWMvfPgb8K0KR4UbSvWKBYXtH0aVIKlEWKei1CRzQZ7yMdykTN3LqbSNLdIrwZDR1/Z0xftP8q7Ao8QIU7MH4jFpDbTzRogRKdks3335Tk+em+pKIdVI3BvYoyZ9xfe2ovhamJGM8bBve/w+MTvm5AbYD X-MS-Exchange-AntiSpam-MessageData: ogXy8/QeTPwQMVNKLSVTUSG+5cD0MVafWh2KA1vPgPi1CUJF5EDkYoOybBMGlWfUQX8pxzE++I3GJHlcisloIuQb3vNIGdlEZthRiHuxnNpaoewYnmyQBhOboCXyT8b0XA/rS0UCbEQ4x4HYJXeQhQ== X-OriginatorOrg: outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: e226a4a0-91a6-4ca3-48b9-08d7d38ac25a X-MS-Exchange-CrossTenant-OriginalArrivalTime: 29 Mar 2020 02:42:01.8087 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 84df9e7f-e9f6-40af-b435-aaaaaaaaaaaa X-MS-Exchange-CrossTenant-FromEntityHeader: Internet X-MS-Exchange-CrossTenant-RMS-PersistedConsumerOrg: 00000000-0000-0000-0000-000000000000 X-MS-Exchange-Transport-CrossTenantHeadersStamped: PU1APC01HT079 X-Spam-Score: 0.0 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 29 Mar 2020 02:42:12 -0000 --5e800af4_4b683d0d_6dce Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline =E5=9C=A8 2020=E5=B9=B43=E6=9C=8827=E6=97=A5 +0800 AM2:15=EF=BC=8CIvan Yo= nchovski =EF=BC=8C=E5=86=99=E9=81=93=EF=BC=9A > > Eli Zaretskii writes: > > > Since the user waits for this job to finish anyway, why does it help > > to run some of this processing in a separate thread=3F > > The user might not want to wait for the completion but he/she might wan= t > to continue to type while the parsing is taking place. The effect is > that the typing feels slugish. IME with latest native json parsing this= > is no longer the case for lsp-mode. > > > With my limited understanding of emacs internals I see 2 potential > solutions to allow writing of =22lisp workers=22. > > 1. Start second(or multiple) elisp interpreter in the emacs process > which has thread local copy of all of the global data(buffers, data > allocation, etc). It may or may not have a gui attached to it. In > addition to that, introduce primitives for moving elisp datastructure > from the background thread to the main UI thread and vice versa > eventually by coping the original structure to avoid bugs. > I=E2=80=99d like not expose any global data to them. Even the data alloca= tion can be standalone. Then they pass lisp object by coping as you said.= > 2. Make the functions that create elisp datastructures threadsafe(or > some sane subset) and expose them to the dynamic modules. > > Thanks, > Ivan --5e800af4_4b683d0d_6dce Content-Type: text/html; charset="utf-8" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline
=E5=9C=A8 2020=E5=B9=B43=E6=9C=8827=E6=97= =A5 +0800 AM2:15=EF=BC=8CIvan Yonchovski <yyoncho@gmail.com>=EF= =BC=8C=E5=86=99=E9=81=93=EF=BC=9A

Eli Zaretskii writes:

Since the user waits f= or this job to finish anyway, why does it help
to run some of this processing in a separate thread?

The user might not want to wait for the completion but he/she might want to continue to type while the parsing is taking place. The effect is
that the typing feels slugish. IME with latest native json parsing this
is no longer the case for lsp-mode.


With my limited understanding of emacs internals I see 2 potential
solutions to allow writing of "lisp workers".

1. Start second(or multiple) elisp interpreter in the emacs process
which has thread local copy of all of the global data(buffers, data
allocation, etc). It may or may not have a gui attached to it. In
addition to that, introduce primitives for moving elisp datastructure
from the background thread to the main UI thread and vice versa
eventually by coping the original structure to avoid bugs.


I=E2=80=99d like not expose any global data to them. Even= the data allocation can be standalone. Then they pass lisp object by copin= g as you said.

2. Make the functions = that create elisp datastructures threadsafe(or
some sane subset) and expose them to the dynamic modules.

Thanks,
Ivan
--5e800af4_4b683d0d_6dce-- From unknown Wed Jul 30 13:11:05 2025 X-Loop: help-debbugs@gnu.org Subject: bug#38807: [Feature request]: Support lisp workers like web workers. Resent-From: Lars Ingebrigtsen Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 30 Apr 2022 12:33:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 38807 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: HaiJun Zhang Cc: 38807@debbugs.gnu.org Received: via spool by 38807-submit@debbugs.gnu.org id=B38807.16513219517582 (code B ref 38807); Sat, 30 Apr 2022 12:33:01 +0000 Received: (at 38807) by debbugs.gnu.org; 30 Apr 2022 12:32:31 +0000 Received: from localhost ([127.0.0.1]:56080 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nkmH1-0001y3-DN for submit@debbugs.gnu.org; Sat, 30 Apr 2022 08:32:31 -0400 Received: from quimby.gnus.org ([95.216.78.240]:47830) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nkmGz-0001sU-Ay for 38807@debbugs.gnu.org; Sat, 30 Apr 2022 08:32:29 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Content-Type:MIME-Version:Message-ID:In-Reply-To:Date: References:Subject:Cc:To:From:Sender:Reply-To: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=29tb0Ae4QESqsWCEmXBcp3q0kXvF84yLOpknfRTpdx0=; b=Qukm03BOluwOj8EqYxQJlryWFi HNf/9IuS6yGlr028125IyEFF2yp5duFHccNRd6gqM2pd7vj1pajllkaABbU4AgRg86QTgAhCzjXT5 0TZGEuJrn97pR8Qlo64/Mdc3N95QHMDMvi7HtjeHoOAJ/2J+EtAXTnnFGo3O+7EIJ5rk=; Received: from [84.212.220.105] (helo=xo) by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1nkmGq-0007tt-An; Sat, 30 Apr 2022 14:32:22 +0200 From: Lars Ingebrigtsen References: X-Now-Playing: New Order's _Technique_: "Run" Date: Sat, 30 Apr 2022 14:32:18 +0200 In-Reply-To: (HaiJun Zhang's message of "Mon, 30 Dec 2019 13:27:44 +0800") Message-ID: <87a6c23g6l.fsf@gnus.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see @@CONTACT_ADDRESS@@ for details. Content preview: HaiJun Zhang writes: > I think the web worker is a good design for GUI applications such as > web browser. The workers do heavy work and provide the results to the > UI thread. The UI thread only displays the result and r [...] Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-Spam-Score: -2.3 (--) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) HaiJun Zhang writes: > I think the web worker is a good design for GUI applications such as > web browser. The workers do heavy work and provide the results to the > UI thread. The UI thread only displays the result and responds to user > input events which makes good user responsiveness. (I'm going through old bug reports that unfortunately weren't resolved at the time.) I think it's an interesting idea, but it's pretty high level, I don't think there's anything actionable here as a bug report, so I'm closing it. (This sort of this is better suited for discussion on emacs-devel.) -- (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no From debbugs-submit-bounces@debbugs.gnu.org Sat Apr 30 08:32:37 2022 Received: (at control) by debbugs.gnu.org; 30 Apr 2022 12:32:37 +0000 Received: from localhost ([127.0.0.1]:56083 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nkmH6-00022L-ON for submit@debbugs.gnu.org; Sat, 30 Apr 2022 08:32:36 -0400 Received: from quimby.gnus.org ([95.216.78.240]:47844) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nkmH5-0001xE-5U for control@debbugs.gnu.org; Sat, 30 Apr 2022 08:32:35 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Subject:From:To:Message-Id:Date:Sender:Reply-To:Cc: MIME-Version:Content-Type:Content-Transfer-Encoding:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:In-Reply-To:References:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=5S+ZJGfdqsdkle7ePNjXbS05u03lT3L8+3Qy+gXzqFY=; b=XxI+Ld4zpUffawuqDvIJqHAw+a YdKmxhaTYPhgZ9RRg1iPVTZfZMOHxUv2K7AQPR0TOUkVfNf0sBB8f++5PZMYFv2khmKRaLEgZ2xzm mgNMsbivyCZ1lTWXlU8YpFtnlguh04j7UOFAn1KciXjfFk4iDJoqrVRqYfEXoGCKRxhY=; Received: from [84.212.220.105] (helo=xo) by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1nkmGx-0007uA-Dd for control@debbugs.gnu.org; Sat, 30 Apr 2022 14:32:29 +0200 Date: Sat, 30 Apr 2022 14:32:24 +0200 Message-Id: <878rrm3g6f.fsf@gnus.org> To: control@debbugs.gnu.org From: Lars Ingebrigtsen Subject: control message for bug #38807 X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see @@CONTACT_ADDRESS@@ for details. Content preview: close 38807 quit Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) close 38807 quit