From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.ciao.gmane.io!not-for-mail From: Andrea Corallo Newsgroups: gmane.emacs.devel Subject: Re: Questions about throw-on-input Date: Fri, 15 May 2020 18:00:29 +0000 Message-ID: References: <8920fe6a-8fe4-addd-c29e-2213850bf974@web.de> <83k11f7v4q.fsf@gnu.org> <4506133a-5e63-4ae7-9b5d-830359e8b673@default> <65A78ACE-1A1E-4D45-B565-5D5788B8BB20@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="ciao.gmane.io:159.69.161.202"; logging-data="9023"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.3 (gnu/linux) Cc: Yuan Fu , Richard Stallman , emacs-devel , p.stephani2@gmail.com, yyoncho@gmail.com, Arthur Miller , alexanderm@web.de, Eli Zaretskii , Drew Adams To: Stefan Monnier Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Fri May 15 20:01:45 2020 Return-path: Envelope-to: ged-emacs-devel@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1jZeeU-00029i-M4 for ged-emacs-devel@m.gmane-mx.org; Fri, 15 May 2020 20:01:42 +0200 Original-Received: from localhost ([::1]:46628 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jZeeT-000451-HI for ged-emacs-devel@m.gmane-mx.org; Fri, 15 May 2020 14:01:41 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:49268) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jZedS-00038w-Qb for emacs-devel@gnu.org; Fri, 15 May 2020 14:00:38 -0400 Original-Received: from mx.sdf.org ([205.166.94.20]:64107) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jZedR-0001hB-K0; Fri, 15 May 2020 14:00:38 -0400 Original-Received: from sdf.org (ma.sdf.org [205.166.94.33]) by mx.sdf.org (8.15.2/8.14.5) with ESMTPS id 04FI0T0i027468 (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256 bits) verified NO); Fri, 15 May 2020 18:00:29 GMT Original-Received: (from akrl@localhost) by sdf.org (8.15.2/8.12.8/Submit) id 04FI0TlT006379; Fri, 15 May 2020 18:00:29 GMT In-Reply-To: (Stefan Monnier's message of "Fri, 15 May 2020 13:31:35 -0400") Received-SPF: pass client-ip=205.166.94.20; envelope-from=akrl@sdf.org; helo=mx.sdf.org X-detected-operating-system: by eggs.gnu.org: First seen = 2020/05/15 12:49:20 X-ACL-Warn: Detected OS = ??? X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, RCVD_IN_DNSWL_NONE=-0.0001, SPF_PASS=-0.001, URIBL_BLOCKED=0.001 autolearn=_AUTOLEARN X-Spam_action: no action X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.io gmane.emacs.devel:250409 Archived-At: Stefan Monnier writes: >> Do we have to share data between threads? A thread doesn=E2=80=99t share= any data >> can still be useful, speeding up some computations. For example, generat= ing >> completion candidates, providing async completion. > > If you don't need to share anything, than `async.el` does the trick. > But in most cases, in order to be able to show completion candidates, > you need to get access to some data. What about having a quick de/serializer we can use to serialize and send data to another process or thread? This could perform the requested job and give back the data using this same binary format. The pdumper would be the first candidate to look at to be generalized for this purpose. We would probably need also some specific way to limit the deepness of the copy in certain cases, this not to end-up serializing the whole heap. Andrea -- akrl@sdf.org