From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.devel Subject: Re: continuation passing in Emacs vs. JUST-THIS-ONE Date: Wed, 12 Apr 2023 09:13:02 +0300 Message-ID: <83jzyh8w7l.fsf@gnu.org> References: <87leizif4r.fsf@logand.com> <874jpmfaw9.fsf@logand.com> <87v8i2dnm3.fsf@logand.com> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="24098"; mail-complaints-to="usenet@ciao.gmane.io" Cc: monnier@iro.umontreal.ca, jporterbugs@gmail.com, karthikchikmagalur@gmail.com, emacs-devel@gnu.org To: Tomas Hlavaty Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Wed Apr 12 08:13:09 2023 Return-path: Envelope-to: ged-emacs-devel@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1pmTjA-00064C-Mp for ged-emacs-devel@m.gmane-mx.org; Wed, 12 Apr 2023 08:13:08 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pmTiO-0003N8-Jg; Wed, 12 Apr 2023 02:12:20 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pmTiN-0003Ma-EB for emacs-devel@gnu.org; Wed, 12 Apr 2023 02:12:19 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pmTiN-0005jX-38; Wed, 12 Apr 2023 02:12:19 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=3KKF6x2111Lbj9/EW+MpnA/GdfA36n2VflmZ3u/XCx0=; b=LWin4SjwynHO XLgpELtpct5qCfIkygbpYwnvldl4nmMlzTlfsib/T0Fa/ruRiM62XsTYrcz1IlEA4a4c64b1mb4fQ oE7SWwcm4lO2m7seKO13mfThdpnH2bLElFCHnu5GY9cgH0SrZ4j63ZepZ+eZoeIkdAKMMPuDmQ3fq 9o5R2Y0GcBj383mnUUPT2JcMmtqiaRpftdnPrdFexAz+G/reDqN8pSexSeB3G1gbqRbXHrF3eAstS /U/2ICExvSWZXshxs0FQbXejpZTMbiGBM+pkC5c9AxZF/JmhPfirEm8jbcz4fV6HmzFnoSdJo3asw OOUS0Rc7cSuvwbiPoEEYLQ==; Original-Received: from [87.69.77.57] (helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pmTiM-0005Y9-K2; Wed, 12 Apr 2023 02:12:18 -0400 In-Reply-To: <87v8i2dnm3.fsf@logand.com> (message from Tomas Hlavaty on Wed, 12 Apr 2023 01:07:32 +0200) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.devel:305259 Archived-At: > From: Tomas Hlavaty > Cc: Jim Porter , > Karthik Chikmagalur , > "emacs-devel@gnu.org" > Date: Wed, 12 Apr 2023 01:07:32 +0200 > > Strange that futur.el is "primarily concerned with making it easier to > write asynchronous code" but limits itself to asynchronous processes > only. Async subprocesses are currently the only feature in Emacs that provides an opportunity for writing asynchronous code. > I do not know how useable threads in Emacs are at the moment, > but they are already there and the examples I tried worked well. If you think Lisp threads in Emacs allow asynchronous processing, you are mistaken: they don't. Only one such thread can be running at any given time. Whereas with async subprocesses, several such subprocesses could be running at the same time each one doing its own job (provided that your CPU has more than a single execution unit).