From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Robert Pluim Newsgroups: gmane.emacs.devel Subject: Re: Emacs Lisp JIT Compiler Date: Mon, 10 Sep 2018 13:15:08 +0200 Message-ID: <87a7op38oz.fsf@gmail.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> 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 1536578388 10416 195.159.176.226 (10 Sep 2018 11:19:48 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Mon, 10 Sep 2018 11:19:48 +0000 (UTC) Cc: Eli Zaretskii , Tom Tromey , emacs-devel@gnu.org To: Ergus Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Sep 10 13:19:44 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 1fzKEJ-0002bO-UO for ged-emacs-devel@m.gmane.org; Mon, 10 Sep 2018 13:19:44 +0200 Original-Received: from localhost ([::1]:50961 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fzKGP-00024S-GS for ged-emacs-devel@m.gmane.org; Mon, 10 Sep 2018 07:21:53 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:33455) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fzKFN-0001z2-Uk for emacs-devel@gnu.org; Mon, 10 Sep 2018 07:20:53 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fzK9v-0002au-ES for emacs-devel@gnu.org; Mon, 10 Sep 2018 07:15:16 -0400 Original-Received: from mail-wm0-x22c.google.com ([2a00:1450:400c:c09::22c]:55252) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1fzK9v-0002ZS-6m; Mon, 10 Sep 2018 07:15:11 -0400 Original-Received: by mail-wm0-x22c.google.com with SMTP id c14-v6so21119566wmb.4; Mon, 10 Sep 2018 04:15:11 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:references:mail-followup-to:mail-copies-to :gmane-reply-to-list:date:in-reply-to:message-id:mime-version :content-transfer-encoding; bh=kwn55KSfIWz83tcoJ2QR50mwRruhiQxrxD7WbXhzL7I=; b=FwNGzGCWq3Q8hy843fFz3J2nnu4G/5pjHHiQFirGHNBNFg9VlqzZcN2HU2gWSJhahq CCdCJaFFrYNhWnY9kxD3AcpZbt5MiflosVD6A+FpR42ZntJhBT6YfhW7eQgbWGJPra1c REN9Chh/guggv0diuUH7Re6qwzyqcDbjTwleBjQ+1Ums6tmCxCm/aj1842cwEx6z+Qvf 0eLXW01TZErw6AENmSyIVFztlPHPUWZY1MF5/8C4PoJ+e9Vz7XNoc/q9AXwWoAp56ZQy DoNmCBfh4VgjZupRDwi6QAmgR0DszXe0SZpSNCPONzWFjMl+y61wXZTEMiMgr2hnBnAN A9Pw== 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:mail-followup-to :mail-copies-to:gmane-reply-to-list:date:in-reply-to:message-id :mime-version:content-transfer-encoding; bh=kwn55KSfIWz83tcoJ2QR50mwRruhiQxrxD7WbXhzL7I=; b=s9a7BUh3S1voqCB/YcTk1JQvgJeN1QLu2noVMdEsY+15g+mr+OA+ljPwybPPA9kUxe y7QMbOOFPfa4FfmIsIpVRv7UTzwC8pbL8jL6tww1YXsn5XiaaBKyjsxq9BX6yxWTilrb pdWkWIAHVwmAhsDO+C1F6VlBLJCqY2YaiqJGBKYzIGztD0fF6gDI/R+Vfh6M7LOzAeVv 4y07d3tZidjQosMCBRqi36DMa3RwFm0gfVb4Tlseb7PEYxKAGOttB3TiYGPZviOCIB2X jGQ9jpMZFsHGQaczUO+sk5Ygi6g+8SM8JDFaTa+4ciI1EcBd2JHNjzGO/HYdnz8CJEXy TquA== X-Gm-Message-State: APzg51BDChjMfGrX2Ps65cKNKgUes6FPNK8QEzDHkZQ2uQM4LgGV6bj1 zc+d/JT0jrY9NrQDxm5L5m+ejiGo X-Google-Smtp-Source: ANB0VdaO6LLFidR+GPOK56jBHXwVlKM88h2SaX/aMV2lLdfHOHg8Jnd1ugqJfElH+6FMGV5ba7viww== X-Received: by 2002:a1c:9c56:: with SMTP id f83-v6mr361227wme.135.1536578109659; Mon, 10 Sep 2018 04:15:09 -0700 (PDT) Original-Received: from rpluim-ubuntu ([149.5.228.1]) by smtp.gmail.com with ESMTPSA id z16-v6sm24004471wrq.78.2018.09.10.04.15.08 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 10 Sep 2018 04:15:08 -0700 (PDT) Mail-Followup-To: emacs-devel@gnu.org Mail-Copies-To: never Gmane-Reply-To-List: yes In-Reply-To: <20180910110336.scb7spl7lnmn62ar@Ergus> (Ergus's message of "Mon, 10 Sep 2018 13:03:36 +0200") X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2a00:1450:400c:c09::22c 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:229604 Archived-At: Ergus writes: > 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? Depends what you mean by progress. As far as I can tell the feature/libjit branch compiles and runs OK. > 2) Do you think we will see it soon in the next release or year for examp= le? > Schedules are variable. Help appreciated :-) > 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. Translating the lisp code into C requires the presence of a C compiler/linker, so it=CA=BCs something that can be done by an emacs developer, but someone using a pre-compiled emacs would not necessarily have those tools installed. With libjit everybody would get the benefit. Of course, you could do both: compile the lisp shipped with emacs into C, and support libjit, although the last time I looked at el-compilador it didn=CA=BCt support elisp fully yet. Robert