From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Tom Tromey Newsgroups: gmane.emacs.devel Subject: Re: [RFC] caar/cadr/cdar/cddr Date: Thu, 12 Jul 2012 10:53:03 -0600 Message-ID: <877gu8diq8.fsf@fleche.redhat.com> References: <4FFEFA98.3060509@yandex.ru> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: dough.gmane.org 1342111990 7237 80.91.229.3 (12 Jul 2012 16:53:10 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Thu, 12 Jul 2012 16:53:10 +0000 (UTC) Cc: Emacs development discussions To: Dmitry Antipov Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Jul 12 18:53:10 2012 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1SpMdZ-0007S0-Lv for ged-emacs-devel@m.gmane.org; Thu, 12 Jul 2012 18:53:09 +0200 Original-Received: from localhost ([::1]:59915 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SpMdZ-0005nb-2g for ged-emacs-devel@m.gmane.org; Thu, 12 Jul 2012 12:53:09 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:49727) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SpMdW-0005nO-LW for emacs-devel@gnu.org; Thu, 12 Jul 2012 12:53:07 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SpMdV-0007Fd-K3 for emacs-devel@gnu.org; Thu, 12 Jul 2012 12:53:06 -0400 Original-Received: from mx1.redhat.com ([209.132.183.28]:38552) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SpMdV-0007FP-BU for emacs-devel@gnu.org; Thu, 12 Jul 2012 12:53:05 -0400 Original-Received: from int-mx02.intmail.prod.int.phx2.redhat.com (int-mx02.intmail.prod.int.phx2.redhat.com [10.5.11.12]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id q6CGr4sQ014840 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Thu, 12 Jul 2012 12:53:04 -0400 Original-Received: from barimba (ovpn01.gateway.prod.ext.phx2.redhat.com [10.5.9.1]) by int-mx02.intmail.prod.int.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id q6CGr3JB027205 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES128-SHA bits=128 verify=NO); Thu, 12 Jul 2012 12:53:04 -0400 X-Attribution: Tom In-Reply-To: <4FFEFA98.3060509@yandex.ru> (Dmitry Antipov's message of "Thu, 12 Jul 2012 20:26:00 +0400") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.1 (gnu/linux) X-Scanned-By: MIMEDefang 2.67 on 10.5.11.12 X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 209.132.183.28 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 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-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:151562 Archived-At: >>>>> "Dmitry" == Dmitry Antipov writes: Dmitry> These are widely used, so why not doing them as C primitives and Dmitry> corresponding bytecodes? It shouldn't be too hard to tweak Dmitry> byte-opt.el to optimize (car (cdr X)) -> (cadr X) etc., and so Dmitry> emit new bytecodes. One other thing worth noting -- if we used vmgen, we could get "superinstructions" like this for free, without needing to dedicate special byte codes to them. Tom