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:38:08 -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="6344"; 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:38:43 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 1s5UCg-0001Qa-US for ged-emacs-devel@m.gmane-mx.org; Fri, 10 May 2024 19:38:43 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1s5UCE-0007t0-7J; Fri, 10 May 2024 13:38:14 -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 1s5UC9-0007sk-N4 for emacs-devel@gnu.org; Fri, 10 May 2024 13:38:09 -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 1s5UC9-0006vU-3m; Fri, 10 May 2024 13:38:09 -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=neaBOdBBKEGcHbSkN4dFN0QVWsZr99+QqCjO7AkE8Ng=; b=qTXbvJ7qD/yPdFs9wxpI 8GkHMSW9AlEYItbIa4zt0pOfuhJ0ydA5kSr883V9wbX2snfJisUMd1APFQSG4A3ORXFGhQO8vPCcc 63ZpevS6TjIifSeIFDxXSp8npRIHXXaufv2svCPiCa1jdTmSlgJ4sb6tdJIbwONAzH0XxeUK+WzCL yE/a+z8lIJjJGcrqD3EbcihjwXkPBNDfyAs6nXyK5/UAzeRdOJcv2yTzb/EJrYyyL7SlXmeEO8bm8 xNQRB2S0BviqhATSOX3bSJQoQK1twP0Qi2D1oe4+FA5up46wTLbZk9VI0w/CjoMcGxp7GKkPK9eTl eFaGz0JRw8/Vkg==; Original-Received: from acorallo by fencepost.gnu.org with local (Exim 4.90_1) (envelope-from ) id 1s5UC8-0003DD-4H; Fri, 10 May 2024 13:38:08 -0400 In-Reply-To: (Andrea Corallo's message of "Fri, 10 May 2024 13:35:18 -0400") 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:319151 Archived-At: Andrea Corallo writes: > 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 > And it's successor doesn't look very active either Andrea