From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Newsgroups: gmane.emacs.devel Subject: Re: Question about code generation Date: Fri, 10 May 2024 19:21:36 +0200 Message-ID: References: <86r0ea3qf4.fsf@gnu.org> <877cg1hljm.fsf@gmail.com> <86h6f54rzw.fsf@gnu.org> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="a/cxJAfZZXANahmz" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="1546"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Eli Zaretskii , Helmut Eller , gerd.moellmann@gmail.com, emacs-devel@gnu.org To: Andrea Corallo Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Fri May 10 19:22:36 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 1s5Tx5-0000E8-TK for ged-emacs-devel@m.gmane-mx.org; Fri, 10 May 2024 19:22:35 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1s5TwI-0002ky-Q3; Fri, 10 May 2024 13:21:47 -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 1s5TwF-0002ki-LL for emacs-devel@gnu.org; Fri, 10 May 2024 13:21:43 -0400 Original-Received: from mail.tuxteam.de ([5.199.139.25]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1s5TwD-0002AX-LQ; Fri, 10 May 2024 13:21:43 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=tuxteam.de; s=mail; h=From:In-Reply-To:Content-Type:MIME-Version:References:Message-ID: Subject:Cc:To:Date:Sender:Reply-To:Content-Transfer-Encoding:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Id:List-Help:List-Unsubscribe:List-Subscribe: List-Post:List-Owner:List-Archive; bh=+PPhj1jVoOzlAb2eVJk/FQOD9vLN1EiMMD4uXxhYRrM=; b=gdfV5umSmRmCS6/bFaoWBIFnOc O/RS6VzLsdLRheTQYviuLSEZlioc3nuXW/zO8eJDvhRNd1dthip1nd1sB1Zv0QUOI2mtOSsQ5O0lJ 1r5xdbEPsK29DHGU5VUa7XhToI4y+jwuvq9wTmf9rlO/A/LdaVxxjdxfZXDevRKMh/klISoMX0wgD iDdlVw8otCAJm6olWa2MMjELNsyrwJrzmFbmH5jwICiP9ytYdgrbIKCr365PByVtDwoJeF547bcLM J9ztNXSTX+wyfpa5SpP7bXNmDGTpfemRAYavHMUNJ/L0WAGwbIuywdNODqe5dK96YjITpMrScoP4Y tiIVwm6Q==; Original-Received: from tomas by mail.tuxteam.de with local (Exim 4.94.2) (envelope-from ) id 1s5Tw8-0008M9-EQ; Fri, 10 May 2024 19:21:36 +0200 Content-Disposition: inline In-Reply-To: Received-SPF: pass client-ip=5.199.139.25; envelope-from=tomas@tuxteam.de; helo=mail.tuxteam.de X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action 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:319149 Archived-At: --a/cxJAfZZXANahmz Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable 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. >=20 > 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). >=20 > 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 --=20 t --a/cxJAfZZXANahmz Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iF0EABECAB0WIQRp53liolZD6iXhAoIFyCz1etHaRgUCZj5XmgAKCRAFyCz1etHa RkTgAJ47JsU2c0GyWwwwhUfkKdGpT3ymCwCdFHiVXdwbiSqDvNboaBjwxFuf9Po= =1rpX -----END PGP SIGNATURE----- --a/cxJAfZZXANahmz--