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 18:16:45 -0600 Message-ID: <87mutpiyz6.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 1534205747 17700 195.159.176.226 (14 Aug 2018 00:15:47 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Tue, 14 Aug 2018 00:15:47 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.1.50 (gnu/linux) Cc: Tom Tromey , emacs-devel@gnu.org To: Paul Eggert Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Aug 14 02:15:43 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 1fpMzu-0004Xc-Hy for ged-emacs-devel@m.gmane.org; Tue, 14 Aug 2018 02:15:42 +0200 Original-Received: from localhost ([::1]:41877 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fpN21-0000i3-7N for ged-emacs-devel@m.gmane.org; Mon, 13 Aug 2018 20:17:53 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:49997) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fpN1O-0000hI-K8 for emacs-devel@gnu.org; Mon, 13 Aug 2018 20:17:15 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fpN1L-00051e-GK for emacs-devel@gnu.org; Mon, 13 Aug 2018 20:17:14 -0400 Original-Received: from gateway21.websitewelcome.com ([192.185.45.250]:44437) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1fpN1L-000515-Ao for emacs-devel@gnu.org; Mon, 13 Aug 2018 20:17:11 -0400 Original-Received: from cm15.websitewelcome.com (cm15.websitewelcome.com [100.42.49.9]) by gateway21.websitewelcome.com (Postfix) with ESMTP id 0A6F5400E1048 for ; Mon, 13 Aug 2018 19:17:10 -0500 (CDT) Original-Received: from box5379.bluehost.com ([162.241.216.53]) by cmsmtp with SMTP id pN0wfH6YrbXuJpN19ff7Bm; Mon, 13 Aug 2018 19:17:09 -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=Uf1jidYlNzK8my/csrGYq6rcuiR29W+tQ6fi1xxQZJ8=; b=snJq/TBxWrw4nPAhEKrxhQfaSL JehLsTT3kU2jCbUNOWfvh6TqanVtTSd4w7u4fDzjFhJKfFOpewwkwaNE1FnNNA8LBzL28pH1kq2h0 S9FMgwcQhSC2L4YOVekP1EVyV; Original-Received: from 75-166-85-72.hlrn.qwest.net ([75.166.85.72]:33396 helo=bapiya) by box5379.bluehost.com with esmtpsa (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256) (Exim 4.91) (envelope-from ) id 1fpN0w-003ZEO-N3; Mon, 13 Aug 2018 19:16:46 -0500 X-Attribution: Tom In-Reply-To: (Paul Eggert's message of "Sun, 12 Aug 2018 22:37:25 -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: 1fpN0w-003ZEO-N3 X-Source: X-Source-Args: X-Source-Dir: X-Source-Sender: 75-166-85-72.hlrn.qwest.net (bapiya) [75.166.85.72]:33396 X-Source-Auth: tom+tromey.com X-Email-Count: 2 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.45.250 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:228511 Archived-At: Paul> This sounds very interesting. I assume you'd publish it first on a Paul> branch so that we could look at it? Now it is feature/libjit. Paul> libjit has only one committer, Aleksey, and no commits since March. Is Paul> there a bottleneck there? Another possibility is to switch to gcc-jit. On the up side, it is part of GCC, so it is maintained and widely ported. The down side is that, currently, it requires more capabilities at runtime; for example it invokes the assembler and, I believe, uses dlopen under the hood. One thing I've been thinking about with gcc-jit is that it would be "relatively" straightforward to also have it work as an ahead-of-time compiler. What I picture here is a step during dumping where all the dumped bytecode functions are compiled into a shared library. It might be worth doing the experiment to find out. Tom