From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Andrea Corallo Newsgroups: gmane.emacs.devel Subject: Re: On elisp running native Date: Thu, 28 Nov 2019 20:15:48 +0000 Message-ID: References: <87eexscgmx.fsf@gnus.org> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="169156"; mail-complaints-to="usenet@blaine.gmane.org" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.2 (berkeley-unix) Cc: emacs-devel@gnu.org To: Lars Ingebrigtsen Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Nov 28 21:21:27 2019 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([209.51.188.17]) by blaine.gmane.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1iaQI0-000hon-W7 for ged-emacs-devel@m.gmane.org; Thu, 28 Nov 2019 21:21:25 +0100 Original-Received: from localhost ([::1]:52970 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iaQHy-0000M7-8M for ged-emacs-devel@m.gmane.org; Thu, 28 Nov 2019 15:21:23 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:42883) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iaQCn-0000JR-W0 for emacs-devel@gnu.org; Thu, 28 Nov 2019 15:16:03 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1iaQCh-0007va-IT for emacs-devel@gnu.org; Thu, 28 Nov 2019 15:15:57 -0500 Original-Received: from mx.sdf.org ([205.166.94.20]:53393) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1iaQCh-0007TM-1W for emacs-devel@gnu.org; Thu, 28 Nov 2019 15:15:55 -0500 Original-Received: from sdf.org (IDENT:akrl@otaku.sdf.org [205.166.94.8]) by mx.sdf.org (8.15.2/8.14.5) with ESMTPS id xASKFmGI009432 (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256 bits) verified NO); Thu, 28 Nov 2019 20:15:48 GMT Original-Received: (from akrl@localhost) by sdf.org (8.15.2/8.12.8/Submit) id xASKFmYC025166; Thu, 28 Nov 2019 20:15:48 GMT In-Reply-To: <87eexscgmx.fsf@gnus.org> (Lars Ingebrigtsen's message of "Thu, 28 Nov 2019 13:47:02 +0100") X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 205.166.94.20 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.23 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:242843 Archived-At: Lars Ingebrigtsen writes: > Andrea Corallo writes: > >> I wrote a small page to describe what I did and how it works plus the >> current status not to have the information spread in various mails. >> >> http://akrl.sdf.org/gccemacs.html > > Wow, that's exciting! > > A couple of questions: > >> * Native compiler is not re-entrant: >> >> Just top level functions are native compiled, the others (lambda >> included) are still kept as byte-code. > > Is that a fundamental limitation, or have you just not gotten around to > it yet? I do not see any design limitation for that. Just had no time to work on it. > Also, I'm wondering about debugging: I spend a lot of time in Emacs just > edebugging or in the *Backtrace* buffer. Does the natively compiled > code mean that all that has to happen in gdb now? No, you can trap into native compiled code with a gdb as you can do it for any piece of the C core, but I would do that just for debugging the internals or the functionality of the generated code. Should be something not routinely done for writing lisp. Andrea -- akrl@sdf.org