From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Zelphir Kaltstahl Newsgroups: gmane.lisp.guile.user Subject: Re: using guile like a awk filter in a C program. Date: Tue, 28 May 2024 08:42:01 +0000 Message-ID: <8990716d-36b4-472f-a263-916e0e8ccac2@posteo.de> References: <60c7c61c6dea289c9a1d8e59829f9c91@univ-nantes.fr> <87v83ce2en.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="40482"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Guile User To: Pierre Lindenbaum Original-X-From: guile-user-bounces+guile-user=m.gmane-mx.org@gnu.org Tue May 28 10:42:58 2024 Return-path: Envelope-to: guile-user@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 1sBsQ6-000AIJ-36 for guile-user@m.gmane-mx.org; Tue, 28 May 2024 10:42:58 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sBsPV-0008Ji-SH; Tue, 28 May 2024 04:42:21 -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 1sBsPM-0008Id-Ml for guile-user@gnu.org; Tue, 28 May 2024 04:42:14 -0400 Original-Received: from mout01.posteo.de ([185.67.36.65]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1sBsPH-0005q3-FO for guile-user@gnu.org; Tue, 28 May 2024 04:42:12 -0400 Original-Received: from submission (posteo.de [185.67.36.169]) by mout01.posteo.de (Postfix) with ESMTPS id B8111240029 for ; Tue, 28 May 2024 10:42:03 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.de; s=2017; t=1716885723; bh=ZPpbLZiMMN83ZbGwrbSHxc6lxTrAF/lOahYHjd73cXA=; h=Message-ID:Date:MIME-Version:Subject:To:From:Cc:Content-Type: Content-Transfer-Encoding:From; b=DEO7RtIe28rGZSPQDHcWdsLqPO88VUAMtcjawyIuCssKkpMHOs/x7VPRQplRdOylR 8FxLJC2yhGc4IRRTLy3FNoLRD9iG5tUTxS8/y2895jZEbPZ9p/U8ZmcmNUrtsRwM3e agUgkYj5fvOMWCAUhDq9f3hW/jIbSJjGRJfFawjDnuzoSyE0G35IJKGcuZpLJCWhMG 3ifHFcY5ze++c5cyqwVk/rhx2bU0wH6AtHPkuK6GkfoQAX9YUlEPTUtDuSCoOMIjwN /7Y3phYJ2JcvfeyBAr9uU0G+YZKeTFsSlKVFC1aekpi/rbS5NXXW6SJYzipdeiqn/b Bk6akfOiDjglw== Original-Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4VpQx641Ypz6tws; Tue, 28 May 2024 10:42:02 +0200 (CEST) Content-Language: en-US In-Reply-To: Received-SPF: pass client-ip=185.67.36.65; envelope-from=zelphirkaltstahl@posteo.de; helo=mout01.posteo.de X-Spam_score_int: -43 X-Spam_score: -4.4 X-Spam_bar: ---- X-Spam_report: (-4.4 / 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_DNSWL_MED=-2.3, RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01, T_SPF_HELO_TEMPERROR=0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: guile-user@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: General Guile related discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guile-user-bounces+guile-user=m.gmane-mx.org@gnu.org Original-Sender: guile-user-bounces+guile-user=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.lisp.guile.user:19694 Archived-At: Hello Pierre, To me it looks like the easiest way could be to think of a declarative description of your filters and put that into a JSON file and read that as input (or similar file format), rather than using a whole programming language. Is there a specific requirement, that makes a JSON file infeasible and using a Scheme necessary? Is it because you do not want to implement the logic for processing the description of the filter in your C program? (That could be a reasonable concern, depending on how complicated the filters become.) Regards, Zelphir -- repositories: https://notabug.org/ZelphirKaltstahl