From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Andrea Corallo Newsgroups: gmane.emacs.devel Subject: Re: Question about code generation Date: Fri, 10 May 2024 13:35:18 -0400 Message-ID: References: <86r0ea3qf4.fsf@gnu.org> <877cg1hljm.fsf@gmail.com> <86h6f54rzw.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="36695"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Cc: Eli Zaretskii , Helmut Eller , gerd.moellmann@gmail.com, emacs-devel@gnu.org To: Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Fri May 10 19:36:45 2024 Return-path: Envelope-to: ged-emacs-devel@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1s5UAn-0009Hg-4j for ged-emacs-devel@m.gmane-mx.org; Fri, 10 May 2024 19:36:45 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1s5U9t-00073f-Iq; Fri, 10 May 2024 13:35:49 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1s5U9n-00073P-5z for emacs-devel@gnu.org; Fri, 10 May 2024 13:35:45 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1s5U9m-00061d-Da; Fri, 10 May 2024 13:35:42 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-Version:Date:References:In-Reply-To:Subject:To: From; bh=+92L1OCprenI8UVkuhRinoUik83qTxtq1P5c9W8f4yM=; b=ZVVDZhxFxG0Cqj4TuB56 n/yBd0a7F3/2vizAvm3rUL3NY5Fg9ptgkKKlSU8L/V+/cYJaRrVO2oooZeSPndBomaOKBeZom6itp UYCBHPl5ep141uE69sHEqLpPHmvYTko7U34ajcLt+LayNVBgqWqXTsCGsjJEARQC2Qdbof+37AUQy zOh2dy9RWngf4VZBq2U+UWHoLLV+0e6IHrk3R7NHx+e7Mr/PJL1eK4W/2sEZqYXM3Q7P8PU5/a3zF EcXH2dyxChDkuCT5Ne+T1Y0AvjMfkCHiA+1yiYumNxPaHqpKz/biwfyTXUIauOAKNhV+k9+n4hinu 03ZI534tBn0wlg==; Original-Received: from acorallo by fencepost.gnu.org with local (Exim 4.90_1) (envelope-from ) id 1s5U9O-0002ny-IC; Fri, 10 May 2024 13:35:34 -0400 In-Reply-To: (tomas@tuxteam.de's message of "Fri, 10 May 2024 19:21:36 +0200") X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.29 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-mx.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.devel:319150 Archived-At: writes: > On Fri, May 10, 2024 at 01:00:51PM -0400, Andrea Corallo wrote: > > [...] > >> I think in this case libgccjit goes the other way of what would be need >> here. Libgccjit allowed us to develop an Elisp front-end while here the >> frontend we need is already the C one that comes with GCC. >> >> What we want is a GCC plugin, essentially a custom pass that analyses >> say lisp.h and output something (in this case some C code). >> >> Not many people know that should be even possible to write it in python >> thanks to David Malcolm work >> , certanly not >> Elisp :/ but probably quicker than doing it in C. > > And then, there is MELT [1], by Basile Starynkevitch, which, AFAIR is > a Lispy GCC plugin. > > Cheers > > [1] https://gcc.gnu.org/wiki/MiddleEndLispTranslator Is MELT still a thing? Should be inactive since 2017 according to Andrea