From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Richard Stallman Newsgroups: gmane.emacs.devel Subject: Re: continuation passing in Emacs vs. JUST-THIS-ONE Date: Mon, 13 Mar 2023 23:58:54 -0400 Message-ID: References: <627090382.312345.1678539189382@office.mailbox.org> Reply-To: rms@gnu.org Content-Type: text/plain; charset=Utf-8 Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="17688"; mail-complaints-to="usenet@ciao.gmane.io" Cc: emacs-devel@gnu.org To: Thomas Koch Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Tue Mar 14 04:59:34 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 1pbvoz-0004Qz-VJ for ged-emacs-devel@m.gmane-mx.org; Tue, 14 Mar 2023 04:59:34 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pbvoO-0002hx-Ti; Mon, 13 Mar 2023 23:58:56 -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 1pbvoN-0002ho-PL for emacs-devel@gnu.org; Mon, 13 Mar 2023 23:58:55 -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 1pbvoM-0007w3-LQ; Mon, 13 Mar 2023 23:58:54 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=Date:References:Subject:In-Reply-To:To:From: mime-version; bh=RlUCMCnz8rDSAyEtjfYlWEg9luoOOi7To2mRQf9Y7u4=; b=IfmAmmD33NYp yopdaFRmm9gPnPVIeXlaeD+6tTk8Q7DwggWUTZgFqaRHWnMvZAMEhM6EDkQ+IW7zhgbZAG+B1EFXY 7E7KKlWxEKZpLCW7sKthWPvj93UofV713w+wU/CNeXrWEFXzCEAZy2iUQ3NA9DjR3gGCYsYmnemj6 T8RTlR/BnwblmNiJ+k7ufsCiI4ZqoU3uySakLttBhee+dmPfaMISTGXn39Mb4GOVoV0IAGJq6q8kl i7luyXXefN+5J6Uk4e7fxwAwgQKsmzns3g1l6d1ulMz54rOM7ArhSiMZ2looySihZnzoRe2GcoegD FGrUl/PdGBpIOyUL+1EGbQ==; Original-Received: from rms by fencepost.gnu.org with local (Exim 4.90_1) (envelope-from ) id 1pbvoM-0005Ig-AR; Mon, 13 Mar 2023 23:58:54 -0400 In-Reply-To: <627090382.312345.1678539189382@office.mailbox.org> (message from Thomas Koch on Sat, 11 Mar 2023 14:53:09 +0200 (EET)) 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:304421 Archived-At: [[[ To any NSA and FBI agents reading my email: please consider ]]] [[[ whether defending the US Constitution against all enemies, ]]] [[[ foreign or domestic, requires you to follow Snowden's example. ]]] > TL;DR: (Why) is there no standard way for continuation passing > style[1] ("event driven") programming in Emacs? I implemented Emacs Lisp using simple, natural C data structures including the C call stack. This does not lend itself to implementing continuations. To change that would be enormous trouble, and i expect it would cause a big slowdown too. In my opinion, continuation-passing style is not worth that downside. -- Dr Richard Stallman (https://stallman.org) Chief GNUisance of the GNU Project (https://gnu.org) Founder, Free Software Foundation (https://fsf.org) Internet Hall-of-Famer (https://internethalloffame.org)