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, 10 Sep 2018 05:53:43 -0600 Message-ID: <87a7opva9k.fsf@tromey.com> References: <520f536b5a603831c9a57a5f6f0978a2.squirrel@dancol.org> <83va8binu8.fsf@gnu.org> <87bma3i26m.fsf@tromey.com> <87in413o4k.fsf@tromey.com> <831sapav15.fsf@gnu.org> <87ftz31wht.fsf@tromey.com> <83in3z8qf5.fsf@gnu.org> <87bm9r1nqe.fsf@tromey.com> <83h8jj7xd5.fsf@gnu.org> <20180910110336.scb7spl7lnmn62ar@Ergus> <87a7op38oz.fsf@gmail.com> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Trace: blaine.gmane.org 1536580409 18667 195.159.176.226 (10 Sep 2018 11:53:29 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Mon, 10 Sep 2018 11:53:29 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.1.50 (gnu/linux) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Sep 10 13:53:25 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 1fzKku-0004mW-W1 for ged-emacs-devel@m.gmane.org; Mon, 10 Sep 2018 13:53:25 +0200 Original-Received: from localhost ([::1]:51101 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fzKn1-0003DO-FB for ged-emacs-devel@m.gmane.org; Mon, 10 Sep 2018 07:55:35 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:44197) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fzKmP-0003D8-E5 for emacs-devel@gnu.org; Mon, 10 Sep 2018 07:54:58 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fzKmK-000053-Fp for emacs-devel@gnu.org; Mon, 10 Sep 2018 07:54:57 -0400 Original-Received: from gateway36.websitewelcome.com ([192.185.193.119]:44266) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1fzKmK-0008NI-6e for emacs-devel@gnu.org; Mon, 10 Sep 2018 07:54:52 -0400 Original-Received: from cm11.websitewelcome.com (cm11.websitewelcome.com [100.42.49.5]) by gateway36.websitewelcome.com (Postfix) with ESMTP id CD3C5400F3455 for ; Mon, 10 Sep 2018 05:59:30 -0500 (CDT) Original-Received: from box5379.bluehost.com ([162.241.216.53]) by cmsmtp with SMTP id zKlEfhDWGRPojzKllf52SQ; Mon, 10 Sep 2018 06:54:39 -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-Transfer-Encoding:Content-Type:MIME-Version:Message-ID: In-Reply-To:Date:References:Subject:To:From:Sender:Reply-To:Cc: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=XPKdSGt7sVO/tb8gIIl/BWIR7X9TRqT9EsOIj1y2xhk=; b=uk9hq0tm7EtdgcI48EX4nIt66t JV+7iOnAfxTSrlQS5KpQqERcH6xuWIapxSqxHlijg9F6auipNX6Ydhid2wYxg4ZQLcT26JsVCldtV MitiPQYW+PgqOj5cTxmFTxTeG; Original-Received: from 75-166-85-72.hlrn.qwest.net ([75.166.85.72]:51840 helo=pokyo) by box5379.bluehost.com with esmtpsa (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256) (Exim 4.91) (envelope-from ) id 1fzKlE-0023W8-8Z; Mon, 10 Sep 2018 06:53:44 -0500 X-Attribution: Tom In-Reply-To: <87a7op38oz.fsf@gmail.com> (Robert Pluim's message of "Mon, 10 Sep 2018 13:15:08 +0200") 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: 1fzKlE-0023W8-8Z X-Source: X-Source-Args: X-Source-Dir: X-Source-Sender: 75-166-85-72.hlrn.qwest.net (pokyo) [75.166.85.72]:51840 X-Source-Auth: tom+tromey.com X-Email-Count: 1 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.193.119 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:229606 Archived-At: >>>>> "Robert" =3D=3D Robert Pluim writes: >> 1) Any progress in the JIT work? Robert> Depends what you mean by progress. As far as I can tell the Robert> feature/libjit branch compiles and runs OK. Eli has some work in libjit to make it work better on Windows. I haven't done anything recently but I do have a work-in-progress patch to improve the calling convention; and this would also provide infrastructure to allow more direct calls to C and for inlining. Not sure when I will finish that. Robert> Of course, you could do both: compile the lisp shipped with emacs i= nto Robert> C, and support libjit, although the last time I looked at Robert> el-compilador it didn=CA=BCt support elisp fully yet. Yes, el-compilador is pretty unfinished. I think it should support all of elisp in the front end and in the optimizers; but the C back end is quite incomplete. I wrote a second compiler, though, that just compiles from bytecode to C. This one is more complete, see my post about it from sometime in the last month or so. IIRC wiring it up to the build was the remaining difficulty. Tom