From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Pip Cet Newsgroups: gmane.emacs.devel Subject: Re: [PATCH] * src/eval.c: Stop checking for nvars, and use only CONSP Date: Tue, 2 Mar 2021 17:04:28 +0000 Message-ID: References: <20210302.111043.609653289571449353.conao3@gmail.com> <20210302.120929.1656994339284323372.conao3@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="7119"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Naoya Yamashita , emacs-devel@gnu.org To: Stefan Monnier Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Tue Mar 02 18:08:50 2021 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 1lH8Vt-0001j7-Pu for ged-emacs-devel@m.gmane-mx.org; Tue, 02 Mar 2021 18:08:49 +0100 Original-Received: from localhost ([::1]:32874 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lH8Vs-0001lD-PE for ged-emacs-devel@m.gmane-mx.org; Tue, 02 Mar 2021 12:08:48 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:45922) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lH8SP-0005eF-4n for emacs-devel@gnu.org; Tue, 02 Mar 2021 12:05:14 -0500 Original-Received: from mail-oo1-xc30.google.com ([2607:f8b0:4864:20::c30]:44695) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lH8SJ-0006zI-L7 for emacs-devel@gnu.org; Tue, 02 Mar 2021 12:05:09 -0500 Original-Received: by mail-oo1-xc30.google.com with SMTP id n19so4952312ooj.11 for ; Tue, 02 Mar 2021 09:05:07 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=pCJoAiOG089aLw1BGQIUkVK5WOO0Wa96sMM7WgGRcxs=; b=H3dlS8CBrH3vq0/EjIIXiPrrgSxTooZarJu/FSrjEWfzPrd/7xOe+X8XX6mLWpjcAn sfGVzUXLF3CdGtJXxGSsFp6GBHwW/38DM7D6OdDiPKyPwfTL/xMWz8svjHkUuqc00vDt FjMvuzD7y5lDwwJ0eGYnYnXZ0r+iQT8fYbf7dkFz0KkHaTyuHjDwv0ZFdu0WAxqo0dEV MCXKXAiZYFVKKsDa9SHsmkV0Kfoqn08Th2dBLfzRsl+SPjbwS3sGsW2Cuc1y5QlFcg6B XBl2qbKTmnxqRTYuiaP5cuk/GXYRAsFnNmJxzcgKhLBz+ZVsdBH7/nVl0Y3stcJSkyO2 tLfQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=pCJoAiOG089aLw1BGQIUkVK5WOO0Wa96sMM7WgGRcxs=; b=EsaHdxhHaFMxd94EAUvTBgOlXtfnPV3vU9/HX7epyGRhMjC/rlk1w/bkieZ0yuHczU s6L8YWvLIbPuQGtRe7hUV53OiTPFRuZRKzUf4AWPskBfy7wydjChCdqzijjJ264Mq+O9 RtbQvJ2W74MnpjaKlympFpNi2Mk7IIv4ShoKgZ4le1tYHr+gCg93HReJPTvTHZcvTYb/ 1RPCuF6jS0OJztIhuNV4TncXC6vRZmnMzQCpRSiZTA60OrzJJMSyZody0tNcjw1bH4qb TVXxK3JShj1JCrUHprxXHmFNmANZSjZG/Cjs1rm3ARpYBchFlWs0get2c5pTYCNUmvvO acyg== X-Gm-Message-State: AOAM533QU4DhhbSJzvwrRKxeK49gdZme39irP1c6b0Td19bw2JhxrPdF yPKTyCfLoYOSPMteVo1GBvQwXRzDkJPqVusiS0g= X-Google-Smtp-Source: ABdhPJyngS5nPl174m29giTS3Kun7kZ8727wHurv3qP+Lv1se+mUXRYiU9pJ2HlloC/TqBX+5V2TYpkMpYW1afn6cD4= X-Received: by 2002:a4a:d781:: with SMTP id c1mr7751003oou.44.1614704706216; Tue, 02 Mar 2021 09:05:06 -0800 (PST) In-Reply-To: Received-SPF: pass client-ip=2607:f8b0:4864:20::c30; envelope-from=pipcet@gmail.com; helo=mail-oo1-xc30.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.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:265840 Archived-At: On Tue, Mar 2, 2021 at 3:48 PM Stefan Monnier wrote: > > I'm all for a revolution, but it might be a bit early to chop off this > > particular king's head... > Until we have good debugging support for byte-compiled code, the > interpreter isn't going anywhere, indeed. We could rewrite it in ELisp, though :-) > But error reporting from the interpreter is very secondary because in my > view that interpreter should only be used for bootstrap and for > debugging, so all the code it executes should *also* be byte-compiled > (so we can rely on the byte-compiler for error reporting). Agreed. But having to choose between compile-time error reporting and run-time debugging can be very inconvenient, and now we're about to add the third choice of "debug the natively-compiled code in gdb", everything's going to get even more confusing... > >> (defun eval (exp) (funcall (byte-compile `(lambda () ,exp)))) > > Except for the ones that can't. ELC is still limited to 64K constants > > in the vector, for example, isn't it? > > I believe so, yes. If/when we bump into this limit we can push it > further (or finally replace our bytecode language with a new one ;-). I hear the hot new thing is to use leb128 integers for everything. > > But as for the original question, do we have to have Flet? > > I have not seen this question asked in this thread. The question was "can we remove this code from Flet?", right? I think "yes, all of it. No, all of Flet." is a valid answer to that question :-) (I dislike the "let" family, mostly for the fact that it is a family. It leads naturally to cl-loop.) Pip