From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: =?utf-8?B?7KGw7ISx67mI?= Newsgroups: gmane.emacs.help Subject: Re: Why is Elisp slow? Date: Tue, 7 May 2019 22:01:12 +0900 Message-ID: <798C9A13-7A2F-4C43-A5D9-6FDE00D647FC@icloud.com> References: <831BD780-F954-4E23-BF31-ED4E135C919B@icloud.com> <20190506125848.okei2qrib7m5p3vx@Ergus> <20190506161757.wg4wy3vr7emxnciv@Ergus> <443E6AB4-2478-4677-8A23-A0B04559E949@icloud.com> <84F2860D-523D-4F30-BD52-D6A915416167@icloud.com> <20190507104945.gfdrftaeztrzbkt6@Ergus> <44A389B2-9D9D-4C1F-B9E3-9859C77DAF70@icloud.com> Mime-Version: 1.0 (Mac OS X Mail 11.5 \(3445.9.1\)) Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="29169"; mail-complaints-to="usenet@blaine.gmane.org" Cc: Ergus , help-gnu-emacs@gnu.org To: Stefan Monnier Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Tue May 07 15:01:40 2019 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([209.51.188.17]) by blaine.gmane.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1hNzj2-0007Kf-GK for geh-help-gnu-emacs@m.gmane.org; Tue, 07 May 2019 15:01:40 +0200 Original-Received: from localhost ([127.0.0.1]:46552 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hNzj1-0004Hh-Dy for geh-help-gnu-emacs@m.gmane.org; Tue, 07 May 2019 09:01:39 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:57722) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hNzin-0004Dz-EA for help-gnu-emacs@gnu.org; Tue, 07 May 2019 09:01:30 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hNzii-00019b-Nw for help-gnu-emacs@gnu.org; Tue, 07 May 2019 09:01:25 -0400 Original-Received: from pv50p00im-ztdg10021101.me.com ([17.58.6.44]:52439) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1hNzii-000138-Go for help-gnu-emacs@gnu.org; Tue, 07 May 2019 09:01:20 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=icloud.com; s=04042017; t=1557234078; bh=lfm7uHRAlznRJFN4inpT50qOP9f4iUNKpIn8fkzNsaI=; h=Content-Type:Mime-Version:Subject:From:Date:Message-Id:To; b=WVDPhJ8fI7J+cxxqbN09igfa2GxpE1yRBsMKXn86BaZUofWq/0TE4ry09BdR3iek5 Bi7MZMPobpWsxUoGJR0EG6ZT/samoZSRDLreJTa1gooD4KlqqBDg/nlRjgfXfD4NOn 41mnILYYU8ZZLDSYmJytrok+Y/fwjId7/6KX7QiC4QtqHhFcJcuIWhtsj5xmrOvrSB UMxmazsTLrPo7fo1LmZA5i18MTUE0cbfZxkMvV44pGgAvFP5gk4DNZpa9hPEYF/iU7 AnvSqM2AfXbxxsWZIyrK+jdgNg9kQMAzcJR8+dwsa2B2pig66bGPwZl9oi4Aex0tpT 3z5L62iMRrJ8Q== Original-Received: from [10.56.218.59] (unknown [128.134.203.66]) by pv50p00im-ztdg10021101.me.com (Postfix) with ESMTPSA id AB0871801A9; Tue, 7 May 2019 13:01:16 +0000 (UTC) In-Reply-To: X-Mailer: Apple Mail (2.3445.9.1) X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:, , definitions=2019-05-07_07:, , signatures=0 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 suspectscore=0 malwarescore=0 phishscore=0 bulkscore=0 spamscore=0 clxscore=1015 mlxscore=0 mlxlogscore=425 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1812120000 definitions=main-1905070085 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 17.58.6.44 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "help-gnu-emacs" Xref: news.gmane.org gmane.emacs.help:120253 Archived-At: > 2019. 5. 7. =EC=98=A4=ED=9B=84 9:56, Stefan Monnier = =EC=9E=91=EC=84=B1: >=20 >>> - Writing wrappers in lisp for all our C functions exposed to Lisp = I >=20 > All those are defined with a "DEFUN" macro on the C side. > Whatever change is needed on this side can likely be made largely > mechanically, so I'm not worried. >=20 > Similarly, you'll need to rewrite all the functions/macros like CONSP, > SYMBOLP, FIXNUMP, XCAR, XCDR, make_fixnum, ... Performance of those > is important. Why would you not use the default CL=E2=80=99s defun, car, cdr, = symbol-p, cons-p, etc, etc? >> What I was thinking about using CL to support Elisp is to define a = new >> namespace for symbols (which, in CL terms, is a so-called = =E2=80=98package=E2=80=99) >> named =E2=80=98elisp=E2=80=99. >=20 > As I already mentioned, this already exists: elisp.lisp. >=20 >=20 > Stefan >=20