From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Helmut Eller Newsgroups: gmane.emacs.devel Subject: Re: Keyword args Date: Tue, 14 Dec 2010 08:43:49 +0100 Message-ID: References: <87mxojwu15.fsf@uwakimon.sk.tsukuba.ac.jp> <87k4jnweng.fsf@uwakimon.sk.tsukuba.ac.jp> <87d3pdwt1x.fsf@uwakimon.sk.tsukuba.ac.jp> <87bp4x37ey.fsf@lola.goethe.zz> <874oapwnon.fsf@uwakimon.sk.tsukuba.ac.jp> <4D01D9D8.5040400@gmail.com> <4D0580A6.7090307@gmail.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: dough.gmane.org 1292312685 23880 80.91.229.12 (14 Dec 2010 07:44:45 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Tue, 14 Dec 2010 07:44:45 +0000 (UTC) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Dec 14 08:44:41 2010 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1PSPYv-0001W7-AF for ged-emacs-devel@m.gmane.org; Tue, 14 Dec 2010 08:44:41 +0100 Original-Received: from localhost ([127.0.0.1]:57611 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PSPYu-00088B-JY for ged-emacs-devel@m.gmane.org; Tue, 14 Dec 2010 02:44:40 -0500 Original-Received: from [140.186.70.92] (port=38722 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PSPYN-00087v-Lg for emacs-devel@gnu.org; Tue, 14 Dec 2010 02:44:09 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PSPYM-0008Kw-R7 for emacs-devel@gnu.org; Tue, 14 Dec 2010 02:44:07 -0500 Original-Received: from lo.gmane.org ([80.91.229.12]:54356) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PSPYM-0008KM-LZ for emacs-devel@gnu.org; Tue, 14 Dec 2010 02:44:06 -0500 Original-Received: from list by lo.gmane.org with local (Exim 4.69) (envelope-from ) id 1PSPYG-0001Ex-B2 for emacs-devel@gnu.org; Tue, 14 Dec 2010 08:44:00 +0100 Original-Received: from 212.46.178.31 ([212.46.178.31]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 14 Dec 2010 08:44:00 +0100 Original-Received: from eller.helmut by 212.46.178.31 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 14 Dec 2010 08:44:00 +0100 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 16 Original-X-Complaints-To: usenet@dough.gmane.org X-Gmane-NNTP-Posting-Host: 212.46.178.31 User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux) Cancel-Lock: sha1:ePUWTVM5Ss2Dd1QVyMfzLNsD+2M= X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:133677 Archived-At: * Miles Bader [2010-12-14 05:03] writes: > Another perhaps-useful concept is alternate function entry points for an > "already handled" argument form (my vague memory is that CMUCL does > this). In many cases the compiler could then do argument parsing at > compile time and generate a call to the "simple" entry point. CMUCL does compile-time keyword parsing only for the local-call convention, i.e. if the callee is known and doesn't change. It's not done for a normal call to a named global function; that uses the generic slow entry point. If all call-sites were known (say recorded in a linkage table) and could be patched on redefintion a more direct entry point could be used more often, but CMUCL doesn't do that. So, I think compile-time keyword parsing is rarely done in practice. Helmut