From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Tom Tromey Newsgroups: gmane.emacs.devel Subject: Re: Emacs Lisp JIT Compiler Date: Mon, 13 Aug 2018 09:18:45 -0600 Message-ID: <87in4e47my.fsf@tromey.com> References: <87va8ej4o1.fsf@tromey.com> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: blaine.gmane.org 1534173466 24195 195.159.176.226 (13 Aug 2018 15:17:46 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Mon, 13 Aug 2018 15:17:46 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.1.50 (gnu/linux) Cc: Tom Tromey , emacs-devel@gnu.org To: "T.V Raman" Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Aug 13 17:17:42 2018 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 1fpEbG-0006Co-1E for ged-emacs-devel@m.gmane.org; Mon, 13 Aug 2018 17:17:42 +0200 Original-Received: from localhost ([::1]:40003 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fpEdM-00011d-IC for ged-emacs-devel@m.gmane.org; Mon, 13 Aug 2018 11:19:52 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:53033) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fpEdA-0000tm-F3 for emacs-devel@gnu.org; Mon, 13 Aug 2018 11:19:41 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fpEd7-0000Sq-8i for emacs-devel@gnu.org; Mon, 13 Aug 2018 11:19:40 -0400 Original-Received: from gateway30.websitewelcome.com ([192.185.198.26]:34945) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1fpEd7-0000RL-3T for emacs-devel@gnu.org; Mon, 13 Aug 2018 11:19:37 -0400 Original-Received: from cm10.websitewelcome.com (cm10.websitewelcome.com [100.42.49.4]) by gateway30.websitewelcome.com (Postfix) with ESMTP id 1EE7CE775 for ; Mon, 13 Aug 2018 10:19:36 -0500 (CDT) Original-Received: from box5379.bluehost.com ([162.241.216.53]) by cmsmtp with SMTP id pEcIf5U1DBcCXpEcmfdzYS; Mon, 13 Aug 2018 10:19:35 -0500 X-Authority-Reason: nr=8 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=tromey.com; s=default; h=Content-Type:MIME-Version:Message-ID:In-Reply-To:Date: References:Subject:Cc:To:From:Sender:Reply-To:Content-Transfer-Encoding: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=e+mQAslTb97rBcgsQzNGCjVenHiTQZhzjPfme2IanfU=; b=HF7Xo4JGSa3aCVXFUHhW+r2px0 VzTlkHk+3Phs4lnpzRsYrmokNeVyf23QudL5SbVVfejnmt4VZUezXgdFLrNNpeGhm2ISX0pgVs72O 8D4Xzq302ZtbMTNJ2Lx4SXGh+; Original-Received: from 75-166-85-72.hlrn.qwest.net ([75.166.85.72]:42170 helo=pokyo) by box5379.bluehost.com with esmtpsa (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256) (Exim 4.91) (envelope-from ) id 1fpEcI-001ca7-Dl; Mon, 13 Aug 2018 10:18:46 -0500 X-Attribution: Tom In-Reply-To: (T. V. Raman's message of "Mon, 13 Aug 2018 06:50:03 -0700") X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - box5379.bluehost.com X-AntiAbuse: Original Domain - gnu.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - tromey.com X-BWhitelist: no X-Source-IP: 75.166.85.72 X-Source-L: No X-Exim-ID: 1fpEcI-001ca7-Dl X-Source: X-Source-Args: X-Source-Dir: X-Source-Sender: 75-166-85-72.hlrn.qwest.net (pokyo) [75.166.85.72]:42170 X-Source-Auth: tom+tromey.com X-Email-Count: 4 X-Source-Cap: ZWx5bnJvYmk7ZWx5bnJvYmk7Ym94NTM3OS5ibHVlaG9zdC5jb20= X-Local-Domain: yes X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-Received-From: 192.185.198.26 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:228487 Archived-At: >>>>> "T" == T V Raman writes: T> Will it work with adviced functions? Yes. The JIT works by adding another slot to the bytecode object. This slot holds the JIT-related data, like the compiled function. So, things like advice don't affect the way it operates. Writing this out made me remember another possible issue with the JIT: because it works based on the bytecode object, when a closure is made with make-byte-code, the JIT will compile each such closure separately. It would be possible to, instead, have it compile a closure once; but at some cost to the generated code. Tom