From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Mark Oteiza Newsgroups: gmane.emacs.devel Subject: Re: master fffd4ff: ; etc/TODO: Remove 'switch' item, as it is now implemented. Date: Mon, 13 Feb 2017 18:10:12 -0500 Message-ID: <87k28tsn57.fsf@holos> References: <20170213172606.5097.68821@vcs0.savannah.gnu.org> <20170213172606.E451B232B9@vcs0.savannah.gnu.org> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: blaine.gmane.org 1487027465 19593 195.159.176.226 (13 Feb 2017 23:11:05 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Mon, 13 Feb 2017 23:11:05 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.0.50 (gnu/linux) Cc: Vibhav Pant To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Feb 14 00:11:01 2017 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cdPln-0004an-R3 for ged-emacs-devel@m.gmane.org; Tue, 14 Feb 2017 00:10:55 +0100 Original-Received: from localhost ([::1]:60033 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cdPlt-0005Zh-HH for ged-emacs-devel@m.gmane.org; Mon, 13 Feb 2017 18:11:01 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:48334) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cdPlG-0005Zb-2Y for emacs-devel@gnu.org; Mon, 13 Feb 2017 18:10:23 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cdPlB-0006pl-29 for emacs-devel@gnu.org; Mon, 13 Feb 2017 18:10:22 -0500 Original-Received: from mail-qk0-x22d.google.com ([2607:f8b0:400d:c09::22d]:36111) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1cdPlA-0006pY-TW for emacs-devel@gnu.org; Mon, 13 Feb 2017 18:10:16 -0500 Original-Received: by mail-qk0-x22d.google.com with SMTP id 11so108218030qkl.3 for ; Mon, 13 Feb 2017 15:10:15 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=udel-edu.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version; bh=NZbhj1Oy1BpfPAAMq1fFzcV2rLQ+PBzwKjX3UzKJvU0=; b=BuECSGED26E+Womn5DqRzSMlnyaZlN+vrvu4c3OumM0UjnE1TnPFqsVof2ADNrDw2W fd9TblsKwP13gKvAbnwu4Yk8Eq68Hu9SjEkNDKfZH6GY0/boJ0qvwdugx7C3gllYxnbs qm5u+iHDYmQ9eQ9rVPII7etNrcd8ertZGFdW5PE4ti+KcG387BIRp3cd1s28PBECOaSV XKtTf/XTbno++voPmuEgy13iPtXxRVf19SeHZG4TEO2SR/ZzqWpH60bG1MH8MDw9l7EX JOnKAHNNth4YeRDKla67mGAsgHsXkW97tfGS1UklNT71wBLZuvR2q9cNoJWfEGsLuK54 byOQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:references:date:in-reply-to :message-id:user-agent:mime-version; bh=NZbhj1Oy1BpfPAAMq1fFzcV2rLQ+PBzwKjX3UzKJvU0=; b=J/bzY8shePZ0VWdefSeYrCf6qTzz7bDRy9Hrp0sU/MwebGUgIgKQkwE0ML9YSW08iF XRyCTb7n1KXl1CxgslvO6wFxfpPNp9j3vPHeohSnKosdiwGHcb4BmwtCgfKRdqiGzmzI 8HUHjGLLZgdBillPTBI1G9+Rf/sXh8xHEUMEl+UHUnEN1l8uk768xgyxGSTTi/MhSV0u OzKBxkUn1yYgVVtu8UZHhE3oWTn4zGpImuISNtEX89allZo4JBYR1KA+acWjDky4xBnd EMEDSFvG5e9O22EDu5AgefTAwXiRpaB+kKokcADG5V08RSePmMOyhse2aYdf6xZ6KqI8 +JvA== X-Gm-Message-State: AMke39kbtdMr575uaQO//XrEEGosM+m5vgH6TtCGFqAM0KifGN2Ds2MtJrXyIRM9DHAfWrRy X-Received: by 10.55.138.196 with SMTP id m187mr24356144qkd.214.1487027414766; Mon, 13 Feb 2017 15:10:14 -0800 (PST) Original-Received: from holos.localdomain (pool-173-67-40-97.bltmmd.fios.verizon.net. [173.67.40.97]) by smtp.gmail.com with ESMTPSA id n75sm8423129qkl.26.2017.02.13.15.10.13 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 13 Feb 2017 15:10:13 -0800 (PST) Original-Received: by holos.localdomain (Postfix, from userid 1000) id 0F4FB69C6A; Mon, 13 Feb 2017 18:10:13 -0500 (EST) In-Reply-To: <20170213172606.E451B232B9@vcs0.savannah.gnu.org> (Vibhav Pant's message of "Mon, 13 Feb 2017 12:26:06 -0500 (EST)") X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2607:f8b0:400d:c09::22d X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.21 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.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.org gmane.emacs.devel:212355 Archived-At: vibhavp@gmail.com (Vibhav Pant) writes: > diff --git a/etc/TODO b/etc/TODO > index fc442f9..b102bdf 100644 > --- a/etc/TODO > +++ b/etc/TODO > @@ -35,20 +35,6 @@ Change src/bytecode.c so that calls from byte-code functions to byte-code > functions don't go through Ffuncall/funcall_lambda/exec_byte_code but instead > stay within exec_byte_code. > > -** Add new 'switch' byte-code > -This byte-code would take one argument from the stack (the object to test) > -and one argument from the constant-pool (a switch table, implemented as an > -'eq' hash table) and would jump to the "label" contained in the hash table. > - > -Then add a 'case' special-form that can be compiled to this byte-code. > -This would behave just like cl-case, but instead of expanding to cond+eq it > -would be its own special form and would be compiled specially. > - > -Then change pcase to use 'case' when applicable. > - > -Then change the byte-compiler to recognize (cond ((eq x 'foo) bar) ...) > -and turn it into a 'case' for more efficient execution. What about the second and third items?