From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1.migadu.com ([2001:41d0:303:e16b::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms8.migadu.com with LMTPS id sGbyAHE33mV6AAEA62LTzQ:P1 (envelope-from ) for ; Tue, 27 Feb 2024 20:26:41 +0100 Received: from aspmx1.migadu.com ([2001:41d0:303:e16b::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1.migadu.com with LMTPS id sGbyAHE33mV6AAEA62LTzQ (envelope-from ) for ; Tue, 27 Feb 2024 20:26:41 +0100 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=lendvai.name header.s=protonmail header.b=u8yH0OIq; dmarc=pass (policy=none) header.from=lendvai.name; spf=pass (aspmx1.migadu.com: domain of "guix-devel-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-devel-bounces+larch=yhetil.org@gnu.org" ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1709062000; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:list-id:list-help: list-unsubscribe:list-subscribe:list-post:dkim-signature; bh=F051MuiOsBnNAxKRwT50zpCyE8FIS66IEDYsFLYyFPE=; b=c80byi32VteqsF4m3LFi7II37oGRnhwsHyu9gakcPxdgTVEc4x7QOMWbz/m/REVK00hImR Huqd473OCcgsyvjk7C820QJtEZcnFTaNPLdNn/K2KnLkrTCg5rEqBfAb5fRZ9KdI5o1qWA VRlh4lm2mVLT0eo/dQtjGD53/mU6qDJAvX4/u+Eo0KpCZg1lGCF9EopcrMUuNgBUSwesZr 0wMl7nRK7LesvALOD/O9AyqHGp5RdIKcbzSsgNOsNPFdlR6BqkORhQseJ/PhsDdpLskLQM 9cEw/wWC8bQPd5aqk0xnDa69fgSP2Z686M6XkX0TZxY9LgeqATQR0esMjCBlqA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=lendvai.name header.s=protonmail header.b=u8yH0OIq; dmarc=pass (policy=none) header.from=lendvai.name; spf=pass (aspmx1.migadu.com: domain of "guix-devel-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-devel-bounces+larch=yhetil.org@gnu.org" ARC-Seal: i=1; s=key1; d=yhetil.org; t=1709062000; a=rsa-sha256; cv=none; b=V3u+bhsd2IK69GGyvQC5mWSsyad/0H+co6knKaI58lIXzdWtz0NsDD/2xursxIQAtxUbtp ksFygc22ofiwGDqANiAprqNQ2bRec/WVP/dmLxnbZh28FDn3P5lB//5nZkQJnsguIMO+B6 uZM8rvD/HJKSQWOrys/pYOAmeUpmunzhC7QMbiUbA9absREJk+RMh7abiZqpeRz/E+srZE sveC897UEGYRhTAgJyWRt9DJU4xNBO84JUZqBtWVXllJmExGcCt0dGheJH2Zv3OKpWiMTt Dmhl9gJNFa/nkB5poFnCrIz+O3yosFebHTZwssVTT6I1c5tAMUiqMYOb6l3ayw== Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id A4E4754638 for ; Tue, 27 Feb 2024 20:26:40 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rf35l-0003Bc-M9; Tue, 27 Feb 2024 14:26:17 -0500 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 1rf35h-0003B5-B9 for guix-devel@gnu.org; Tue, 27 Feb 2024 14:26:13 -0500 Received: from mail-4317.proton.ch ([185.70.43.17]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1rf35d-0008MJ-SG for guix-devel@gnu.org; Tue, 27 Feb 2024 14:26:13 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=lendvai.name; s=protonmail; t=1709061963; x=1709321163; bh=F051MuiOsBnNAxKRwT50zpCyE8FIS66IEDYsFLYyFPE=; h=Date:To:From:Cc:Subject:Message-ID:In-Reply-To:References: Feedback-ID:From:To:Cc:Date:Subject:Reply-To:Feedback-ID: Message-ID:BIMI-Selector; b=u8yH0OIqqJduaJOM+dyQScGy1tccfwYNhWonNgnyOKR0Es/K2koAVsPXS1dwYNdJg fOM+6TZtFbJyI1HaWTdmYs4JCBZHwXrC1G3PZg0dlO0KvIe2uUSzkOjUsYbBdutadl 0BbuLF8IhtTfraL2uU2b/nhbHn/7nP4OkIbuZQWQrSxa0XfQz/lddaw3dmOKaHTywx z234XXjmBvPV3fBRccLPoEIZ4S0/F9IspTMYvDl2A2Orb1IfvvktoAYDTBx/j7QhEF 3hG0QdeA1yhbG9ZbgM/5UghDiK3YaLu5V2kS4Mey79l7Ne5+4w/X3MklSMDoNgzDxH mDlypvhHwpebA== Date: Tue, 27 Feb 2024 19:25:58 +0000 To: =?utf-8?Q?Ludovic_Court=C3=A8s?= From: Attila Lendvai Cc: guix-devel@gnu.org, guile-user@gnu.org, Mathieu Othacehe Subject: Re: Guile-Git 0.6.0 released; looking for maintainers! Message-ID: In-Reply-To: <871q8yjl1l.fsf@inria.fr> References: <871q8yjl1l.fsf@inria.fr> Feedback-ID: 28384833:user:proton MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Received-SPF: pass client-ip=185.70.43.17; envelope-from=attila@lendvai.name; helo=mail-4317.proton.ch 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, RCVD_IN_MSPIKE_H4=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: guix-devel@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-devel-bounces+larch=yhetil.org@gnu.org Sender: guix-devel-bounces+larch=yhetil.org@gnu.org X-Migadu-Flow: FLOW_IN X-Migadu-Country: US X-Migadu-Spam-Score: -6.54 X-Spam-Score: -6.54 X-Migadu-Queue-Id: A4E4754638 X-Migadu-Scanner: mx13.migadu.com X-TUID: HhmUbF7c0Hty > An idea might be to look into using nyacc=E2=80=99s ffi-helper to generat= e > struct definitions. over there in CL land i wrote an automatic FFI generator. it's now part of = the main CL FFI lib: https://github.com/cffi/cffi/tree/master/src/c2ffi it is based on c2ffi: https://github.com/rpav/c2ffi which is a piece of C++ code that uses CLANG as a library to parse any C he= ader file, and emit its content into a json file. a thin layer of lisp code can generate the actual sexp FFI definitions from= the json files, that then can be hooked into the usual guile way of doing = FFI. the json files can be checked into the repo, which then eliminates the depe= ndency on c2ffi on the user side (i.e. the project is only as heavy as any = other hand-written FFI wrapper). that way only the maintainer needs to rege= nerate the json files every once in a while. or short of a smarter build tool like ASDF, we can also check in the genera= ted lisp files. if there's interest, then i can help porting this over to guile. below are some example projects that are using it. they are rather thin and= simple, yet provide a full FFI: https://github.com/hu-dwim/hu.dwim.zlib https://github.com/hu-dwim/hu.dwim.sdl PS: clang now supports `-ast-dump=3Djson`, which may or may not eliminate t= he need for c2ffi entirely: https://github.com/rpav/c2ffi/issues/112 --=20 =E2=80=A2 attila lendvai =E2=80=A2 PGP: 963F 5D5F 45C7 DFCD 0A39 -- =E2=80=9CSometimes I wonder whether the world is being run by smart people = who are putting us on or by imbeciles who really mean it.=E2=80=9D =09=E2=80=94 Mark Twain (1835-1910)