From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Karthik Chikmagalur Newsgroups: gmane.emacs.devel Subject: Re: continuation passing in Emacs vs. JUST-THIS-ONE Date: Mon, 13 Mar 2023 23:39:43 -0700 Message-ID: <87sfe7suog.fsf@gmail.com> References: <627090382.312345.1678539189382@office.mailbox.org> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="26419"; mail-complaints-to="usenet@ciao.gmane.io" To: Jim Porter , Thomas Koch , "emacs-devel@gnu.org" Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Tue Mar 14 07:40:26 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 1pbyKf-0006fo-T8 for ged-emacs-devel@m.gmane-mx.org; Tue, 14 Mar 2023 07:40:25 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pbyK6-0006Gg-TT; Tue, 14 Mar 2023 02:39:50 -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 1pbyK4-0006GN-A2 for emacs-devel@gnu.org; Tue, 14 Mar 2023 02:39:48 -0400 Original-Received: from mail-pj1-x102a.google.com ([2607:f8b0:4864:20::102a]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1pbyK2-00026p-Q1 for emacs-devel@gnu.org; Tue, 14 Mar 2023 02:39:48 -0400 Original-Received: by mail-pj1-x102a.google.com with SMTP id p13-20020a17090a284d00b0023d2e945aebso511997pjf.0 for ; Mon, 13 Mar 2023 23:39:46 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; t=1678775985; h=mime-version:message-id:date:references:in-reply-to:subject:to:from :from:to:cc:subject:date:message-id:reply-to; bh=5yTgzaD7fxl3Qvp7gIH8qGJsVHKXv6mNYyqsc64H+ao=; b=dDf7GTzv/EWhVrYVidvcUXNbc5M8X0tVWxeSzobl91n7Kzunp5ZMUrlpECcB0E4fPz D/u6rpcwCAeZo4NJMdma4vhTFuyTJa6z+mhFzfJMpBNw4sbMpELdUp2iWoTpAyVIHt8y nq9Ke0ijM59zSyj832Gf3BGh6JJY60GWMRQgv4Kk+WXcjWb7pRhg9udIGS8xRmQdoz7+ mrWqdnM/1db0330uxEyVaiK+50Sp+izQfXNPvOH9N8c3NyPwgK1sw7ZPfgvAmvhOjt2c Ar+JdA9z7xDuK75h7HmRcisL5ChQGQYSK6agbNWJPSo0d3j9eSbLTT3LL3aFQG7d10rj OTXQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1678775985; h=mime-version:message-id:date:references:in-reply-to:subject:to:from :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=5yTgzaD7fxl3Qvp7gIH8qGJsVHKXv6mNYyqsc64H+ao=; b=2vSnhh6S644ffGkMRuNBk5QbekoyVZNCGaucrij90s9fN73ovpn/9cBgqCXuY539pA 6MDOhvtc8HQeASdru+cO+lYFhNI+K+fVP2YM9mRV5LdRvVArbXSIR3ws6Ocy1bGkD57o 9TGBko7qW5VbuytKQ0J670q39/BfM35qvKQxpkYDTd+mrqyO9obCx3V3uhWNGOEkQafS Zv42D9KmoT1UOV6mehjOdUYCTqueEWqKvSr2Z9rlVUKtcmwP0l/X8wRaD8mq5eip8Ugf SEJYm8AhlbtFbkN/pHK7EmLPvDNkusyOtJNzVwT+WPqHO/T5PIdrIYlbGLw9JIkWdOKW Mfzw== X-Gm-Message-State: AO0yUKUE7QgxzMiPAAvxaXjC0zYG/j7d+CmJ189QYAQxK+9NfPu8FVn3 vdP9sALR0CHAigjXaqy/EIc= X-Google-Smtp-Source: AK7set8JTQDDH6obm6wZQU/KSySqaiQeLwD81z+lhfavlX6APmb3SDQDvDioX2VyT+/1tl6Ag9QXxQ== X-Received: by 2002:a17:903:1d1:b0:19e:608d:6844 with SMTP id e17-20020a17090301d100b0019e608d6844mr48327518plh.10.1678775984972; Mon, 13 Mar 2023 23:39:44 -0700 (PDT) Original-Received: from localhost ([2600:8802:5722:9400::8b18]) by smtp.gmail.com with ESMTPSA id p11-20020a1709026b8b00b001a042f532cfsm938106plk.27.2023.03.13.23.39.44 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 13 Mar 2023 23:39:44 -0700 (PDT) In-Reply-To: Received-SPF: pass client-ip=2607:f8b0:4864:20::102a; envelope-from=karthikchikmagalur@gmail.com; helo=mail-pj1-x102a.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.devel:304424 Archived-At: One of the issues I've faced with using generator.el and its offshoots, such as the emacs-aio library (written by Chris Wellons), is that I can't run `debug-on-entry' on or edebug an `iter-defun'. This makes it difficult for me to write iterator-based logic for anything non-trivial. Is there some way to step through calls to iterators? > It would probably be reasonable to add a more asynchronous-oriented way > of working with generator.el's CPS machinery, but I think the bigger > problem is just the time to fix existing code that's not doing the right > thing. What needs to be fixed in generator.el for this?