From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Ergus Newsgroups: gmane.emacs.devel Subject: Re: Emacs Lisp JIT Compiler Date: Mon, 10 Sep 2018 13:03:36 +0200 Message-ID: <20180910110336.scb7spl7lnmn62ar@Ergus> 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> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed X-Trace: blaine.gmane.org 1536577383 5648 195.159.176.226 (10 Sep 2018 11:03:03 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Mon, 10 Sep 2018 11:03:03 +0000 (UTC) User-Agent: NeoMutt/20180716 Cc: Tom Tromey , emacs-devel@gnu.org To: Eli Zaretskii Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Sep 10 13:02:59 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 1fzJy6-0001Lz-WE for ged-emacs-devel@m.gmane.org; Mon, 10 Sep 2018 13:02:59 +0200 Original-Received: from localhost ([::1]:50909 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fzK0D-0002dz-EC for ged-emacs-devel@m.gmane.org; Mon, 10 Sep 2018 07:05:09 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:57770) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fzJyw-0002bZ-JC for emacs-devel@gnu.org; Mon, 10 Sep 2018 07:03:52 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fzJyq-0002UQ-Ps for emacs-devel@gnu.org; Mon, 10 Sep 2018 07:03:50 -0400 Original-Received: from sonic307-54.consmr.mail.ir2.yahoo.com ([87.248.110.31]:37506) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1fzJyq-0002S0-9o for emacs-devel@gnu.org; Mon, 10 Sep 2018 07:03:44 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=aol.com; s=a2048; t=1536577422; bh=tTDZzDcfGjd7qAIBJZ85/IUWOpeOqYZwOCtji9B6nD4=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From:Subject; b=RVlH7qpTxVujdHKrANxRVEhqDBEc6wxf7bk6nAa+AT1YzrdnOdc/w9qGepIEO4YQLXIPU9eAxleBmG5hpwJhv5gXedFsaW8s824ylULTWYNPP0O2BgKlYud34IEbQfVwR5MbxPkV1tdw8TSZItmachLz0SDz+AIuj87d6oUPDAcYfqKhTce48hwFNdX/qBh5jU4GyP4kA+IhO23Td8/nQAUeagbxZGvNt8ba7FNxBkDRsRvrAblIBi4Awlzc8gYh+FmKP+40qHdL5bLs2se0xvIzZEqukR2URHLKK0WH9b6DuLHPh3/TdLMbebbv0v1PStwPAHAT66o8pbblHk0tyA== X-YMail-OSG: J3T0ZBMVM1myNm9NZrE10nfRt.vIgzz0G0wR8fBJna8Ul9LbQgUFAJ4TAC2sPFd D7hUy9xtNJO.DiB9rVwr9f1eKsYYpc32JigWZybphrGrPtpvX7H8IIan7czxH899hVCwOsCZRFdP BPM2lUXiG.DvnQ4S1JI4tYG06c5w4hN2lFdr_GxbbV90ThytPYvKNoqkGxn08kDYrQ4Dxq8S0FxI YheOVKLTo2UNrY.DVlPHCSPFoWu8h3N5xNUy0FUL03c_8QQgk2UN.8H5SZ4LfjtA2EVC22Y1uq7W WY_qc2G.X.k6g99krekfm_rex9MItPXlzmw.Z.KcUaF4yBDYvABmz9vyrbrKR1C5WtA7r26eTEqj Frl8LDQdjKpv17CqyzJz0LUip_qTjxj15FJQHxWxy7OczpaQyH5A3GlrcYUCQKHwRKGUz5rr21m7 pqbnn8e7oDrL4VpdAhfLrXUXIW8tZvOx6bfmOFUsx6aSbns_k5zglKrG5SZV8kqiAfOjBpVDlevq Yozf7tLYx135pdSgfN15AaboBiPLYBVTFU8n16pji6JQsBKzaGWx93bwseYYqP9RMd14oWDDKVsB 37qxLpkZEWFdHbAGVVnj2U9eawLHAGfCflPi3jYbok2X3MYdhFj64oXq_gz9z70PpzH_ObviuZk7 R6ty8qyuoelraT_GFjGbIeRT6zGPKGTr0ioudhXdj8p3hQjNUvNalibY9NztjoYOlj.nN529x1eg 7jyF1j7uwTsxesYu5toMypwY4de6YHs.2qOmPAsdmYmXn888P_kyupHtBSqVyj5vM2ccP9LYWJ_B K2T9l3x8fUyy9wVc2Im.mCSkbffdD8wuA3JZvhN5OA Original-Received: from sonic.gate.mail.ne1.yahoo.com by sonic307.consmr.mail.ir2.yahoo.com with HTTP; Mon, 10 Sep 2018 11:03:42 +0000 Original-Received: from 2.152.205.184.dyn.user.ono.com (EHLO Ergus) ([2.152.205.184]) by smtp415.mail.ir2.yahoo.com (Oath Hermes SMTP Server) with ESMTPA ID 6122d381520ae044977a9275e8463af7; Mon, 10 Sep 2018 11:03:38 +0000 (UTC) Content-Disposition: inline In-Reply-To: <83h8jj7xd5.fsf@gnu.org> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 87.248.110.31 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:229603 Archived-At: Hi! Sorry for the bother, but I am very interested in this kind of features! I have 2 simple yes/not questions: 1) Any progress in the JIT work? 2) Do you think we will see it soon in the next release or year for example? And an extra if you have some more time to reply. 3) I saw that the option to translate Lisp code into C and compile it is not considered; but I couldn't understand why and how is it better to use libJIT than a native compiler+binutils. Lisp-c or equivalents could work to distribute all the emacs internal functions already compiled but maybe the advanced users could enable it as an experimental feature for his own functions (with some configuration). Also consider the pedagogical value of this translator's code and the potential use cases. Best, Ergus On Sat, Aug 25, 2018 at 09:51:02AM +0300, Eli Zaretskii wrote: >> From: Tom Tromey >> Cc: Tom Tromey , emacs-devel@gnu.org >> Date: Fri, 24 Aug 2018 15:03:21 -0600 >> >> >>>>> "Eli" == Eli Zaretskii writes: >> >> Eli> Maybe I'm missing something, but I didn't see how to do that with just >> Eli> a type definition. jit_value_create_long_constant is special in that >> Eli> it allows to create 64-bit constants in a 32-bit build, by allocating >> Eli> a 64-bit buffer and storing it address in the jit_value_t object it >> Eli> returns. >> >> Ah, I didn't pick up on that. My illness makes me somewhat mentally >> fuzzy. > >It's not just your illness, it's also the libjit docs, which never say >that. I learned that by reading the libjit sources. > >> Anyway maybe a helper function could be used so there's just a single #if. > >Yes, I think so. I will see what can be done about it. >