From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: "T.V Raman" Newsgroups: gmane.emacs.devel Subject: Re: On elisp running native - Update 12 Date: Sat, 26 Sep 2020 08:07:42 -0700 Message-ID: References: <83o8uegykm.fsf@gnu.org> <74dd94a9-28cb-a5fd-dbc7-ab21009834ad@cs.ucla.edu> Mime-Version: 1.0 Content-Type: text/plain; charset=gb18030 Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="23042"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) Cc: Andrea Corallo via "Emacs development discussions." , Eli Zaretskii , Stefan Monnier , rms@gnu.org To: Andrea Corallo Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Sat Sep 26 17:08:54 2020 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 1kMBoj-0005sw-KW for ged-emacs-devel@m.gmane-mx.org; Sat, 26 Sep 2020 17:08:53 +0200 Original-Received: from localhost ([::1]:57600 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kMBoi-0005OP-Nm for ged-emacs-devel@m.gmane-mx.org; Sat, 26 Sep 2020 11:08:52 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:36248) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kMBnh-0004wu-2V for emacs-devel@gnu.org; Sat, 26 Sep 2020 11:07:49 -0400 Original-Received: from mail-pl1-x634.google.com ([2607:f8b0:4864:20::634]:37889) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kMBnf-0005AD-Eo for emacs-devel@gnu.org; Sat, 26 Sep 2020 11:07:48 -0400 Original-Received: by mail-pl1-x634.google.com with SMTP id c3so933464plz.5 for ; Sat, 26 Sep 2020 08:07:47 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version:content-transfer-encoding; bh=kg7u0gWfdurw31kOvJ0eswcoIsDKvL1G3cFhDBnkjI4=; b=NM5hhtbSd8HeHCa/PD8l2lhTnbfrD56QXfcNjWOx0GzaLz1nKMDIDHp1A7G9C91NAz 01icNfkGaYeBDP34DtLB3q62ZQp63pvPoQQDK7G08RTwTx/HFLDwHY79zkP8GTGHl2aW JAyfCqVcYshBJOJrMlrNHSWsA8u7pPUoyylDhKwKNp+eRkejQVFFcyvlCrbU+W6DKEEj R85+q+d5Vyc/qjfYIwHjUI6hYyW+3guWtKt6udMcfLV2M+g7bCNvTi7NRlKqUHRgwry6 RzmrDWL98z2NZsJ9wYw/4YM5gcTryKaQM57Bk194H8XBrQtL6CoNfN6I2OqmmWfIHbL6 k1BA== 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:content-transfer-encoding; bh=kg7u0gWfdurw31kOvJ0eswcoIsDKvL1G3cFhDBnkjI4=; b=Peo+ZgAIlBi4MnabqnFPYYVGm/tGzcnJuyT1WYWRtLcofhGhcNL8h/nkOJD8c/aQ32 vHxEZK1DjkconYAX+7RoaPsfZM4WgU48gvGH9rU72vtnkbXG8x9wLSkqAYdOSWunA3+8 Rpqc6uROyOI7PKQ+S3bqVfHbZrmIBW8U1F2AfatD99m2QL6qlbVDj6FShPztMVyEXR/q MYhcvKgxYiH7JflickBsDYAshL7djYbjec0sVxIusOJotO1CdU+VkF1DbFuOkYMriOyg YK3gEO1gXbcQ4HQ/WyxfpDN7eE4QHYm43jW4phbTPlP2cOoslHLZAHFtMK6vTPSAeQKb qBbw== X-Gm-Message-State: AOAM533OjcVoj87rqUA+SqBsN2T6ny2P7sumdcgdvFqpWwtEh2k7D8RF MNoyH/7/AZ1pKlMU9Fm8jgPwlw== X-Google-Smtp-Source: ABdhPJyNoZSfy4H+YKh6/Ytm8WNWqou4W5FM3nuV4GvvMPkHFuQjnz7Brt60XbVDTv8at25jM68eJg== X-Received: by 2002:a17:902:6bc1:b029:d0:cbe1:e706 with SMTP id m1-20020a1709026bc1b02900d0cbe1e706mr4245696plt.20.1601132865464; Sat, 26 Sep 2020 08:07:45 -0700 (PDT) Original-Received: from raman-glaptop.localdomain (c-24-4-174-65.hsd1.ca.comcast.net. [24.4.174.65]) by smtp.gmail.com with ESMTPSA id bj2sm2089182pjb.20.2020.09.26.08.07.43 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 26 Sep 2020 08:07:44 -0700 (PDT) Original-Received: by raman-glaptop.localdomain (Postfix, from userid 13930) id CBD8DC2229E; Sat, 26 Sep 2020 08:07:42 -0700 (PDT) In-Reply-To: (Andrea Corallo's message of "Sat, 26 Sep 2020 14:56:54 +0000") Received-SPF: pass client-ip=2607:f8b0:4864:20::634; envelope-from=raman@google.com; helo=mail-pl1-x634.google.com X-detected-operating-system: by eggs.gnu.org: No matching host in p0f cache. That's all we know. X-Spam_score_int: -175 X-Spam_score: -17.6 X-Spam_bar: ----------------- X-Spam_report: (-17.6 / 5.0 requ) BAYES_00=-1.9, DKIMWL_WL_MED=-0.001, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, ENV_AND_HDR_SPF_MATCH=-0.5, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, USER_IN_DEF_DKIM_WL=-7.5, USER_IN_DEF_SPF_WL=-7.5 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:256471 Archived-At: Andrea Corallo writes: SG! to be honest I never could remember the difference between cl-declaim and cl-proclaim when I used Common Lisp heavily. You said you'd handle the compilation speed, assume that automatically sets the highest level of optimization? I built the native-emacs branch earlier this morning and did a few timing tests by having EWW render some large epub files, I didn't notice much difference in timing. > "T.V Raman" writes: > >> Hi Andrea, > > Hi! > >> This looks awesome. >> >> A couple of questions: >> >> Now that you handle the optimization declarations from cl, could you >> also handle cl-declaim of the same --- typically used in CL at >> top-level / start-of file? >> >> >> (cl-declaim (optimize (safety 0) (speed 3))) > > ATM `cl-declaim' (as `cl-proclaim') are not effective regarding the > speed parameter of the native compiler. To a quick look to the > HyperSpec I guess `cl-declaim' should just set `comp-speed' other than > what is already doing, shall do it. > >> 2. In your example for advising primitives, you show the generate >> dfunction as >> (defun --subr-trampoline-delete-file (filename &optional trash) >> (funcall filename trash)) >> >> Should the above check if delete-file was called interactively, and >> if yes, in turn call funcall-interactively? > > Interesting, I think should be fine like it is now as Lisp code is > calling explicitly `funcall-interactively' anyway. > > Andrea --=20 =817=A94 Id: kg:/m/0285kf1 =950=DC8