From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: "Perry E. Metzger" Newsgroups: gmane.emacs.devel Subject: Re: When should ralloc.c be used? (WAS: bug#24358) Date: Thu, 27 Oct 2016 19:23:06 -0400 Message-ID: <20161027192306.3a911af3@jabberwock.cb.piermont.com> References: <838ttyhhzu.fsf@gnu.org> <871szqwu51.fsf@users.sourceforge.net> <831szqhbc2.fsf@gnu.org> <87d1itt79z.fsf_-_@users.sourceforge.net> <7baa18d4-2b09-caa8-005e-29008a383ad1@cs.ucla.edu> <83mvhwrgd5.fsf@gnu.org> <8539f38f-9a11-44c3-4de7-bb974c96206c@cs.ucla.edu> <83d1iq5ib1.fsf@gnu.org> <83r3753c8j.fsf@gnu.org> <83r374wh32.fsf@gnu.org> <20161027093530.3e5be6cb@jabberwock.cb.piermont.com> <20161027110503.74141bc2@jabberwock.cb.piermont.com> <8337jhu0cu.fsf@gnu.org> <20161027170345.1f6c382d@jabberwock.cb.piermont.com> <484424c8-9b7c-35cf-34fb-d3ead0ef9235@dancol.org> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Trace: blaine.gmane.org 1477610627 26604 195.159.176.226 (27 Oct 2016 23:23:47 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Thu, 27 Oct 2016 23:23:47 +0000 (UTC) Cc: eggert@cs.ucla.edu, rms@gnu.org, npostavs@users.sourceforge.net, fabrice.popineau@gmail.com, emacs-devel@gnu.org, Eli Zaretskii To: Daniel Colascione Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Oct 28 01:23:41 2016 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 1bzu0y-000321-Vi for ged-emacs-devel@m.gmane.org; Fri, 28 Oct 2016 01:23:17 +0200 Original-Received: from localhost ([::1]:45069 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bzu11-00071E-9k for ged-emacs-devel@m.gmane.org; Thu, 27 Oct 2016 19:23:19 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:36309) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bzu0v-00070x-8v for emacs-devel@gnu.org; Thu, 27 Oct 2016 19:23:14 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bzu0u-0001QB-EN for emacs-devel@gnu.org; Thu, 27 Oct 2016 19:23:13 -0400 Original-Received: from hacklheber.piermont.com ([166.84.7.14]:35053) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1bzu0p-0001P2-En; Thu, 27 Oct 2016 19:23:07 -0400 Original-Received: from snark.cb.piermont.com (localhost [127.0.0.1]) by hacklheber.piermont.com (Postfix) with ESMTP id ED0D5219; Thu, 27 Oct 2016 19:23:06 -0400 (EDT) Original-Received: from jabberwock.cb.piermont.com (jabberwock.cb.piermont.com [10.160.2.107]) by snark.cb.piermont.com (Postfix) with ESMTP id BB2A52DE021; Thu, 27 Oct 2016 19:23:06 -0400 (EDT) In-Reply-To: <484424c8-9b7c-35cf-34fb-d3ead0ef9235@dancol.org> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 166.84.7.14 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:208905 Archived-At: On Thu, 27 Oct 2016 14:07:46 -0700 Daniel Colascione wrote: > If we need a compiler to make this happen, so be it. We'll just > require libgcc, or hell, check it in to the repository, the way gcc > checks in its dependencies. > > An additional benefit of integrating with a compiler at runtime is > the potential to JIT elisp code. Both LLVM and GCC these days have > usable JIT interfaces. We could even serialize JIT traces in these > user Emacs dumps. Having a JIT for emacs bytecode (or some other IR) would be really superb. I had no idea that GCC now had JIT support, but if it is as easy to use as LLVM's, a prototype would not be a hard project. (I presume RMS would insist on GCC as the basis.) Of course, given that Emacs already byte compiles everything, maybe going straight to machine code rather than the bytecode + JIT would be good? Again, I don't know what GCC's infra is like, but if it is as good as LLVM's that would be quite straightforward. Perry -- Perry E. Metzger perry@piermont.com